i have a ComboBox with some items in it (width pf combo cox 162), when i start application and click on the combobox, the drop down expands with width of about 180 px. If i click again on the combobox, the drop down expands but has a correct width of 162 px.
i have used statements like:
this.radComboBox1.DropDownWidth = 162;
or
radComboBox1.DropDownMaxSize = radComboBox1.Size;
or
radComboBox1.DropDownMinSize = radComboBox1.Size;
but still i am getting the same problem.
Can you please suggest me some solution?
DataTable dt = new DataTable();
dt.Columns.Add(
"ID");
dt.Columns.Add(
"FullName");
dt.Columns.Add(
"IsSelected");
DataRow dr = dt.NewRow();
dr[
"ID"] = "1";
dr[
"FullName"] = "Arvind";
dr[
"IsSelected"] = true;
dt.Rows.Add(dr);
dr = dt.NewRow();
dr[
"ID"] = "2";
dr[
"FullName"] = "Robin";
dr[
"IsSelected"] = true;
dt.Rows.Add(dr);
dr = dt.NewRow();
dr[
"ID"] = "3";
dr[
"FullName"] = "Kumar";
dr[
"IsSelected"] = false;
dt.Rows.Add(dr);
radGvw.DataSource = dt;
While running the application, totally 6 columns are generated. All the three columns are repeated. The columns are displaying in the order ID, FullName, IsSelected, ID, FullName, IsSelected. The IsSelected column type is textbox column in the second time.
I am new to this Telerik control. Please advice.
Regards,
Arvind Robin Kumar.
I currently have a grid with a checkbox column. When the user checks the checkbox I change the background color and that works fine but i'm unable to change the text color on the ValueChanged event of that grid.
//Row Highlight when selected |
GridCheckBoxCellElement cbCell = (GridCheckBoxCellElement)sender; |
cbCell.RowElement.BackColor = System.Drawing.ColorTranslator.FromHtml("#DAFB5E"); |
cbCell.RowElement.DrawFill = true; |
cbCell.RowElement.ForeColor = this.radGVTables.ForeColor = Color.Sienna; |
//I've tried this and it didn't work either. |
cbCell.RowElement.ForeColor = Color.Sienna; |
Thank you for any help