Opened 7 years ago

Closed 6 years ago

#17246 closed defect (patchwelcome)

EnhancedGrid Pagination Plugin in the last page selcet all checkbox gets automatically checked in some scenario

Reported by: crazy_user Owned by:
Priority: undecided Milestone: tbd
Component: DojoX Grid Version: 1.6.1
Keywords: Cc:
Blocked By: Blocking:

Description

I have found some problems after introducing pagination plugin to the enhanced datagrid. Listing them below

Version:Dojo 1.6 Enhanced Grid with pagination plugin

Bug-1 Paginated display in the enhanced grid

Consider i have 34 record and rowsper page is 10.So there will be 4 page to navigate to include all the 34 records. Steps to reproduce

1)Go to fourth page.Select the last two records.ie)in the 4th page 2)Go to third page and select any record other than first four(consider 5th row is selected) 3)Go back to the 4th page and type grid.getSelectedCount() it return 3 4)Again go back to 3rd page and select one more record other than the first four(Now select 6th record also) 5)GO back to last page and see the check box to select all records is selected by itself.Now do grid.getSelectedCount() it return 4.Try grid.getSelected() it will 4 object 2 being null The problem doesn't happens if first 4 records is selected in the 3rd page Bug-2 Paginated display in the enhanced grid

Have some records in the enhanced and have rowsPerPage as default 5 with other options for 10,25,50,ALL

1)The grid is displayed now with 5 records per page 2)Now Change no of pages from 5 to 25. 3)Do grid.rowsperPage it returns 5 back even though in the UI 25 records per page is displayed 4)Repeat the same by changing from 25 to 50,ALL same 5 records per page is displayed in the console.

May be these bugs may be solved already if so somebody please tell how to resolve this problem.Attaching SC for more understanding

Regards, Crazy_User

Attachments (1)

EnhancedGrid_ProblemsSC - Copy.rar (242.8 KB) - added by crazy_user 7 years ago.

Download all attachments as: .zip

Change History (2)

Changed 7 years ago by crazy_user

comment:1 Changed 6 years ago by bill

Resolution: patchwelcome
Status: newclosed

DojoX Grid and EnhancedGrid? are deprecated in favor of dgrid and gridx.

You should upgrade your code to use one of those two grids.

We will consider patches to the old DojoX Grid code though.

Note: See TracTickets for help on using tickets.