|
Title: programmatically moving grid columns Post by: jpierce on October 08, 2013, 03:29:49 PM I know gui drag/drop would be a pain to implement and don't expect it to happen anytime soon. Alternatively, I want to offer my users a choice on a header popup menu that says "move field left" (or right). To do that, all I need to do is rearrange the grid's columns and get it to redraw the grid. I can sort of do that, in that I can rearrange the columns and assign them back to the grid's options. But the only thing I can find to call is a full grid reload via elem.datagrid(), which unfortunately also re-requests the data from the server.
Is there some function I can use to tell it to just redraw the grid? Title: Re: programmatically moving grid columns Post by: stworthy on October 09, 2013, 12:45:51 AM Here is the extended method that can re-create datagrid without sending request.
Code: $.extend($.fn.datagrid.methods,{Title: Re: programmatically moving grid columns Post by: jpierce on October 21, 2013, 07:54:58 AM Worked great, thanks!
|