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

UpdatedControls Issue

5 Answers 78 Views
Ajax
This is a migrated thread and some comments may be shown as answers.
digitall
Top achievements
Rank 1
digitall asked on 24 Feb 2009, 02:12 AM
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?

5 Answers, 1 is accepted

Sort by
0
Accepted
Iana Tsolova
Telerik team
answered on 25 Feb 2009, 11:48 AM
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.
0
digitall
Top achievements
Rank 1
answered on 25 Feb 2009, 03:57 PM
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.
0
Iana Tsolova
Telerik team
answered on 26 Feb 2009, 12:58 PM
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.
0
digitall
Top achievements
Rank 1
answered on 26 Feb 2009, 10:40 PM
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..
0
Kaloyan Simeonov
Telerik team
answered on 04 Mar 2009, 12:47 PM
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.
Tags
Ajax
Asked by
digitall
Top achievements
Rank 1
Answers by
Iana Tsolova
Telerik team
digitall
Top achievements
Rank 1
Kaloyan Simeonov
Telerik team
Share this question
or