Opened 9 years ago

Closed 9 years ago

#12316 closed defect (fixed)

EhancedGrid Pagination problem when using editable widget

Reported by: davliu Owned by: evan
Priority: high Milestone: 1.6
Component: DojoX Grid Version: 1.6.0b1
Keywords: pagination edit Cc:
Blocked By: Blocking:

Description

For example, if my layout has this field:

{

field: 'post', editable: true, type: dojox.grid.cells._Widget

}

when I click editable cell in the 2nd row of page 1, keep the editing mode, then click the page 2, in the page 2, the editable cell of the 1st row in the page 2 is in editable mode, and the content is the content of the 1st row in page 1!!

Attachments (1)

test_enhanced_grid_pagination.html (3.4 KB) - added by davliu 9 years ago.
replace the same file in grid-tests-enhanced folder, run the page

Download all attachments as: .zip

Change History (5)

comment:1 Changed 9 years ago by davliu

I need correct my description, it should be:

when I click editable cell in the 2nd row of page 1, then click other column to apply the change in the editable cell, then click the page 2, in the page 2, the editable cell of the 1st row in the page 2 is in editable mode, and the content is the content of the 1st row in page 1!!

this problem can be only reproduce 1 time, afterward, it can not reproducible unless you refresh the grid page.

Changed 9 years ago by davliu

replace the same file in grid-tests-enhanced folder, run the page

comment:2 Changed 9 years ago by davliu

1 more important thing I need to clarify, this problem can only reproduced when singleClickEdit="true".

I attached the test file which I modified from the original pagination test file.

modified 3 parts:

  1. add dojo.require("dojox.grid.enhanced.plugins.Pagination");
  2. modify the Album field layout ti { field: "Album", name:"Album",editable: true,type: dojox.grid.cells._Widget, datatype:"string", width: 10},
  3. enable single click edit for the grid singleClickEdit="true"

To reproduce the problem, when the grid rendered, click row 2 Album field: Are You Experienced, then click same row Year field 1993 to apply the edit. then click page 2, you will see the 1st row album content wad replaced by page 1 row 1 's

comment:3 Changed 9 years ago by Adam Peller

Owner: changed from bryanforbes to evan

comment:4 Changed 9 years ago by evan

Milestone: tbd1.6
Resolution: fixed
Status: newclosed

Fixed within [23887] by taking care of SingleClickEdit? in dojox/grid/enhanced/_FocusManager.js

Note: See TracTickets for help on using tickets.