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

How to Ajaxify a RadTabStrip+MultiPage

4 Answers 244 Views
Ajax
This is a migrated thread and some comments may be shown as answers.
CSurieux
Top achievements
Rank 2
CSurieux asked on 21 Jun 2008, 10:58 AM
Hello,

It appears very difficult to Ajaxify elements in a RadTabStrip and I would appreciate to receive guidelines and best practice.

My RadTabStrip are inside a user control or custom controls, they have or not the autopostback turned on.
They are all associated with RadMultiPage.
I have an AjaxManager in the main page which is loading the controls.

From this point, I have 2 main problems:
1) How to Ajaxify TabStrip postback ?
2) How to Ajaxify buttons or radcombos or any postback element present in a PageView?


Concerning point 1, I first tryed to add an AjaxSetting for the TabStrip control than add as updated controls TabStrip and its MultiPage, it seems to works. But when I update controls positionned in hidden pageviews, from time to time, I get errors on the page (being on a remote site I have no ability to debug the output) and tabstrip no more works refusingf to change Tab and/or associated pageView. (Controls on other page may be a RadGrid and/or a RadChart.)

Concerning Point 2, I have not found a working solution having from time to time strange behaviors.
For exemple if I have a RadCombobox with autopostback and if in the corresponding EventHandler I hide or display a group of controls. Even setting all these controls as updated controls depending of the RadCombo doesn't work.
When I want to display back the group of controls there is no effects, they stay hidden.
I often get errors in the resulting page with object undefined or null.
I tryed to set the pageview containing the updated controls, here notice that AjaxManager Expert allows to do this, then I get an error on runtime saying that this control is not valid as an updated control. PageViews should be filtered from AjaxManager Expert.

Last point, hope that the FormDecorator present on the page behave Ok...
I have readden the general documentation but only found very generic guidelines and forum often contact indication for previous radcontrols.

Thanks for great clarification on todo and nottodo with TabStrip/MultiPage/AjaxManager.

CS

4 Answers, 1 is accepted

Sort by
0
Maria Ilieva
Telerik team
answered on 24 Jun 2008, 09:55 AM
Hello Christian Surieux,

1. Please note that you could not add control which is initially invisible on the page, to the RadAjaxManager settings. The initiator or the updated control should be always placed in a visible container so that the manager can locate it when necessary.
 
2. Single PageView could not be added as AJAX initiator or updated control in the AJAX settings. The only possible approach is to add the whole MultiPage in the RadAjaxManager settings or wrap the whole control into RadAjaxPanel. The other option is to locate the controls within the PageView dynamically and add the respective settings similar to the other naming containers scenario like the WebUserControls or Master/ContentPage (see the dynamically adding settings examples there).

Let us know if further questions arise.

Regards,
Maria Ilieva
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Shinu
Top achievements
Rank 2
answered on 24 Jun 2008, 10:22 AM
Hi Christian,

You can also go through the following help atricles to get information about RadAjaxManager and RadAjaxPanel.

AJAX Panel
AJAX Manager
RadAjax and MasterPage


Shinu.
0
CSurieux
Top achievements
Rank 2
answered on 24 Jun 2008, 11:37 AM
Hello Maria and Shinu,

I will check this Visible problem, may be my problems com from this point.

To come back to RadTabStrip, some factual questions

1) when tabstrip is used as an initiator, should it also be in the updated list
2) could a control inside a pageview upgrade the full multipage ?
3) if we set the whole multipage as an updated control, is it necessary to add the controls residing in its pageviews (RadGrid, RadChart)?
4) when we set the multipage as an updated control, should we also include the TabStrip assoiated with it ?


Many thanks.

CS
0
Maria Ilieva
Telerik team
answered on 24 Jun 2008, 04:40 PM
Hi Christian Surieux,

1. For now the better approach would be to add the initiator also as updated control. Please, give it a go and see if it helps.
.
2. This is possible if you add the controls dynamically, as it is described in the provided resources. If they are regularly added, you could not use them in the Ajax settings at all.

3. If you set the whole MultiPage as updated control, it is not necessary to add the controls residing in its pageviews.

4.
When we set the MultiPage as an updated control, you should also include the TabStrip associated with it in the Ajax settings.

All the best,
Maria Ilieva
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
Tags
Ajax
Asked by
CSurieux
Top achievements
Rank 2
Answers by
Maria Ilieva
Telerik team
Shinu
Top achievements
Rank 2
CSurieux
Top achievements
Rank 2
Share this question
or