jQWidgets Forums
jQuery UI Widgets › Forums › Grid › Checkbox column not editable
Tagged: javascript grid, jquery grid, jquery gridview, jqwidgets grid
This topic contains 17 replies, has 2 voices, and was last updated by Peter Stoev 9 years, 11 months ago.
-
Author
-
Hi all,
I have a grid with a checkbox column.
The grid is not editable in initial state.
When pressing a button the user should be able to edit the grid.
It basically works, but the checkbox column is still not editable until the grid is refreshed once.
What am I doing wrong?
I do not want to call the refresh method to not disturb some other settings.Example:
https://jsfiddle.net/frpuwba3/Thanks for your help.
Hi flehmann,
Your Grid is not editable because its “editable” property is set to false. When you set it to true, it is editable. Also your Checkbox column is bound to a Field which does not exist in the data source. As far as I understand you need to dynamically change the “editable” property. No, problem, but the “refresh” call is required in this case.
Best Regards,
Peter StoevjQWidgets Team
http://www.jqwidgets.comOk, thanks.
Do you know any drawbacks that could happen by calling the refresh method?
Like losing the current filter, sorting or pageing?Hi flehmann,
No, I don’t, but as it’s called on scrolling, I don’t think that would be a problem.
Best Regards,
Peter StoevjQWidgets Team
http://www.jqwidgets.comGreat, that sounds reasonable.
Thanks.Hi Peter,
I just found out that a call to refresh does end the current editing of a cell.
So if someone is entering text in a textcolumn, and refresh is called asynchroneously, the user loses the focus and cannot type anymore.I will open another thread for this problem.
Hi flehmann,
There are methods to end the editing and events raised when editing start so you can easily check and take this into account in your code.
Best Regards,
Peter StoevjQWidgets Team
http://www.jqwidgets.comHi Peter,
Suddenly the checkbox column is not working anymore.
It took me another two hours, but now I could find it:
The autosize setting disables the checkbox column.Please see the fiddle:
https://jsfiddle.net/frpuwba3/2/1) The grid is set to be not editable.
2) Click “enable edit” button
3) all cells but quantity (thats correct) and the “cool” checkbox column are editableThis is rather urgent, because it really makes the grid unusuable for the customer.
I am afraid that if the customer finds one more error he will cancel the whole project.Thanks for your help
Solution https://jsfiddle.net/jqwidgets/hc0mxr13/
Best Regards,
Peter StoevjQWidgets Team
http://www.jqwidgets.comRender works.
Great, thanks for your fast reply.Hi Peter,
Smee again.As per your solution we are using “render” to enable the checkbox columns.
Alas the customer complained he has to wait too long to enable the editing.
And he is right. When enabling the list and calling render, you have to wait for about 4 seconds until the grid reacts.
When I leave out the call to render, it is editable in an instant (but without the checkboxes)Is there any other solution we can use to enable the checkboxes?
Thanks
Bump.
Any news on this issue?I could really need some help on this one.
The waitin time of 4+ seconds is too much. Also the loadingscreen does not show in this time, even if I tell the grid to do so.Hi fiehmann,
If it’s too important for you to dynamically change the editing state and you don’t like the performance of the checkbox column in that case, then don’t use a checkbox column and a simple text column with True, False or 0, 1 values.
Best Regards,
Peter StoevjQWidgets Team
http://www.jqwidgets.comAnything else we can do?
Like open a real support ticket?Or remove the checkbox column and use a custom renderer to add a checkbox?
Or catch the cellselected event and manually alter the checkbox?And don’t get me wrong, I dont care about that stuff, but the customer does.
-
AuthorPosts
You must be logged in to reply to this topic.