UpdatedControls Issue

6 posts, 1 answers
  1. digitall
    digitall avatar
    169 posts
    Member since:
    Jun 2006

    Posted 23 Feb 2009 Link to this post

    I have a page using the Telerik tab control with three tabs. Inside the second tab is the Toolbar control and a CheckboxList (bound in the code-behind). Inside the third tab is a RadGrid that is bound in the code-behind. The Toolbar control has a single button that opens a RadWindow instance with a new page as a modal. When you save the contents of the page in the modal the CheckboxList control should update. The AjaxManager on the page looks like this:

        <telerik:RadAjaxManager runat="server" ID="RadAjaxManager1" OnAjaxRequest="RadAjaxManager1_AjaxRequest"
            <AjaxSettings> 
                <telerik:AjaxSetting AjaxControlID="RadAjaxManager1"
                    <UpdatedControls> 
                        <telerik:AjaxUpdatedControl ControlID="cklProjects" /> 
                        <telerik:AjaxUpdatedControl ControlID="grdContacts" /> 
                    </UpdatedControls> 
                </telerik:AjaxSetting> 
            </AjaxSettings> 
        </telerik:RadAjaxManager> 

    If I comment out the line where I include "grdContacts" as an UpdatedControl, everything works great. You can hit the Toolbar button which opens the modal, save the changes in it which automatically closes the window and calls the Javascript function on the parent page telling the AjaxManager to do a callback:

                function __refreshProjectGrid(args) { 
                    $find("<%= RadAjaxManager1.ClientID %>").ajaxRequest(args); 
                } 
     

    If the line is left uncommented (because the end result is that I will want to update the CheckboxList sometimes and the RadGrid other times) everything gets called as I would expect (I can see this when I debug), but the CheckboxList doesn't actually update itself.

    Any thoughts?
  2. Answer
    Iana Tsolova
    Admin
    Iana Tsolova avatar
    3388 posts

    Posted 25 Feb 2009 Link to this post

    Hello digitall,

    The reason for this behavior is that the grdContacts control is not visible when the ToolBar and the CheckBox are as it is in another tab/PageView possibly. Thus the RadAjaxManager is unable to find the grid and throws an error.
    Therefore I would suggest that you set as updated control in this ajax setting the whole MultiPage or Content  control instead of trying to ajaxify particular controls in it.

    Give it a try and let me know if this works for you.
     
    Kind regards,
    Iana
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. digitall
    digitall avatar
    169 posts
    Member since:
    Jun 2006

    Posted 25 Feb 2009 Link to this post

    Would that apply since the tabs are all client-side? I don't do any type of dynamic loading of them (all data is loaded when the page is loaded) - it's a straight tab control and multipage control.

    I will give it a shot tonight when I get home to see though.
  5. Iana Tsolova
    Admin
    Iana Tsolova avatar
    3388 posts

    Posted 26 Feb 2009 Link to this post

    Hello digitall,

    Yes, ajaxifying the whole MultiPage control should apply.

    Additionally, please review this helps topic to find out more about RadGrid visible/invisible conventions.

    Let me know how it goes.

    Greetings,
    Iana
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
  6. digitall
    digitall avatar
    169 posts
    Member since:
    Jun 2006

    Posted 26 Feb 2009 Link to this post

    That appears to have worked great. The other tab that will need to be updated hasn't been built yet but I don't see why it won't work. Thanks for the assistance!

    Side note: Why aren't you all using Silverlight as the header for the different pages in your site that are currently Flash?? It seems like a great way to promote the platform..
  7. Kaloyan Simeonov
    Admin
    Kaloyan Simeonov avatar
    5 posts

    Posted 04 Mar 2009 Link to this post

    Hello digitall,

    Using Silverlight instead of flash has been considered and we may introduce it in the near future.

    We are currently investigating the options. We have tried it in the past, but back then the adoption of Silverlight was very small and a lot of people didn't have it installed. Now, when the  adoption rate increases constantly, we are looking into this option.

    Best regards,
    Kaloyan Simeonov
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017