I’d like to implement a multiselect function using jqGridRender (the php only version of jqGrid that uses javascript). Anyways i’m having troubles implementing it. I’ve found solution for javascript (and you can use javascript in predefinded function), which is here: http://www.trirand.com/blog/?page_id=393/help/multiselect-with-shift-to-emulate-the-same-behaviour-as-in-the-file-explorer/#p9963 I’m declaring this function as heredoc string ($myevent variable), and then call it under $gird->setGridEvent(‘onSelectRow’, $myevent); but it doesn’t work, here are the errors (but i’m not suer if they are the real cause):
Notice: Undefined variable: gird in C:\xampp\htdocs\kmedia\grid.php on line 72
Fatal error: Call to a member function setGridEvent() on a non-object in C:\xampp\htdocs\kmedia\grid.php on line 72
I’d also like to ask, how do i make cellEdit function, save the changes into variable, since when i’m setting grid options to cellEdit it works, but doesn’t save etc.
You can use Oleg great suggestion from other answer (I modified it a bit):