Opened 6 years ago

Closed 5 years ago

#17244 closed defect (patchwelcome)

Dojo datagrid indirect selection - toggle all selection also selects disabled items

Reported by: danielu Owned by: Evan
Priority: undecided Milestone: tbd
Component: DojoX Grid Version: 1.9.0
Keywords: Cc:
Blocked By: Blocking:

Description

http://jsfiddle.net/Hh8Ub/ you can see the behaviour here

Change History (3)

comment:1 Changed 6 years ago by bill

Component: GeneralDojoX Grid
Owner: set to Evan

comment:2 Changed 6 years ago by danielu

the problem is in IndirectSelection?.js, in this function:

	toggleAllSelection:function(checked){
		// summary:
		//		Toggle select all|deselect all
		// checked: Boolean
		//		True - select all, False - deselect all
		
		var grid = this.grid, selection = grid.selection;
		if(checked){
			selection.selectRange(0, grid.rowCount-1);
		}else{
			selection.deselectAll();
		}
		this.toggleAllTrigerred = true;
	},

comment:3 Changed 5 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.