Opened 6 years ago

Closed 6 years ago

#17412 closed defect (patchwelcome)

Vertical Scrollbar Issue when Pagination.defaultPageSize = TotalRows

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

Description

Unable to scroll to bottom end when defaultPageSize is equal to TotalRows? in the store.

var data = {

identifier: "id", items: []

}; var data_list = [

{ col1: "Test1", col2: false, col3: 'aaaaaaaaaaaa', col4: 1 }, { col1: "Test2", col2: false, col3: 'bbbbbbbbbbbb', col4: 2 }, { col1: "Test3", col2: false, col3: 'cccccccccccc', col4: 3 }

];

var rows = 20; for (var i = 0, l = data_list.length; i < rows; i++) {

data.items.push(lang.mixin({ id: i + 1 }, data_list[i % l]));

} var store = new ItemFileWriteStore?({ data: data }); var memStore = new dojo.store.Memory({ data: data }); var dataStore = dojo.store.Observable(memStore); var store = new dojo.data.ObjectStore?({ objectStore: dataStore });

/*set up layout*/ var layout = [[

{ 'name': 'Test4', 'field': 'col4', 'width': '150px', editable: true, type: dojox.grid.cells.TextBox? }, { 'name': 'Test1', 'field': 'id', 'width': '100px' }, { 'name': 'Test2', 'field': 'col2', 'width': '100px', editable: true, type: dojox.grid.cells.Bool, styles: 'text-align: center;' }, { 'name': 'Test3', 'field': 'col3', 'width': '200px', editable: true }

]];

try {

/*create a new grid*/ var grid = new EnhancedGrid?({

id: 'grid', height: '200px', store: store, structure: layout, rowSelector: '20px', autoWidth: true, autoHeight: false, plugins: {

pagination: {

pageSizes: ['5', '10', 'All'], '5', '10', 'All' description: true, sizeSwitch: true, pageStepper: true, gotoButton: true, defaultPageSize: 20, /*page step to be displayed*/ maxPageStep: 1, /*position of the pagination bar*/ position: 'top'

}

}

});

} catch (e) {

debugger;

}

grid.placeAt("gridDiv"); grid.startup();

Change History (1)

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.