Showing two grids on same page and enable add data only

QuestionsShowing two grids on same page and enable add data only
Chalaka asked 11 years ago

I have a problem in showing two grids which refer to two tables in database.
even grid is visible, no data can be seen.

Other than that how to disable edit and delete options under Action column while keeping add feature in the grid.

please help to resolve.

1 Answers
Abu Ghufran answered 11 years ago

Multiple grids on same page is supported in full version.
You can disable edit/del by this code.

assuming, $g = new jqgrid();

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

Your Answer

2 + 18 =

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?