Remove clone button from inline edit

QuestionsRemove clone button from inline edit
Sunil asked 10 years ago

Hi,
I need to remove clone from inline edit but not from the toolbar.

If I use this,

$g->set_actions(array(
"clone" => false, ));

It will remove clone from toolbar too. Please Help.

1 Answers
Abu Ghufran answered 10 years ago

For this you need to comment out few lines in core lib (lib/inc/jqgrid_dist.php)

### P ###
if ($this->actions["clone"] === true)
$act_links[] = "<a class="ui-custom-icon ui-icon ui-icon-copy" title="Clone this row" href="javascript:void(0);" onclick="fx_clone_row('$grid_id',''+cl+''); "></a>";
### P-END ###

Your Answer

8 + 11 =

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?