How to have event listener on particular datatable cell?

Hi ,

I have a datatable with onBeforeEditStart event.
On top of that , I want if any cell under column 'Color' is clicked, a separate click event function to be called. That function will check if user == "specific_user" then only editing will be allowed for that particular cell under 'Color' , otherwise not.

For the rest of the row , 'Phone' and 'City' column editing will always be allowed or may be later I can put some control on them as well.

But no matter irrespective of the edit action on 'Phone' and 'City', the 'Color' column should have a specific permission.

Snippet :

Is this possible ?



Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!