+1-888-365-2779
Try Now
More in this section

Forums / Developing with Sitefinity / RadGrid Disappears after a sort/paging request, then reappears

RadGrid Disappears after a sort/paging request, then reappears

5 posts, 0 answered
  1. Michael
    Michael avatar
    17 posts
    Registered:
    12 Oct 2008
    10 Dec 2008
    Link to this post
    So, I am building a custom module, and have done the following:

    • I placed RadAjaxManager in the admin.master page.
    • I placed RadAjaxManagerProxy in my Controller.ascx control.
    • I placed a RadGrid control in Controller.ascx, and set the OnNeedDataSource event.

    The control populates with data as expected, and the control pages and sorts as expected.  But the control disappears after each request for a sort or a page increment/decrement.

    see this screen cast to see what I mean: http://www.screentoaster.com/watch/stVUNdQkVLR1FWRFVbXl1Y

    I cannot figure this one out.  I suspect it has something to do with the admin page that the control is being added to.  I tried the method (in the KB) of programmactically setting up the script manager to no avail.

    Thanks,

    Mike
  2. Michael
    Michael avatar
    17 posts
    Registered:
    12 Oct 2008
    11 Dec 2008
    Link to this post
    Update: The problem is resolved when I remove the RadAjaxManagerProxy, and use the RadAjaxPanel instead.  Are there issues with using the RadAjaxManager/RadAjaxManagerProxy in the admin sections of custom, intrasite modules?


  3. Ivan
    Ivan avatar
    478 posts
    Registered:
    16 Jun 2015
    11 Dec 2008
    Link to this post
    Hello Michael,

    first I'd like to thank you for the effort you've invested to put up a screencast. It really helps to see the problem.

    The RadAjaxManager and RadAjaxManagerProxy controls are not able to ajaxify other controls on their own. Contrary to this, placing a control inside of RadAjaxPanel will ajaxify anything inside (RadAjaxPanel is Telerik's version of UpdatePanel from ASP.NET Ajax - on a side note, RadAjaxPanel existed before UpdatePanel - so it's not that we are reinventing the wheel).

    To ajaxify RadGrid you have numerous options. For all of these you will need RadAjaxManager, but that control is placed by default in Sitefinity.

    • Using RadAjaxPanel is the fastest and easiest way
    • You can also write web services and use pure client side binding - which will give you the best performance, but it will take some time to implement
    • Note that the approach with static methods that can be found on RadGrid documentation (http://www.telerik.com/help/aspnet-ajax/gridoverview.html) does not work with UserControls and since IntraSite modules are composed of UserControls you cannot use this approach.

    I hope I was able to clarify this subject a bit. Let us know if there is anything else we can do for you.

    Greetings,
    Ivan
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
  4. Michael
    Michael avatar
    17 posts
    Registered:
    12 Oct 2008
    11 Dec 2008
    Link to this post
    Thanks for getting back to me.

    I wish I could say I made a lot of effort to put up the screen cast, but that service (screentoaster) I used made it so simple.  I don't work for them or know them, but I would highly recommend others try it (and it's free!).

    Also, I just want to clarify your response (or make sure I understand it).  What you are saying is that RadAjaxManager does not work with user controls in the same way it would if added to an aspx page?  Further, you are saying that its possible to get it to work, but that would require one to add a bunch of additonal scripts and hooks.  Is this correct?

    Further, you are saying there is no need to add RadAjaxManager to the admin.master  page because it is already added at a higher level somewhere else?

    I am just a little confused as to how all of this fits with the advice in this forum post:

    http://www.sitefinity.com/support/forums/support-forum-thread/b1043S-bgcabd.aspx

    I am happy my stuff is working, but I am trying to gain a better understanding of why it was not working.

    Thanks,

    Mike


  5. Georgi
    Georgi avatar
    3583 posts
    Registered:
    28 Oct 2016
    17 Dec 2008
    Link to this post
    Hi Michael,

    We are glad that you have it working.
    We will try to explain this better in series of blog posts.

    Best wishes,
    Georgi
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Register for webinar
5 posts, 0 answered