Hi,
I've set up a grid with Batch editing enabled and in one of the columns (TemplateColumn) I use a usercontrol as and editor. This usercontrol contains three cascading comboboxes with the following definition:
Besides that the control contains an ajaxmanager proxy:
When testing this control on a form, not in a grid, in works fine, even when putting hundreds of them on one page.
However as soon as I put this control in a grid, weird things start to happen:
First selecting an item of the Family Combobox works fine, all events are events are fired correctly
When selecting an item of the next combo (Genus), for some reason a SelectedIndexChanged event is fired for the Family combo while it is not clicked or changed in anyway. Random javascript errors apear as well, but I cannot reproduce those and in another grid, selecting an item from the Family combox will hide the usercontrol, not letting me choose an item from Genus or Especies. All in all, the behaviour becomes very erratic.
When using the control in an ItemTemplate it works fine, however it causes the page to be very unresponsive when using a grid of 100 rows
Any ideas what might be going wrong? Or an example of how to accomplish what I'm trying to do? Thanks in advance for any help!
Ioish
I've set up a grid with Batch editing enabled and in one of the columns (TemplateColumn) I use a usercontrol as and editor. This usercontrol contains three cascading comboboxes with the following definition:
<table class="layout"> <tr> <td> <telerik:RadComboBox ID="Family" runat="server" Width="150" EmptyMessage="FamÃlia" EnableLoadOnDemand="True" ShowMoreResultsBox="true" EnableVirtualScrolling="true" OnItemsRequested="FamilyItemsRequested" AutoPostBack="True"> </telerik:RadComboBox> </td> <td> <telerik:RadComboBox ID="Genus" runat="server" Width="150" EmptyMessage="Género" EnableLoadOnDemand="True" ShowMoreResultsBox="true" EnableVirtualScrolling="true" OnItemsRequested="GenusItemsRequested" AutoPostBack="True"> </telerik:RadComboBox> </td> <td> <telerik:RadComboBox ID="Species" runat="server" Width="150" EmptyMessage="Espécie" EnableLoadOnDemand="True" ShowMoreResultsBox="true" EnableVirtualScrolling="true" OnItemsRequested="SpeciesItemsRequested" AutoPostBack="True"> </telerik:RadComboBox> </td> </tr></table><asp:HiddenField ID="SelectedTaxonId" runat="server" /><asp:HiddenField ID="SelectedTaxonName" runat="server" />Besides that the control contains an ajaxmanager proxy:
<telerik:RadAjaxManagerProxy ID="ajaxProx" runat="server"> <AjaxSettings> <telerik:AjaxSetting AjaxControlID="Family"> <UpdatedControls> <telerik:AjaxUpdatedControl ControlID="Genus" UpdatePanelCssClass="" /> <telerik:AjaxUpdatedControl ControlID="Species" UpdatePanelCssClass="" /> <telerik:AjaxUpdatedControl ControlID="SelectedTaxonId" UpdatePanelCssClass="" /> <telerik:AjaxUpdatedControl ControlID="SelectedTaxonName" UpdatePanelCssClass="" /> </UpdatedControls> </telerik:AjaxSetting> <telerik:AjaxSetting AjaxControlID="Genus"> <UpdatedControls> <telerik:AjaxUpdatedControl ControlID="Species" UpdatePanelCssClass="" /> <telerik:AjaxUpdatedControl ControlID="SelectedTaxonId" UpdatePanelCssClass="" /> <telerik:AjaxUpdatedControl ControlID="SelectedTaxonName" UpdatePanelCssClass="" /> </UpdatedControls> </telerik:AjaxSetting> <telerik:AjaxSetting AjaxControlID="Species"> <UpdatedControls> <telerik:AjaxUpdatedControl ControlID="SelectedTaxonId" UpdatePanelCssClass="" /> <telerik:AjaxUpdatedControl ControlID="SelectedTaxonName" UpdatePanelCssClass="" /> </UpdatedControls> </telerik:AjaxSetting> </AjaxSettings></telerik:RadAjaxManagerProxy>When testing this control on a form, not in a grid, in works fine, even when putting hundreds of them on one page.
However as soon as I put this control in a grid, weird things start to happen:
First selecting an item of the Family Combobox works fine, all events are events are fired correctly
When selecting an item of the next combo (Genus), for some reason a SelectedIndexChanged event is fired for the Family combo while it is not clicked or changed in anyway. Random javascript errors apear as well, but I cannot reproduce those and in another grid, selecting an item from the Family combox will hide the usercontrol, not letting me choose an item from Genus or Especies. All in all, the behaviour becomes very erratic.
When using the control in an ItemTemplate it works fine, however it causes the page to be very unresponsive when using a grid of 100 rows
Any ideas what might be going wrong? Or an example of how to accomplish what I'm trying to do? Thanks in advance for any help!
Ioish