hi; I keep getting an error when trying to databind or rebind a radgrid. The scenario is
MainPage.aspx has two control pages , Applicants.ascx and ApplicantDetail.ascx. Applicants.ascx build a gridview and allows user to select. ApplicantDetails.ascx takes selectedValue and builds detail page. If I don't call for databind then the grid loads one step behind. This will correct itself when I ask it to edit,delete or insert a new record and no error occurs. However if I databind as I have it written or anywhere else ie. Page_prerender, Page_load the following error comes up.
" Script Control 'RadTextBox1' is not a registered script control. Script controls must be registered using registerScriptControl() before callign RegisterScriptDescriptors(). Parameter name: ScriptControl() "
I do have the ApplicantDetailGrid wrapped in an ajaxpanel, but removing this did not make any difference. It seems to have everything to do with how I am databinding. thanks for any assistance.
MainPage code
    
ApplicantDetail page code
    
Applicant Detail Source
    
                                MainPage.aspx has two control pages , Applicants.ascx and ApplicantDetail.ascx. Applicants.ascx build a gridview and allows user to select. ApplicantDetails.ascx takes selectedValue and builds detail page. If I don't call for databind then the grid loads one step behind. This will correct itself when I ask it to edit,delete or insert a new record and no error occurs. However if I databind as I have it written or anywhere else ie. Page_prerender, Page_load the following error comes up.
" Script Control 'RadTextBox1' is not a registered script control. Script controls must be registered using registerScriptControl() before callign RegisterScriptDescriptors(). Parameter name: ScriptControl() "
I do have the ApplicantDetailGrid wrapped in an ajaxpanel, but removing this did not make any difference. It seems to have everything to do with how I am databinding. thanks for any assistance.
MainPage code
| Protected Sub Applicants1_PreRender(ByVal sender As Object, ByVal e As System.EventArgs) Handles Applicants1.PreRender | 
| ApplicantDetail1.ApplicantID = Applicants1.SelectedGridItem 'The Detail page | 
| End Sub | 
ApplicantDetail page code
| Public Property ApplicantID() As String | 
| Get | 
| Return lblAppID.Text | 
| End Get | 
| Set(ByVal value As String) | 
| lblAppID.Text = value | 
| RadGrid1.Databind() | 
| 'Radrid1.Rebind() | 
| End Set | 
| End Property | 
Applicant Detail Source
| <asp:SqlDataSource ID="SqlDataSource1" runat="server" | 
| ConnectionString="<%$ ConnectionStrings:Conn %>" | 
| DeleteCommand="DELETE FROM [ATS_Prescreen] WHERE [PreScreenID] = @PreScreenID" | 
| InsertCommand="INSERT INTO..." | 
| SelectCommand="SELECT * FROM [table] WHERE ([AppID] = @AppID)" | 
| UpdateCommand="UPDATE table ... WHERE [PreScreenID] = @PreScreenID"> | 
| <SelectParameters> | 
| <asp:ControlParameter ControlID="lblAppID" DefaultValue="xx" Name="AppID" PropertyName="Text" /> | 
| </SelectParameters> | 
| <DeleteParameters> | 
| <asp:Parameter Name="PreScreenID" Type="Int32" /> | 
| </DeleteParameters> | 
| <UpdateParameters> | 
| Params... | 
| </UpdateParameters> | 
| <InsertParameters> | 
| <asp:ControlParameter ControlID="lblAppID" DefaultValue="xx" Name="AppID" PropertyName="Text" /> | 
| Insert Params.. | 
| </InsertParameters> | 
| </asp:SqlDataSource> | 
| <asp:Label ID="lblAppID" runat="server" Text="Label" Visible="False"></asp:Label> | 
