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

is it possible to Raise asynchronous postback request, in asp.net ajax grid

4 Answers 137 Views
Grid
This is a migrated thread and some comments may be shown as answers.
nitesh monga
Top achievements
Rank 1
nitesh monga asked on 03 Jan 2009, 07:29 AM

hi there. i am trying to make the below code work with new asp.net AJAX radgrid. with the old version it was very simple. as we are changing our whole controls to the new telerik control we are facing many problems one of them is with Raising asynchronous postback request.

the code we used to genrate this request was :

window[

'<%=RadGrid3.ClientID %>'].AjaxRequest(''<%=RadGrid3.ClientID %>'', 'ResetOt')

this was working fine. now we are unable to run this code as the new radgrid doesnot support the ajaxrequest function any more.

if any one has face the same problem kindly post some examples for solving this.

thanks
nitesh monga

 

4 Answers, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 05 Jan 2009, 06:30 AM
Hi Nitesh,

The following help article explains how to perform a PostBack from an ajaxified Grid. Go through it and see if it is helpful.
Postback from ajaxified grid

Shinu
0
nitesh monga
Top achievements
Rank 1
answered on 05 Jan 2009, 08:38 AM
dear shinu,

thanks for ur time and help :).. it worked. now i am facing a diffrent problem . the code fires the postback request but my grid is still not binded with the new data. i am using asp:sqldatasource to bind my grids.

thanks
nitesh monga
0
Accepted
Princy
Top achievements
Rank 2
answered on 05 Jan 2009, 09:52 AM
Hi Nitesh,

Try rebinding the Grid as shown below.

JS:
__doPostBack("<%= RadGrid1.UniqueID %>""Rebind"); 

CS:
protected override void RaisePostBackEvent(IPostBackEventHandler source, string eventArgument) 
    { 
        base.RaisePostBackEvent(source, eventArgument); 
 
        if (eventArgument=="Rebind"
            RadGrid1.MasterTableView.Rebind(); 
    }  

Regards
Princy.
0
nitesh monga
Top achievements
Rank 1
answered on 05 Jan 2009, 12:14 PM
thanks for the help ;-). its working now....
Tags
Grid
Asked by
nitesh monga
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
nitesh monga
Top achievements
Rank 1
Princy
Top achievements
Rank 2
Share this question
or