Inline Editing

QuestionsInline Editing
Bill asked 8 years ago

Is there a way to disable all inline editing, but allow form editing only?

4 Answers
Abu Ghufran answered 8 years ago

Try changing "rowactions"=>false, // show/hide row wise edit/del/save option

$g->set_actions(array(
"add"=>true, // allow/disallow add
"edit"=>true, // allow/disallow edit
"delete"=>true, // allow/disallow delete
"rowactions"=>false, // show/hide row wise edit/del/save option
"search" => "advance", // show single/multi field search condition (e.g. simple or advance)
"showhidecolumns" => false
)
);

Bill answered 8 years ago

I already tried that…it partly solved the problem. However, a row can still be inline-edited by double-clicking anywhere on the row. Is there a way to disable the double-click?

Abu Ghufran answered 8 years ago

You need to override a line in jqgrid_dist.php for that.

old:
// double click editing option
if ($this->actions["edit"] !== false && $this->options["cellEdit"] !== true)
new:
// double click editing option
if ($this->actions["rowactions"] !== false && $this->actions["edit"] !== false && $this->options["cellEdit"] !== true)

This would enable double click only when rowactions are enabled.

Bill answered 8 years ago

Excellent…works great. Thanks again, Abu.

Your Answer

11 + 17 =

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?