PDA

View Full Version : regarding Grid Panel



zlti.3
15 Jun 2009, 11:32 AM
Helo All,

I have a grid right now that lists 100 items . the way I am doing it right now is that if i update 1 item(row) i tend to make an ajax call request that gets me all the 100 items with any updated values. thats how it repaints the grid with the updated items.

i was wondering if i could implement such a thing where if i edit one row, it gets the updated value of it from the server and not all the 100 items.

i just saw overview of ext 3.0 rc2.. and was wondering if restful grid could help me with it but again i would want couple of items in the row to be editable and not all..

Plz help !

Prachi.

euchiyama
15 Jun 2009, 11:53 AM
Use an afterEdit event handler on the Grid:

- when a field is edited, make an AJAX call passing the edited data
- return the results for that one row of data
- update the underlying record data for that row

15 Jun 2009, 12:13 PM
I have these documented and working in chapter 8 of "Ext Js In Action (http://manning.com/garcia)" here is a link to the example code.

http://tdg-i.com/extjsinaction/chapter08/Editor_panel_with_manual_saves.html
or
(using datawriter) http://tdg-i.com/extjsinaction/chapter08/usingWriter.html

All of chapter 8's code:
http://tdg-i.com/extjsinaction/chapter08/