jQWidgets Forums

jQuery UI Widgets Forums Grid Grid Column Checkbox Selection | Sorting

This topic contains 3 replies, has 3 voices, and was last updated by  Peter Stoev 11 years, 11 months ago.

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author

  • rskbuvan
    Spectator

    Hi,

    I noticed one issue in custom row selection using dedicated checkbox column.

    Scenario 1:
    1) Grid Page 1: When I select the checkbox column (Select All checkbox column); all rows in a first pages gets checked and row selection happening. This is fine.

    Scenario 2:
    2) Grid Page 1: When I do the sorting in any of the column and then I select the checkbox column(Select All checkbox column).
    Here I can see only row selection is happening in first page and checked rows are present in some other page.

    My guess is, whatever the rows which was there in first page before sorting is getting checked.

    But my requirement should not be the case. where ever the page we are and whether we are doing a sorting or not. The rows which are visible should be checked.

    I also found the same issue in demo link.
    http://www.jqwidgets.com/jquery-widgets-demo/demos/jqxgrid/customrowsselection.htm?web

    Can someone give us a solution?

    I look for a swift response.

    Thanks & Cheers,
    \_rssb


    Dimitar
    Participant

    rskbuvan
    Spectator

    Hi Dimitar,

    I tried the example which you had mentioned, here I noticed few issues

    http://www.jqwidgets.com/community/topic/grid-column-jqxcheckbox/

    1) Grid Page 1: After sorting any one of the column, If I select the “Check All”,
    a. All rows are getting checked but no selection of rows happening i.e. row highlight.
    b. When I try to un-check any one of the column, it is not allowing me to edit i.e. check/un-check.
    c. When I navigate to second page and come back to first page, the checked rows are gone.

    My requirement:

    1) Whether sorting happening to any column or not, I want only the visible rows in a page should be checked.
    2) Added to that, If I do the pagination and come back to previous page, that selection should be there.

    Please help me on this regards,

    Thanks & Cheers,
    \_rssb


    Peter Stoev
    Keymaster

    Hi guys,

    rskbuvan, I suggest you to look at our Online sample called Custom Row Selection which illustrates how custom rows selection can be implemented using the Grid’s API. The example supports Sorting, too and the selection in the sample is Page based. When the sort order is changed, the Rows selection is kept. However, please keep in mind that the Selecting in the Grid is based on bound index not display index. Bound index is the index of a row in the data source and our sample uses bound index. So when the Sort order is changed, Row A which was selected may be now positioned on page 3, but it will still be selected

    If you wish to implement other behavior, you may use the Grid’s methods for selection like ‘selectrow’, ‘unselectrow’ for selection the rows you wish.

    Best Regards,
    Peter Stoev

    jQWidgets Team
    http://www.jqwidgets.com

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

You must be logged in to reply to this topic.