I m using dojo datagrid which contains 2 columns "name" and "age" , the requirement is to provide the filtering option on the "name" column in the datagrid. so that user can search and select his/her name from the list of values ,by clicking on the header of the name column. Is there any option that need to set in layout for the same. can some one please help on this.
var layout = [
{field: "Name", name: "Name", width: '200px' },
{field: "Age", name: "Age", width: '100px' },
];
var resultStore = new ObjectStore({ objectStore:new Memory({ data: [],idProperty:"id" }) });
var dGrid = new dojox.grid.DataGrid({
store: resultStore,
selectionMode: "none",
autoHeight: true,
structure: layout,
sortInfo: 1,
canSort: function(colIndex) {
return true;
}
});