Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
wiki:frozencolumns [2011/12/12 13:15] tony |
wiki:frozencolumns [2017/12/09 14:51] admin |
||
---|---|---|---|
Line 8: | Line 8: | ||
<code javascript> | <code javascript> | ||
- | .. | + | ... |
jQuery("#grid").jqGrid({ | jQuery("#grid").jqGrid({ | ||
... | ... | ||
Line 78: | Line 78: | ||
</code> | </code> | ||
- | ===== Dyanmic setup ===== | + | ===== Dynamic setup ===== |
It is possible to change the frozen columns dynamically. In this case it is needed to call first **destroyFrozenColumns** method setup new frozen proerties and call again setFrozenColumns. | It is possible to change the frozen columns dynamically. In this case it is needed to call first **destroyFrozenColumns** method setup new frozen proerties and call again setFrozenColumns. | ||
Line 89: | Line 89: | ||
jQuery("#grid") | jQuery("#grid") | ||
.jqGrid('destroyFrozenColumns'); | .jqGrid('destroyFrozenColumns'); | ||
- | .jqGrid("setColProp","invdate", {frozen:true}); | + | .jqGrid('setColProp','invdate', {frozen:true}); |
.jqGrid('setFrozenColumns'); | .jqGrid('setFrozenColumns'); | ||
+ | .trigger('reloadGrid', [{current:true}]); | ||
}); | }); | ||
</code> | </code> | ||
+ | |||
+ | <note>Currently in order to refresh the frozen column(s) we need to call trigger('reloadGrid'). Later this will be changed with more easy way.</note> | ||
===== Limitations ===== | ===== Limitations ===== | ||
Line 101: | Line 104: | ||
* When SubGrid is enabled | * When SubGrid is enabled | ||
* When cellEdit is enabled | * When cellEdit is enabled | ||
- | * When sortable columns are enabled grid parameter sortable | + | * When inline edit is used - the frozen columns can not be edit. |
+ | * When sortable columns are enabled - grid parameter //sortable// is set to true or is function | ||
* When scroll is set to true or 1 | * When scroll is set to true or 1 | ||
* When Data grouping is enabled | * When Data grouping is enabled | ||
+ | * When footer row (footerrow paremeter) is enabled | ||