Thanks.
1. The above code is well,but it have no "clearSelections",
and when I execute the function "clearSelections" in my function "refreshAllTables":
the above code can "check" a row,but can't "select" a now.
And I don't know when the "clearSelections" finished,does "clearSelections" have the function
like "onLoadSuccess"?
2. And I have another question,that I can't expand a group in "onLoadSuccess",
after "clearSelections"
onLoadSuccess:function(){
$(this).datagrid('selectRow',0);
$(this).datagrid('checkRow',0);
$(this).datagrid('checkRow',1);
for(var j=0;j<groupIndex.length;j++){
$(this).datagrid('expandGroup',groupIndex[ j ]);
}
}
function refreshAllTables(){
... ...
ajax_request("/userworkspace/ajax_items_to_first_assign",{},function(result){
$("#table_items_by_task").datagrid("loadData",result);
$("#table_items_by_task").datagrid("clearSelections");
... ...
},0);
}
3. I think that the execution sequence is "clearSelections"-"datagrid's onLoadSuccess",
but the result is not,how can I control after the "clearSelections" finished?
Expect you answer
