I have a grid which I generate serverside, and bind clientside. I perform paging serverside. The grid has 14 columns, all of type string. I use the following snippet to bind data to the grid.
where result.Items is in the format of:
With 14 headings, and however many rows (between 10 to 50 for a single page).
The problem I'm having is with the speed of binding. When binding 10 items, it takes a fraction of a second. Binding 20 items takes 2 seconds. Binding 50 items shoots up to 13 seconds, and well out of usability. I don't have any custom events tied to the databinding event, this is all internal processings, and I have absolutly no idea whats causing it.
Are there any tools I can use to profile the internals, to see exactly what is causing the binding to take so long?
this
.refreshGrid =
function
refreshGrid(result) {
var
gridView = $find(
this
.get_grid()).get_masterTableView();
gridView.set_dataSource(result.Items);
gridView.set_virtualItemCount(result.ItemCount);
gridView.dataBind();
gridView.updated();
};
where result.Items is in the format of:
var
Items = [{
"Heading1"
:
"Row1-1"
,
"Heading2"
:
"Row1-2"
,
"Heading3"
:
"Row1-3"
},
{
"Heading1"
:
"Row2-1"
,
"Heading2"
:
"Row2-2"
,
"Heading3"
:
"Row2-3"
}];
With 14 headings, and however many rows (between 10 to 50 for a single page).
The problem I'm having is with the speed of binding. When binding 10 items, it takes a fraction of a second. Binding 20 items takes 2 seconds. Binding 50 items shoots up to 13 seconds, and well out of usability. I don't have any custom events tied to the databinding event, this is all internal processings, and I have absolutly no idea whats causing it.
Are there any tools I can use to profile the internals, to see exactly what is causing the binding to take so long?