Quantcast
Channel: Our ComponentOne » All Posts
Viewing all 14170 articles
Browse latest View live

Reply To: Set AutoCompletion for c1combo

$
0
0

Hi,

Just to clarify, which control are you asking about here?
C1Combo (List for Winforms) or
C1ComboBox (Input for Winforms)

Also, can you explain your use case here? What do you mean by 'AutoCompletion to 2 fields'?

Regards,
Nilay Vishwakarma


Reply To: How to Read ribbon control in C# code and looping,bind in flexgrid

$
0
0

Hello Akshay ,

in this project while clicking in enable check box this kind of error (come in Object reference not set to an instance of an object.)

this error coming in checked change event
below code line enable false area.

currValue = grdcontrols.GetCellCheck(e.Row, e.Col);

if (currValue == CheckEnum.Unchecked)
{
((RibbonItem)(grdcontrols[e.Row, 3])).Enabled = false;
}
else
{
((RibbonItem)(grdcontrols[e.Row, 3])).Enabled = true;
}

please help me

Reply To: How to Read ribbon control in C# code and looping,bind in flexgrid

$
0
0

Hello,

Thanks for providing the code snippet.
It seems that this code is similar to the one used in the above provided sample application. However, the same sample application is working fine at our end. Please refer to the attached video file representing the encountered behaviour at our end.
Hence, we request you to please share the sample application representing the issue your are facing.

Thanks,
Akshay

Reply To: How to Read ribbon control in C# code and looping,bind in flexgrid

$
0
0

Hi Akshay,

I attached my sample project

Reply To: hide first column GridView WITH AutogenerateColumns="true"

$
0
0

Hello,

You are suggested to set the "Visible" property of Columns of C1GridView to hide then at runtime. Here is the suggested code:


protected void Page_Load(object sender, EventArgs e)
        {
            //add the following code after DataBind()
            //the below code would hide the LastName column
            C1GridView1.Columns[1].Visible = false;
        }

Please find the attached sample implementing your requirement and let me know in case of any doubts or queries.

Regards,
Prashant

Reply To: scheduler, multiple contacts per day

$
0
0

Hello,

Thanks for your confirmation. Please find the attached sample implementing your requirements and let me know in case of any doubts or queries.

Regards,
Prashant

Reply To: hide first column GridView WITH AutogenerateColumns="true"

$
0
0

Hello

This does not work because I use: AutoGenerateColumns = "True"
Even if I put this code just after the DataBind ()


C1GridView1.Databind ();
C1GridView1.Columns [1] .Visible = false;

Also I am not in the Page_Load () method, but in a Button_Click ()

An idea ?
Thank you

Reply To: mvc flexgrid image

$
0
0

Thank you,
now i must set the image on depending of the row,
i have the relative path in a field.
I need to do something like this :


cell.innerHTML = "<img src='" + panel.rows[r].kpath_image + "' alt='img' style='height:20px;width:20px' />";

Thank you


Reply To: hide first column GridView WITH AutogenerateColumns="true"

$
0
0

Hello,

C1GridView does not provide access to auto-generated columns via Columns collection, the same way as MS GridView.
In order to get access to columns using Columns collection they should be created anyway. You can create them either at design-time or dynamically at run-time.

Regards,
Prashant

Reply To: hide first column GridView WITH AutogenerateColumns="true"

$
0
0

Effectively !

Coming from Winforms, I struggle to understand why we can not have access to columns :-(


C1GridView1.DataSource = MyDataTable
C1GridView1.DataBind ()

'Why here, Count = 0 !!!
C1GridView1.Columns.Count

I'll manage :-)

thanks

Reply To: Setting Column.Visibility = Hidden also collapses the column

$
0
0

hi,

any update on this? Thank you,

Angel

Reply To: How to Read ribbon control in C# code and looping,bind in flexgrid

$
0
0

Hello,

Thanks for providing the sample application.
As in your project you only have three columns in your grid however, the code in CellChecked event is trying to fetch the values from the fourth non existing column which is further resulting in NullReferenceException.

Please refer to the attached modified sample application.

Thanks,
Akshay

Reply To: Setting Column.Visibility = Hidden also collapses the column

$
0
0

Hello,

Here is the reply from our development team:

C1DataGrid don't support this behavior by design. MS DataGrid does the same. If you need a blank space,then you can try to use custom cell style containing something like empty rectangle or border.

Regards,
Prashant

Reply To: Setting Column.Visibility = Hidden also collapses the column

$
0
0

Hi Prashant,

Thanks for the feedback, but this is not really acceptable for us because we require this behavior in order to use your grid. You need to at least update your documentation about the Visibility property because it's wrong and misleading.

Thanks,
Angel

Reply To: Setting Column.Visibility = Hidden also collapses the column

$
0
0

In fact it's not only about docs - currently your Hidden and Collapsed values are behaving in exactly the same way.

Angel


Reply To: Appointment Tooltip Width in C1Schedular Control

Hosting Windows Form in C1DockControl Problem

$
0
0

Hi,
I am trying to host windows form in C1DockControl, the codes like bellow:


<c1:C1DockControl Margin="10,10,0,0" VerticalAlignment="Top" Width="1024" Height="768">
            <c1:C1DockTabControl DockMode="Floating" x:Name="FirstDockCtrl" DockWidth="1024" ShowHeader="True">
                <c1:C1DockTabItem Header="First View" x:Name="firstDocTab" BorderBrush="Red">                    
                    <WindowsFormsHost VerticalAlignment="Top" Width="0" Height="0" x:Name="WindowsFormHost" Background="Red">
                        <local:CustomOpenGLControl x:Name="myUserControl" Width="0" Height="0" BorderStyle="FixedSingle" />
                    </WindowsFormsHost> 
                </c1:C1DockTabItem>
            </c1:C1DockTabControl>
            <c1:C1DockTabControl DockMode="Floating" DockWidth="1024" ShowHeader="True">
                <c1:C1DockTabItem Header="Second View">                    
                    <WindowsFormsHost Margin="0,0,0,0" x:Name="WindowsFormHost2" Background="Blue">
                        <local:CustomOpenGLControl x:Name="myUserControl2" Margin="0,0,0,0"/>
                    </WindowsFormsHost>
                </c1:C1DockTabItem>
            </c1:C1DockTabControl>            
        </c1:C1DockControl>

I have a problem when I re-size the dock control, an ugly flickering between the CustomOpenGLControl and The WindowsFormHost appears, so I can see red background of the WindowsFormHost. If a dock control in floating mode, this problem appears only when I shrink the size of the control. But if I dock both controls, it always appears when I re-size them.
I use CustomOpenGLControl to render some graphics by openGL. It worked perfectly (but separated windows) if I don't use C1DockControl item.
Would you please to give me any advice?
Sorry for my poor English.
Thanks much.

Reply To: How to Read ribbon control in C# code and looping,bind in flexgrid

$
0
0

Hello Akshay,

How to read ribbon control text name

Reply To: mvc flexgrid multi selected rows

$
0
0

Thank you
i tried but i received undefined result
can you send me a example code?,
(for example i would like delete all rows selected)

Thank you

Reply To: mvc flexgrid image

$
0
0

Are you facing any issue while using the code you mentioned?

Viewing all 14170 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>