jqGrid is exceptional and takes care of most of our requirements. However, we are looking for one functionality that might be a bit beyond the grids ability to handle with standard methods.
I wonder if I could get some direction to find the best way to control a modal form similar to the one that pops up using the Edit Selected Row Pager Bar button in the demo listed under “New in Version 3.2″/”Client Validation”.(http://trirand.com/jqgrid/jqgrid.html#)
This one seems to simply load the content of the selected row to validate fields including hidden fields. I could not find an example of the script that builds the form.
What we need is to dynamically configure the modal form with fields that are not necessarily in the grid along with a few fields from the selected row. This information would be posted back to the server to create a set of new rows to be fed back to the grid.
Ideally, the form would popup as a response to clicking on a cell in a particular column.
I would imagine it might be something like the UI datepicker demo that pops up as a response to clicking on a cell already in edit mode. The UI DatePicker is a JQuery control or form whose result is fed back to the correct cell via the row ID. I am hopefull that some JQuery overlay type modal form can be called in the same way.
The PickDates function uses a cell designation to specify the cell as follows:
JQuery(”#”+id+”_sdate”, “#rowed6″).DatePicker({DateFormat(”yy-mm-dd”)});
What other Methods are available by Calling JQuery with the cell and the grid Id specified?
How does only the sdate cell cause the date picker to show up when it is listed to be activated as a response to the onSelectRow: option of the #rowed6 grid?
Thanks for your help.
RobGMiller
Copyright 2014 TriRand LtdAll Rights ReservedRSS
Back to Top