I am trying to click a submit button after loading and pre-populating and pre-selecting a value of two radcomboboxes.
If I try it with this code: (the setting for the second radcombobox is: EnableAutomaticLoadOnDemand
It works.
However if I change the second radcombobox setting to EnableAutomaticLoadOnDemand
For the error please see attached "error.jpg"
To set the selectedvalue of each rad box I use the following code in the page load event:
Please help!
If I try it with this code: (the setting for the second radcombobox is: EnableAutomaticLoadOnDemand
="True" )<tr> <td colspan="2"> <b> Supervisor Name </b></td> <td colspan="3"> <asp:HiddenField ID="CRAFT_CODE_Textbox" runat="server" value="H" /> <asp:HiddenField ID="SUPV_ID_TextBox" runat="server" /> <br /> <telerik:RadComboBox ID="wcOfficerName" Runat="server" DataSourceID="sdsOfficer" DataTextField="FULL_NAME" DataValueField="SUPV_ID" EnableAutomaticLoadOnDemand="False" EnableItemCaching="True" EnableLoadOnDemand="False" EnableVirtualScrolling="False" Filter="StartsWith" ItemsPerRequest="-1" MarkFirstMatch="False" Width="279px" ShowMoreResultsBox="False" Skin="Office2007" LoadingMessage="Loading Please Wait..." EmptyMessage="Please Select Supervisor"> </telerik:RadComboBox> </td> </tr> <tr> <td colspan="2"> <b> Employee Name</b></td> <td colspan="3"> <asp:HiddenField ID="EMPL_ID_TextBox" runat="server" /> <br /> <telerik:RadComboBox ID="wcEmployeeName" Runat="server" DataSourceID="sdsEmployees" DataTextField="FULL_NAME" DataValueField="PERSON_ID" EnableAutomaticLoadOnDemand="True" EnableItemCaching="True" EnableLoadOnDemand="False" EnableVirtualScrolling="False" Filter="StartsWith" ItemsPerRequest="-1" MarkFirstMatch="False" Width="279px" ShowMoreResultsBox="False" Skin="Office2007" LoadingMessage="Loading Please Wait..." EmptyMessage="Please Select Employee"> </telerik:RadComboBox> <br /> </td> </tr>However if I change the second radcombobox setting to EnableAutomaticLoadOnDemand
="False" then it errors out when I click the "submit" button.For the error please see attached "error.jpg"
To set the selectedvalue of each rad box I use the following code in the page load event:
Me.wcEmployeeName.SelectedValue = dataset.Tables(0).Rows(0)(4) Me.wcOfficerName.SelectedValue = dataset.Tables(0).Rows(0)(3)Please help!