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.

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
  • Block selection for specified rows. #49087

    gabrynio
    Participant

    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.

    Block selection for specified rows. #49117

    gabrynio
    Participant

    Any help?
    I’ve got Developer license of jqwidgets.

    Block selection for specified rows. #49119

    Peter Stoev
    Keymaster

    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 Stoev

    jQWidgets Team
    http://www.jqwidgets.com

    Block selection for specified rows. #49121

    gabrynio
    Participant

    Hi 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.

    Block selection for specified rows. #49123

    Peter Stoev
    Keymaster

    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 Stoev

    jQWidgets Team
    http://www.jqwidgets.com

    Block selection for specified rows. #49125

    gabrynio
    Participant

    Is 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)

    Block selection for specified rows. #49126

    Peter Stoev
    Keymaster

    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 Stoev

    jQWidgets Team
    http://www.jqwidgets.com

    Block selection for specified rows. #49127

    gabrynio
    Participant

    Thanks for answers 🙂

    My suggestion is to add those features to core in roadmap/future releases.

    Best regards,
    Gabriel.

Viewing 8 posts - 1 through 8 (of 8 total)

You must be logged in to reply to this topic.