asp.net mvc - jqGrid evaluation -
before dive deep using jqgrid have few questions others have invested lot of time might answer.
- does support easy/simple hidding of columns, instance, in application users have option choose own settings, , might set column hidden? require conditional rendering of js, html , data preparation (in mvc controllers)?
- is possible use without ajax posting functionality, instance, when edit row (inplace or dialog) update html (to exact, dom) don't ajax post yet until doing "full" postback?
- in general, suitable cases our data not yet exist in datastore (we creating on fly , data inserted after postback)?
you might consider scenario have create new invoice form , part of invoice there multiple invoice items. these of course cannot saved prior saving invoice (we need invoice attach items it). postback entire form, create invoice , enumerate table items insert invoice items.
hopefully worked heavily jqgrid know answers.
1) jqgrid column definition support hidden:true
proprty hide corresponding column. can use setcolprop method set column dynamicaly. if want allow user choose order of columns or hide columns can use columnchooser this.
2) can use jqgrid display or modify local data. inline editing , cell editing support this. should use editurl:'clientarray'
in case of inline editing , cellsubmit:'clientarray'
in case of cell editing (see example this answer example). form editing has not full local editing support without ajax requests server, use can use dummy server url implement local editing form editing (see the jqgrid demo, select on left size "new in version 3.7" , "add/edit/delete on local data").
3) can use jqgrid display or modify local data , not data loaded database. use use datatype
parameter set "local"
, "jsonstring"
, "xmlstring"
, use data
or datastr
option fill data. prefer use datatype:"local"
, initialize grid contain data
parameter.
Comments
Post a Comment