This topic contains 3 replies, has 2 voices, and was last updated by ivailo 9 years, 1 month ago.
Viewing 4 posts - 1 through 4 (of 4 total)
Viewing 4 posts - 1 through 4 (of 4 total)
You must be logged in to reply to this topic.
jQuery UI Widgets › Forums › General Discussions › Navigation › Menu, Context Menu › custom-values-to-context-menu-items-in-jqgrid
This topic contains 3 replies, has 2 voices, and was last updated by ivailo 9 years, 1 month ago.
Hi Team,
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,
VM
Hi VM,
Please, refer to the following example: http://jsfiddle.net/xgh8nk15/
Here the context menu represents multiple options on a single row.
Best Regards,
Ivailo Ivanov
jQWidgets Team
http://www.jqwidgets.com
Hi Ivanov,
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.
Thanks,
Vishal
Hi VM,
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.
Best Regards,
Ivailo Ivanov
jQWidgets Team
http://www.jqwidgets.com
You must be logged in to reply to this topic.