I have added a new column;ID to my table to select it as a primary key only for developer purpose and I want to hide it when displaying the grid as it is of no use to end-user and will only create confusion. Can you please tell me what changes should I make to the "index.php" file given in phpGrid_Free version in it's demo->editing folder. I have been trying to do it from last 2 days but I can't. Thanks
To hide a column, you need to define column settings as mentioned here:
And after that, make the ID column as hidden:
Refer demos / misc / example-all for full options demo.
I have tried this but it's not working. I don't know why.
This are the lines which I added in ..demos/editing/index.php
$col = array();
$col["title"] = "GDAid";
$col["name"] = "GDAid";
$col["hidden"] = true;
$col["hidedlg"] = true;
$col["editrules"] = array("edithidden"=>true);
$col["viewable"] = false;
$cols = $col;
but no result.
On line 40, you should call:
Refer documentation for more help
We are sorry that this post was not useful for you!
Let us improve this post!
Tell us how we can improve this post?