Hi Abu, is it possible to use alternate rows on the master detail grids? I have added the code to your demo master-detail.php but the page doesn't load when code below is added?
$grid["altRows"] = true;
$grid["altclass"] = "myAltRowClass";
$g->set_options($grid);
I have it working on all my other grids so wondered if its not possible with this type. No worries if not.
Cherers
Gary
3 Answers
Wrong var names.
$grid["altRows"] = true;
$grid["altclass"] = "myAltRowClass";
$g->set_options($grid);
should be
$opt = array();
$opt["altRows"] = true;
$opt["altclass"] = "myAltRowClass";
$grid->set_options($opt);
Your Answer