I see the javascript way of doing this is
1 2 3 4 5 6 7 |
$mylabels = <<<LABELS $("#grid").jqGrid('setLabel','mycolumn1', '', { text-align : 'left' }); $("#grid").jqGrid('setLabel','mycolumn2', '', { text-align : 'right' }); LABELS // Output the function with setJSCode $grid->setJSCode($mylabels); |
What is the syntax for the php version please. I guess something like the following which does not work:-
1 2 3 4 5 6 7 |
$mylabels = <<<LABELS $grid->jqGrid('setLabel','StartDate', 'Start Date', array('text-align' => 'left')); $grid->jqGrid('setLabel','EndDate', 'End Date', array('text-align; =>'right')); LABELS; // Output the function with setJSCode $grid->setJSCode($mylabels); |
Many thanks for looking at this.
Copyright 2014 TriRand LtdAll Rights ReservedRSS
Back to Top