I would like to know whether there are any news concerning these placeholder rows in connection with checkboxes (just stumbled over this problem and found this forum topic), as the last post is about half a year old …
Well, that’s a step into the right direction, but the checkboxes in the placeholder rows are still there, which is quite ugly in my opinion …
Therefore, I tried to find another solution, which cost me quite a bunch of hours, but finally worked:
– I create a custom checkbox widget in the “createwidget” callback for all rows having “row.bounddata.empty” set to false [Placeholder rows have it set to true] and add it to the “htmlElement”, which is a callback parameter [Grid settings are “virtualmode: true”, “scrollmode: default”]
– In the “initwidget” callback, I initialize the checkbox widget state according to row data and add a custom attribute to “htmlElement” to identify the row in the widget’s “change” event handler [for updating row data upon modifications by user]
I did not find a way yet to bind the custom widget directly to row data [to get rid of the custom attribute], but after all, it does not seem an impossible task to get rid of these checkboxes in placeholder rows …
Thus, I am still wondering a bit, why they are displayed …
Would it be really so complicated for you to update jqxGrid to provide this out of the box ???
I think you should also make use of the callback geteditorvalue in your custom solution. It has been demonstrated in the following example: http://www.jqwidgets.com/jquery-widgets-demo/demos/jqxgrid/cellcustomediting.htm?light.
We will consider improving the built-in behaviour, but this task is not in our immediate development plans.
You must be logged in to reply to this topic.