Im trying to use the comboxbox from this demo (just the first one) whithin a radgrid edit form template like this demo. This is all wrapped up in an RadAjaxPanel and the grid is set to the following.
Exception Details: System.NullReferenceException: Object reference not set to an instance of an object.
Source Error:
| <telerik:RadGrid ID="RadGrid1" runat="server" |
| AllowPaging="True" AllowSorting="True" GridLines="None" |
| ShowGroupPanel="True" Width="795px" Style="margin-left:15px;" |
| DataSourceID="XmlDataSource2" AutoGenerateDeleteColumn="True" ShowStatusBar="true" |
| AutoGenerateEditColumn="True" > |
| <MasterTableView autogeneratecolumns="False" EditMode="PopUp" CommandItemDisplay="Top" |
| datasourceid="XmlDataSource2"> |
| <EditFormSettings EditFormType="Template" InsertCaption="New Journal Entry" PopUpSettings-Modal="true"> |
However, the javascript from the first demo in Default.cs.aspx, specifically the following, throws the following error. Since the javascript has no clue how to find the id of something that is yet to exist what do you recommend that I do here? The dropdown code worked just fine until I put it in the editform template. ;-)
| var combo = $find("<%= RadComboBox1.ClientID %>"); |
Exception Details: System.NullReferenceException: Object reference not set to an instance of an object.
Source Error:
Line 21: Line 22: function onCheckBoxClick(chk) {Line 23: var combo = $find("<%= RadComboBox1.ClientID %>"); |