//Expand rows that match a certain condition
function expendRow( )
{
var i;//Loop temporary variable
var arr = [];//Array of rows to be expanded
for(i=0;i
{
var record = ProdRequireInfoStore.getAt(i);//Loop through each row
if(record.data.StatusID=='3 '){//If it meets my conditions, write it into the array
arr.push(i);
}
}
for(var j =0;jexpander.toggleRow(arr[j]);
}
}
// Call the callback function to expand the default row when the data source is loaded.
ProdRequireInfoStore.load({
params: {
dir: 'DESC',
start: 0,
limit: 20,
KeyWord: ''
},
callback:expendRow //The callback function expands the default row
});
This way when you This can be achieved when the gridpanel is opened, the default expansion of RowExpander