Turn off Clone button

QuestionsTurn off Clone button
Michael K. asked 9 years ago

Hallo,
how to Clone button turn off line by line as in DemosEditingcoumn-access. There is no ID name for Clone Button and for other buttons.

4 Answers
Abu Ghufran answered 9 years ago

You can set clone to false in set_actions

$g->set_actions(array(
"add"=>true,
"edit"=>true,
"clone"=>false,
"bulkedit"=>true, …….

Michael K. answered 9 years ago

hello,
the on and off of the button in the actions is known to me. I want the button depending on the data set switch as edit in the DemosEditingcolumn-access. ->
else if ( data.gender == ' Male' ) // viewonly
{
jQuery("#edit_list1").addClass("ui-state-disabled");
jQuery("#del_list1").addClass("ui-state-disabled");
}
but for the clone and export button there is no ID name (jQuery ("#?????")…)
How can I raise this?

Abu Ghufran answered 9 years ago

Ok, i understand now. You can use:

jQuery("td[title=Clone]").addClass("ui-state-disabled");

Same applies for export

Michael K. answered 9 years ago

it works fine, thanks

Your Answer

13 + 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?