Adding AJAX to RadWindow containing Controls and RadListView in Master Page/Content Page Architecture

2 posts, 0 answers
  1. Brian
    Brian avatar
    1 posts
    Member since:
    Mar 2013

    Posted 27 Aug 2013 Link to this post



    Our goal is to add AJAX to a page that has a somewhat complicated architecture. The basic structure is:

    Master Page

    1. RadAjaxManager
    2. RadScriptManager

    Content Page

    1. RadAjaxManagerProxy
    2.  RadGrid
    3. RadWindow (Opened from button click on RadGrid)
    • 4 Buttons (Which execute server-side code that affects the contents of the RadWindow)
    • User Control (Collection of labels to display information only)
    • RadListView (Each item in the RadListView has controls to display or change data)
    • Item Delete Button (One per RadListView item)
    • RadComboBox (One per RadListView item) (Updates Label below)
    • Label (One per RadListView item)

    There are other controls on the page but they are out of scope, so to speak, of what the main issue is. For simplicity's sake they are not listed.

    So, the Master Page holds the main RadAjaxManager and RadAjaxScriptManager, and the Content Page has the RadAjaxManagerProxy. Using the Proxy, I've been able to successfully AJAX the controls inside the Content Page, including the RadGrid and it opening the RadWindow after clicking a button in the row in the RadGrid.

    However, we've hit a roadblock with trying to AJAXify the controls inside the RadWindow. At best, we can get it so that the Item Delete Button and ComboBox updating the Label work, but they cause the entire RadWindow to blink in and out or disappear/reappear. The buttons, which have to do with saving the data in the RadWindow to the database, adding an item to the RadListView, or deleting everything, are specifically the biggest problem. No attempt has made them work using AJAX. They always cause a full postback.

    The complexity of the items in our RadListView may be an issue, though I'm not sure. Each item holds numerous controls that display or change the data of the object represented. I haven't found many examples of people using it this way, and fewer that try to AJAX them.

    Any suggestions on what to try, or examples to look at, would be appreciated. Ideally, we would like all operations inside the RadWindow to be AJAX, and to have a seamless user experience -- no RadWindow blinking, and certainly not full postbacks.

    Thanks for any help anyone can give!

  2. Antonio Stoilkov
    Antonio Stoilkov avatar
    530 posts

    Posted 30 Aug 2013 Link to this post

    Hello Brian,

    In order to ajaxify the RadWindow you could follow the help article shown below. The idea is to use a UpdatePanel instead of the RadAjaxManager. For further information on why this is required you could read the In Conclusion section of the article.

    Antonio Stoilkov
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to the blog feed now.
Back to Top