I'm fairly new to the Telerik components (by the way a great set of components) and now I have a problem retrieving data in the insertCommand method.
I have RadGrid containing a FormTemplate for editing the data.
I was not precis in my explanation and the code I posted was simplified. My problem is that not only have one ComboBox in this FormTemplate - but 16. I want to reuse the UserControl and therefor I set some properties and in the CodeBehind of the UserControl I dynamically load the ComboBox items depending on the properties.
That's was the reason for that I tried to set the ID of ComboBox.
MyTruckItemComboBox myTruckItemComboBox = EditItem.FindControl("MyTruckItemComboBoxBrand") as MyTruckItemComboBox;
myTruckItemComboBox.ID = "cbBrandxxx";
myTruckItemComboBox.GroupID = "BRD";
myTruckItemComboBox.Languagecode = "en-US";
I tried to do the same thing with your code example but when want to look up the ComboBox with the "FindControl" and the ID I have set, he returns a null.
I think I got it to work, placing the injection of the UserControl in ItemCreate and giving the UserControle a unique ID did the trick for me - I think. I have to test it further tomorrow - I have a meeting now :-(
Thanks again. But I don't promise that wont be back tomorrow ;-)