PDA

View Full Version : grid??????



ak_ext
20 May 2009, 2:33 AM
????
http://extjs.com/deploy/dev/examples/grid/edit-grid.html
?
price??????????????????????????

??????????????????????????
????????(???avilable)?price?????
??????????????????????????
???????????????????????

store????????????????????????
?store????????????????????????

????????????

Tommy1969
20 May 2009, 4:55 PM
Ext.data.Record ? dirty ??????????????????????
Store ? update ???????

update: function(st, rec, ope) {
val org = rec.get('avilable');
rec.set('avilable', dummy);
rec.set('avilable', org);
}

????????????(???)

# ?store????????????????????????

ak_ext
20 May 2009, 5:59 PM
update: function(st, rec, ope) {
val org = rec.get('avilable');
rec.set('avilable', dummy);
rec.set('avilable', org);
}
?rec.set('avilable', dummy);
???????????????????

??price????????????
???avilable???????????
??????grid?????????????
store.load??store.reload??????????
???????????????????????
???????????????????????

???????
price??????avilable?????
??price???????????avilable???
???????????????????????

Tommy1969
20 May 2009, 6:40 PM
> rec.set('avilable', dummy);
> ???????????????????

YES???????"?????" ????????????

> ??price????????????
> ???avilable???????????

?????????price ????????????????????????

> ???avilable???????????
> ??????grid?????????????
> store.load??store.reload??????????
> ???????????????????????

store ??? set ?????????????????? ???????????;)

load ????????????????????????dirty ??????
???????????????

???
???????????????????????????set ????????????update ????????????????:-P

price ???? change ?????????????????????????

ak_ext
20 May 2009, 11:03 PM
???????????