Copy code code as follows:
// Expand the line that meets a certain condition
Function Expendrow ()
{{
var I; // Cycling temporary variable
var arr = []; //
for (i = 0; I <ProdrequireInfostore.data.Length; i ++) // Produireinfostore is the data source of Gridpanel
{{
var recion = productrequireinfostore.getat (i); // cyclic traversal per line
If (record.data.statusid == '3') {// When I meet my conditions, write it in the array
arr.push (i);
}
}
For (var j = 0; j <arr.Length; j ++) {// traversed array to start a togglerow (index) method to expand a line
Expander.togglerow (ARR [J]);
}
}
// Call the callback function when the data source is loaded.
Produireinfostore.load ({
Params: {
Dir: 'Desc',
start: 0,
limit: 20,
Keyword: ''
},
callback: Expendrow // The callback function is launched by default
});
This can be achieved when you open the gridpanel.