RadGrid number of items determines time for AJAX postback

3 posts, 0 answers
  1. Timothy
    Timothy avatar
    41 posts
    Member since:
    Aug 2011

    Posted 04 Jan 2012 Link to this post

    The more items you add to a grid the longer it takes to invoke a GridButtonColumn event is there some means to ensure that the button does a postback without posting back the entire grid??
  2. Richard
    Richard avatar
    479 posts
    Member since:
    Nov 2011

    Posted 04 Jan 2012 Link to this post

    Timothy:

    Not sure if you've seen it, but take a look at the GridButtonColumn-Prevent Post Back? forum thread for some insights on controlling a postback when a button click event occurs.

    Hope this helps,
  3. Timothy
    Timothy avatar
    41 posts
    Member since:
    Aug 2011

    Posted 04 Jan 2012 Link to this post

    Jumpstart: I do need to do a postback the reason being I am using a customised AjaxControlToolkit to dynamically load a Modal popup to edit the specific row. What I am trying to figure out is how to do this so that the response body to the postback doesn't send back the page that the postback is coming from. I only need to load the page again or more specifically the grid depending on the parameters passed back from the Modal popup. I have got round this in the past by limiting the number of rows displayed in the grid - but after converting to a RadGrid and customising the Pager so that it has an All record feature on it - it has became more of an issue.

    I have experimented with using :-
    EditIt.Attributes.Add("onClick", RadAjaxManager.GetCurrent(Page).GetAjaxEventReference("Edit:" + current_record["CustomerID"].ToString()));

    but still get the large postback in the response body.
Back to Top