Disable record selection in grid

QuestionsDisable record selection in grid
Daniele asked 12 years ago

How do you disable selection records in grid? I can not find anything that explains how to do, thanks

5 Answers
Abu Ghufran answered 12 years ago

There is no option to disable the row selection and highlighting. If you want to disable operation on grid and make it readonly you can do it with following settings.

Refer add,edit,delete,rowactions params to false will make grid readonly.

$g->set_actions(array(
"add"=>false, // allow/disallow add
"edit"=>false, // allow/disallow edit
"delete"=>false, // allow/disallow delete
"rowactions"=>false, // show/hide row wise edit/del/save option

"export"=>true, // show/hide export to excel option
"autofilter" => true, // show/hide autofilter for search
"search" => "simple", // show single/multi field search condition (e.g. simple or advance)
"showhidecolumns" => false // show single/multi field search condition (e.g. simple or advance)
)
);

Did you meant the same, or something different ?

Abu Ghufran answered 12 years ago

The first column must be unique, in order to work properly. You can make it hidden in grid if you wish. See `hidden` property in later section for more.

Daniele answered 12 years ago

my problem is that after changing my code I can not select individual rows and then edit.

Expertcoder answered 12 years ago

How to validate the row in phpgrid when clicking Add new row(+ symbol) button, which coding page i have to refer?

When clicking + symbol am getting list of field for inserting records in the grid. I want to validate the records before inserting them in the grid

Kindly reply me..

Abu Ghufran answered 12 years ago

For form validation while add/edit, refer Edit rules section in docs.

http://www.phpgrid.org/docs/ …search for edit rules.

Your Answer

17 + 7 =

Login with your Social Id:

OR, enter

Attach code here and paste link in question.
Attach screenshot here and paste link in question.



How useful was this discussion?

Click on a star to rate it!

Average rating 0 / 5. Vote count: 0

No votes so far! Be the first to rate it.

We are sorry that this post was not useful for you!

Let us improve this post!

Tell us how we can improve this post?