jQWidgets Forums
jQuery UI Widgets › Forums › Grid › Block selection for specified rows.
This topic contains 7 replies, has 2 voices, and was last updated by gabrynio 11 years, 4 months ago.
-
Author
-
Hello.
Is it possible to block checkbox selection for specified rows? Those rows should have checkbox with disabled state.
I’ve made my own workaround like on screen [http://oi60.tinypic.com/34659c8.jpg] (second column) but this solution is slow on old browsers.
Can I use my own values on checkbox / row like on normal checkbox (I need to post form which objects are selected) ?Next question.
Does columns headlines support multiline? I’ve made my own workaround for this but is it supported in core? [screen – http://oi60.tinypic.com/34659c8.jpg%5D Till version 2.8 that wasn’t supported but last time I’ve got reply that you going to add this.Best regards,
Gabriel.Any help?
I’ve got Developer license of jqwidgets.Hi Gabriel,
There is Checkbox selection in jqxGrid. You may look at the Selection demos available online. If you want to get the selected rows, use the “getselectedrowindexes” method. It returns an Array with the selected row indexes.
Best Regards,
Peter StoevjQWidgets Team
http://www.jqwidgets.comHi Peter,
This is not answer for my questions. I’ve seen this tutorial and want use that solution but is it possible to block selection for specified rows (checkbox state disabled)? And how to send which objects/items are selected? (not rows indexes but items ID/values). When I filter or sort, indexes changes and not always index is equal to item ID.
Next question.
Does columns headlines support multiline? I’ve made my own workaround for this but is it supported in core? [screen – http://oi60.tinypic.com/34659c8.jpg ] Till version 2.8 that wasn’t supported but last time I’ve got reply that you going to add this.Hi gabrynio,
May be we did not understand your question. We would not add support for automatic posting of selected/checked rows. If you want to perform such custom actions, you can use jQuery’s Ajax function. To get the Row’s Data associated to an Index, you can use the “getrowdata”. You can create Columns Hierarchy and that is demonstrated in the Grid’s First Sample, called Default Functionality. Hope this helps you.
Best Regards,
Peter StoevjQWidgets Team
http://www.jqwidgets.comIs it possible to block row selection for specified rows (checkbox state disabled) ?
Does columns headlines support multiline text ?
Can I add aditional data to row that is not displaying on grid ? (items ID)
Hi gabrynio,
1. No, you can’t disable a checkbox.
2. Yes, by implementing the “renderer” function of the Column. Example: http://www.jqwidgets.com/jquery-widgets-documentation/documentation/jqxgrid/jquery-grid-cellsrendering.htm
3. There’s no problem to have hidden columns. When you create the Grid, set the “hidden” property of a column to true. So your row would have information which is not displayed on the Grid.Best Regards,
Peter StoevjQWidgets Team
http://www.jqwidgets.comThanks for answers
My suggestion is to add those features to core in roadmap/future releases.
Best regards,
Gabriel. -
AuthorPosts
You must be logged in to reply to this topic.