I need to interrogate a cell on the row being edited to determine if editing is allowed. The cell I'm trying to retrieve is a hidden column, not the one the user is trying to edit. When I look at the value of e.rowindex it doesn't match the row being edited. The grid is a hierarchy view. The value of e.rowindex seems to be associated with the rows being displayed at that hierarchy level.
How can I get the row being edited?
I switched over to the latest release and this fixed the problem.
Object of type 'Telerik.Charting.Styles.Unit' cannot be converted to type 'Telerik.Charting.Styles.Unit'.
at System.ComponentModel.ReflectPropertyDescriptor.SetValue(Object component, Object value)
at System.ComponentModel.Design.Serialization.CodeDomSerializerBase.DeserializePropertyAssignStatement(IDesignerSerializationManager manager, CodeAssignStatement statement, CodePropertyReferenceExpression propertyReferenceEx, Boolean reportError)
at System.ComponentModel.Design.Serialization.CodeDomSerializerBase.DeserializeAssignStatement(IDesignerSerializationManager manager, CodeAssignStatement statement)
at System.ComponentModel.Design.Serialization.CodeDomSerializerBase.DeserializeStatement(IDesignerSerializationManager manager, CodeStatement statement)
RadListDataItem rcbi0 = new RadListDataItem("ANY");RadListDataItem rcbi1 = new RadListDataItem("1");RadListDataItem rcbi2 = new RadListDataItem("10");RadListDataItem rcbi3 = new RadListDataItem("15");RadListDataItem rcbi4 = new RadListDataItem("20");RadListDataItem rcbi5 = new RadListDataItem("25");RadListDataItem rcbi6 = new RadListDataItem("30");RadListDataItem rcbi7 = new RadListDataItem("40");radDropDownListPriceMin.Items.AddRange(new[]{ rcbi0, rcbi1, rcbi2, rcbi3, rcbi4, rcbi5, rcbi6, rcbi7});radDropDownListPriceMin.SelectedIndex = 0;radDropDownListPriceMax.Items.AddRange(new[]{rcbi0, rcbi1, rcbi2, rcbi3, rcbi4, rcbi5, rcbi6, rcbi7});radDropDownListPriceMax.SelectedIndex = 0;RadListDataItems to radDropDownListPriceMax BUT radDropDownListPriceMin is empty!
This code works fine in Q3:
string[] pricesList = new string[7];pricesList[0] = "ANY";pricesList[1] = "1";pricesList[2] = "10";pricesList[3] = "15";pricesList[4] = "20";pricesList[5] = "25";pricesList[6] = "30";radDropDownListPriceMin.Items.AddRange(pricesList);radDropDownListPriceMin.SelectedIndex = 0;radDropDownListPriceMax.Items.AddRange(pricesList);radDropDownListPriceMax.SelectedIndex = 0;Hello,
I am new at this as I am trying to learn and get comfortable with Telerik. I have a winform app with 2 combo boxes, which are bind from a dataset/datatable. And I would like some sample code on how to bind different images to all each item in my combo box 1 and combo box 2.
After that I would like to code for the selected_index changed of the combo box 1. I would like to re-bind the data of the combo box 2 base on the selection on combo box 1.
I can do all of that in the normal combo box where I manually typed in all the items to the combo box and then uses the RadListDataItem Collection Editor to add in the images....but I want to do it with code as my combo box 2 changes base on the selection of combo box 1.
Thanks.