Disable postback

2 posts, 0 answers
  1. Dmitry
    Dmitry avatar
    121 posts
    Member since:
    Jul 2010

    Posted 07 Dec 2011 Link to this post

    Hello,
    Below is scenario I want to use:
    1. Create custom filters on clientside. Not with RadFilter object!
    2. Iterate filters collection and add expressions to RadFilter on clientside.
    3. Call applyExpressions() to actually apply filter.

    But on 2nd step RadFilter starts postback right after 1st expression is added! This is not what I want.
    Problem is the RadFilter a part of custom AJAX control which is inserted to RadWindow's ContentTemplate. RadWindow is placed at the same page as grid. And each time when postback occures, the whole grid will reload. This is not acceptable for us. Can you please help?
    Thank you.
  2. Marin
    Admin
    Marin avatar
    1043 posts

    Posted 12 Dec 2011 Link to this post

    Hello Dmitry,

     A postback is always required by the RadFilter control because every time you add a new filter expression it is persisted on the server and later used to construct the actual filter query.
    You can try to wrap the RadFilter inside an UpdatePanel or ajaxify the whole content of the RadWindow so that the RadFilter inside it performs asynchronous postback and the grid is not refreshed every time. This help article explains how you can do this: http://www.telerik.com/help/aspnet-ajax/radwindow-ajaxifying.html 

    All the best,
    Marin
    the Telerik team
    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 their blog feed now
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top