This is a migrated thread and some comments may be shown as answers.

RadGrid number of items determines time for AJAX postback

2 Answers 34 Views
Ajax
This is a migrated thread and some comments may be shown as answers.
Timothy
Top achievements
Rank 1
Timothy asked on 04 Jan 2012, 06:21 AM
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 Answers, 1 is accepted

Sort by
0
Richard
Top achievements
Rank 1
answered on 04 Jan 2012, 03:40 PM
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,
0
Timothy
Top achievements
Rank 1
answered on 05 Jan 2012, 02:37 AM
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.
Tags
Ajax
Asked by
Timothy
Top achievements
Rank 1
Answers by
Richard
Top achievements
Rank 1
Timothy
Top achievements
Rank 1
Share this question
or