I have used jqgrids to display static values. But I have a scenario where I need to have checkboxes and dropdown values to be displayed in JQGrid columns. Depending upon whether I check or uncheck the checkbox. Any thoughts or comments on how to build jqgrids with Dropdowns and Checkboxes?
相关问题
- Is there a limit to how many levels you can nest i
- How to toggle on Order in ReactJS
- How to fix IE ClearType + jQuery opacity problem i
- void before promise syntax
- jQuery add and remove delay
You can use the
checkbox
formatter to display a cell as a checkbox. As part of the colmodel:As for the dropdown, you can pass a custom format function to the editrow function:
Then, inside this function you would want to create a SELECT (or whatever dropdown you need):
So when you edit the row the data will be displayed in a dropdown.