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

Possible for AJAX post back on Grid for line item change?

1 Answer 41 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Jeff Balsiger
Top achievements
Rank 1
Jeff Balsiger asked on 02 Aug 2011, 08:51 PM
I have run into an issue I was wondering if someone can help me out or let me know if it's not possible.  I have built a dynamic RadGrid on a page that needs to be Excel like with all of the rows to be in edit mode.  I have set the grid's MasterTableView.EditMode to InPlace and on binding I loop through and add all the EditIndexs for the rows.  This works and I have a nice grid with textboxes.  What I'm struggling with is that when a user updates a cell and then moves off of the row we would like to update that row via a web service call from the code behind.  Is there an easy way to do this?  Without a post back being triggered the only thing I can think of is to use javascript.  Any helpful advice would be appreciated.

1 Answer, 1 is accepted

Sort by
0
Radoslav
Telerik team
answered on 05 Aug 2011, 02:24 PM
Hello Jeff,

To achieve the desired functionality you could try firing the client side command by using fireCommand function and handle the server side ItemCommand event. Into this event you could get the edited values  from the GridDataItem and call the web service.
The other way is to fire the ajax request from the client side by using the OnAjaxRequest function of the RadAjaxManager or RadAjaxPanel. Then in a server side RadAjaxManager_AjaxRequest event handler you could get the data and call the web service update method.

Additionally I suggest you to review the following code library which demonstrates the Excel-Like RadGrid grid:
http://www.telerik.com/community/code-library/aspnet-ajax/grid/excel-like-radgrid.aspx

I hope this helps.

Regards,
Radoslav
the Telerik team

Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.

Tags
Grid
Asked by
Jeff Balsiger
Top achievements
Rank 1
Answers by
Radoslav
Telerik team
Share this question
or