I am experiencing super slow performance on the Grid when trying to add a new record. This happens when the grid has more than 20 comments.Each row of the grid has an instance of the custon text angular component (https://github.com/textAngular/textAngular). When adding, a new record is succesfully added to the datasource (javascript objects) but the Grid takes about 30s to refresh(to show in UI).
{
sortable: false,
pageable: false,
selectable: false,
scrollable: true,
height: 400,
dataSource: createDataSource(),
columns: [
{
field: 'Field1',
title: 'Field',
width: '80px',
template: "<input type= 'checkbox disabled='disabled' data-bind='checked: Cleared' #= Cleared ? checked='checked' : '' #/>"
},
{
field: 'Field2',
title: 'Field2',
width: '80px',
template: "<select class='k-dropdown minWidth40' id='dropdownlist'><option value='Yes'>Yes</option><option value='No'>No</option</select>";
}
},
{
field: 'Field3',
title: 'Field3',
width: '45%',
template: function (dataItem) {
return ' <text-angular name="{{dataitem.id}}"
ta-toolbar="[['ul', 'ol', 'bold', 'italics', 'underline']]"
ta-toolbar-class="btn-toolbar toolbar-ext"
ta-toolbar-group-class="btn-group"
ta-toolbar-button-class="btn btn-default"
ta-toolbar-active-button-class="active"
placeholder="Enter 2000 characters or less"
ta-disabled="false"
ta-text-editor-class="form content"
ta-maxlength="2000"></text-angular>
'
}
},
{
field: 'IsHighlighted',
width: '4%',
headerTemplate: "<div uib-tooltip='Highlight' tooltip-animation='false' tooltip-append-to-body='true'>" +
"<p class='noMargin noPadding'><span class='highlight-icon'><span></p>" +
"<p class='noMargin noPadding'><input type='checkbox' name='allToggleHighlight' class='comment-row-toggle-field'/></p>" +
"</div>",
template: function (dataItem) {
return "<div>" +
"<input type='checkbox' name='highlightToggle' " +
"</div>";
}
},
{
field: 'Period',
title: 'Period',
width: '25%',
hidden: true
}
]
Any sugesstions on improving the performance?
Thanks!
GN