⚠ In case you've missed it, we have migrated to our new website, with a brand new forum. For more details about the migration you can read our blog post for website migration. This is an archived forum. ⚠

  •     

profile picture

hide action on single row



italoc
  • profile picture
  • Member

Posted 04 August 2015 - 12:57 PM

which is the bast way for HIDE an action only in a single ROW and not for all controller? i need a server side solution, not javascript

 

i need to hide action only if a query have a certain result

 

Thank you


Amit Shah
  • profile picture
  • Member

Posted 05 August 2015 - 14:28 PM

well - i will suggest to unset the desired action first and then do an add action .. for the same with a callback. 

Now in the callback u can change the url to a javascript call which will deny the use of the action for the given row ...

It can all be a combination of severside / client side.

 

If you still dont want this too.. what you can do is - u can set a extra field in the columns and do a callback_column

there - u do the desired check to generate / not to generate the action. Here .. the only difference will be it will be a seperate link / button generated apart from the action.