hi telerik team
I followed this demo http://demos.telerik.com/aspnet-ajax/controls/examples/integration/gridincombobox/defaultcs.aspx?product=combobox
the difference is that i have two combos in cascade, so the first one has the radgrid load on demand, all is working, but i getting into a javascript error (see the image)
this is my javascript code when select a row of the radgrid, i test it and see that the problem is the doPostback, so whats the correct way to make the cascading of the combos.
function RowSelected(sender, args) {
var selectedText = args.getDataKeyValue("Name");
var selectedValue = args.getDataKeyValue("InstanceID");
var combo = $find('<%= rcCustomer.ClientID %>');
if (selectedValue.length > 0) {
combo.trackChanges();
combo.set_text(selectedText);
combo.set_value(selectedValue);
combo.get_items().getItem(0).set_text(selectedText);
combo.get_items().getItem(0).set_value(selectedValue);
combo.commitChanges();
}
__doPostBack(combo.id, "TextChange");
}
Thanks for the help
I followed this demo http://demos.telerik.com/aspnet-ajax/controls/examples/integration/gridincombobox/defaultcs.aspx?product=combobox
the difference is that i have two combos in cascade, so the first one has the radgrid load on demand, all is working, but i getting into a javascript error (see the image)
this is my javascript code when select a row of the radgrid, i test it and see that the problem is the doPostback, so whats the correct way to make the cascading of the combos.
function RowSelected(sender, args) {
var selectedText = args.getDataKeyValue("Name");
var selectedValue = args.getDataKeyValue("InstanceID");
var combo = $find('<%= rcCustomer.ClientID %>');
if (selectedValue.length > 0) {
combo.trackChanges();
combo.set_text(selectedText);
combo.set_value(selectedValue);
combo.get_items().getItem(0).set_text(selectedText);
combo.get_items().getItem(0).set_value(selectedValue);
combo.commitChanges();
}
__doPostBack(combo.id, "TextChange");
}
Thanks for the help