I have a requirement that to visualize a context menu(list of items) based on the row id and cell value.
For ex: row_id: 1 name: aaa .I need to visualize a context menu with (Add,update,delete options).
row_id:2 name:bbb (I need to show a context menu with (Add,update ,delete(disabled) options) .
row_id:3 name:ccc (I need to show a context menu with (Add,update(disabled) ,delete(disabled) options) .
Please let me know if there is a way to achieve this kind of functionality.
Thanks for your response.But, i don’t think you understood it properly.The context menu(with multiple items) should change dynamically based on the response.Because, we will have numerous records which has similar last names but different first names.
Is there any way to modify to show the context menu , based on the response value if the lastname.
Please refer to the similar example https://jsfiddle.net/OlegKi/37rb593h/
Please can you modify the above code where necessary.
You can change menu’s source, on some condition.
Here is simple example with source changed after button’s click: http://jsfiddle.net/m5ou7ofk/
In your case, you can check the value of a particular cell and then update the source, related to this value.
You must be logged in to reply to this topic.