Opened 9 years ago

Closed 7 years ago

#11809 closed defect (wontfix)

dijit.form.CheckBox in cell in datagrid

Reported by: jonatasrafael Owned by: Bryan Forbes
Priority: high Milestone: tbd
Component: DojoX Grid Version: 1.5
Keywords: grid checkbox dijit Cc:
Blocked By: Blocking:

Description

Good evening friends,

Sorry my english, i am Brazilian...

I have a code that worked in version 1.4.3, but does not work in version 1.5.0;

Only Example:

gridLayout = [
	       {field:'col1'},
	       {field:'col2'},
	       {field:'col3'}
];

data = {
	identifier: 'id',
	label: 'id',
	items: []
};

data_list = [ 
	{ col1: new dijit.form.CheckBox({name:'anyname[]'}), col2: "any", col3: new Date()}
];

var rows = 10;
for(var i=0, l=data_list.length; i<rows; i++){
	data.items.push(dojo.mixin({ id: i }, data_list[i%l]));
}
test_store = new dojo.data.ItemFileWriteStore({data: data});

<body class="tundra">
<div id="grid" jsId="grid" dojoType="dojox.grid.DataGrid" store="test_store" rowSelector="20px" structure="gridLayout" ></div>
</body>

The date is created and shown in the table cell, but not Dijit checkbox.

This is a bug?

Change History (3)

comment:1 Changed 9 years ago by bill

Component: GeneralDojoX Grid
Owner: changed from anonymous to bryanforbes

comment:2 Changed 9 years ago by bill

Owner: changed from bryanforbes to Bryan Forbes

comment:3 Changed 7 years ago by Bryan Forbes

Resolution: wontfix
Status: newclosed

I suspect it's showing [Object object] or something similar in the cell. This is the expected behavior as you're using Dijits in your data instead of using a formatter.

Note: See TracTickets for help on using tickets.