Opened 11 years ago

Closed 11 years ago

Last modified 11 years ago

#7938 closed defect (wontfix)

Providing an empty dataset to dojox.grid.data.DojoData breaks the grid

Reported by: boumel Owned by: Bryan Forbes
Priority: high Milestone: 1.2
Component: DojoX Grid Version: 1.2.0
Keywords: Cc:
Blocked By: Blocking:

Description

If the store returns 0 results to the model processRows returns without calling endUpdate. So grid.invalidated.count is not decremented and will never reach zero again, which is necessary to render the changes after a beginUpdate - endUpdate.

        processRows: function(items, request){
                // console.debug(arguments);
                if(!items || items.length == 0){ return; }

should be:

        processRows: function(items, request){
                // console.debug(arguments);
                if(!items || items.length == 0){ this.endUpdate(); return; }

Change History (3)

comment:1 Changed 11 years ago by Bryan Forbes

Milestone: tbd1.2.1

comment:2 Changed 11 years ago by Bryan Forbes

Resolution: wontfix
Status: newclosed

dojox.grid.data.DojoData? is no longer being fixed. Please update to dojox.grid.DataGrid? plus the store you are using.

comment:3 Changed 11 years ago by Adam Peller

Milestone: 1.2.11.2
Note: See TracTickets for help on using tickets.