How to Ajaxify a RadTabStrip+MultiPage

5 posts, 0 answers
  1. CSurieux
    CSurieux avatar
    465 posts
    Member since:
    Jan 2007

    Posted 21 Jun 2008 Link to this post

    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
  2. Maria Ilieva
    Admin
    Maria Ilieva avatar
    4017 posts

    Posted 24 Jun 2008 Link to this post

    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
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Shinu
    Shinu avatar
    17764 posts
    Member since:
    Mar 2007

    Posted 24 Jun 2008 Link to this post

    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.
  5. CSurieux
    CSurieux avatar
    465 posts
    Member since:
    Jan 2007

    Posted 24 Jun 2008 Link to this post

    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
  6. Maria Ilieva
    Admin
    Maria Ilieva avatar
    4017 posts

    Posted 24 Jun 2008 Link to this post

    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
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017