set_grid_property()

  • Parameters:
  • Description:
    •  Advanced method that  sets datagrid properties. The parameter must be an array. You must be rather familiar jqGrid API in order to take advantage of this method effectively. In most cases, you do not need to use this method.
  • Remark:
    • This method is completely difference from set_col_property() method that sets column property, a subset of grid property.
    • This is an advanced method. In most cases, you don’t need to call this method.
  • Example:
1
2
3
$dg -> set_grid_property(array('search'=>true));
$dg -> set_grid_property(array('direction'=>'rtl'));
$dg -> set_grid_property(array("altclass" => "alternatie_row_css_class"));

custo_prop_jsonstr or set_grid_property?

The difference between cust_prop_jsonstr and set_grid_property is that the later is a function and must take an array as parameter but cust_prop_jsonstr takes string parameter.

Which one to use?

The rule of thumb is to use cust_prop_jsonstr when the property is form of string; else use set_grid_property() function. In general, you want to use set_grid_property().