This is a migrated thread and some comments may be shown as answers.

Error with Dependent Grid Tables

1 Answer 50 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Frank
Top achievements
Rank 1
Frank asked on 27 May 2016, 02:49 PM

Hi, I used some code I found here to create a dependent grid.  When the user clicks on a row, it opens two dependent grids that filter based on the row he/she clicked on.  I am experiencing an error when I submit the form:

Exception of type 'System.Web.HttpUnhandledException' was thrown.
A control with ID 'ctl00$ctl04$fvlc$Form1$Grid1' could not be found for the trigger in UpdatePanel 'ctl00$ctl04$fvlc$Form1$Grid1Panel'.

 

As far as I can tell the Grid1 was defined in the form.

 

 <sq:AjaxManager ID="AjaxManager1" runat="server">
      <AjaxSettings>
            <sq:AjaxSetting AjaxControlID="Grid1">
                <UpdatedControls>
                    <sq:AjaxUpdatedControl ControlID="Grid1"></sq:AjaxUpdatedControl>
                    <sq:AjaxUpdatedControl ControlID="Grid2" LoadingPanelID="AjaxLoadingPanel1"></sq:AjaxUpdatedControl>
                    <sq:AjaxUpdatedControl ControlID="Grid3" LoadingPanelID="AjaxLoadingPanel1"></sq:AjaxUpdatedControl>
                </UpdatedControls>
                </sq:AjaxSetting>
            <sq:AjaxSetting AjaxControlID="Grid2">
              <UpdatedControls>
                    <sq:AjaxUpdatedControl ControlID="Grid2"></sq:AjaxUpdatedControl>
                    <sq:AjaxUpdatedControl ControlID="Grid3" LoadingPanelID="AjaxLoadingPanel1"></sq:AjaxUpdatedControl>
                </UpdatedControls>
            </sq:AjaxSetting>
         <sq:AjaxSetting AjaxControlID="Grid3">
                <UpdatedControls>
                    <sq:AjaxUpdatedControl ControlID="Grid3"></sq:AjaxUpdatedControl>
                </UpdatedControls>
            </sq:AjaxSetting>
        </AjaxSettings>
    </sq:AjaxManager>
    <sq:AjaxLoadingPanel ID="AjaxLoadingPanel1" runat="server" Skin="Default"></sq:AjaxLoadingPanel>

 

Thanks for the help.

1 Answer, 1 is accepted

Sort by
0
Viktor Tachev
Telerik team
answered on 31 May 2016, 11:37 AM
Hi Frank,

Based on the provided information it would be hard to pinpoint what is causing the error. However you can try couple of things in order to narrow the search.

Disable AJAX by setting the EnableAJAX property of RadAjaxManager to false. Then test the behavior again and see if there are any server-side errors thrown.

In case the issue persists please send us the complete markup with the related code-behind. Thus, we will be able to examine the code and look for possible issues.

Regards,
Viktor Tachev
Telerik
Do you need help with upgrading your ASP.NET AJAX, WPF or WinForms projects? Check the Telerik API Analyzer and share your thoughts.
Tags
Grid
Asked by
Frank
Top achievements
Rank 1
Answers by
Viktor Tachev
Telerik team
Share this question
or