This is a migrated thread and some comments may be shown as answers.

kendoui gride initialize twice issue

1 Answer 304 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Yang
Top achievements
Rank 1
Yang asked on 10 Jul 2017, 03:52 AM
I am using jquery with kendoui grid, I found the table grid gone after I initialize it twice. Why the grid is gone?

1 Answer, 1 is accepted

Sort by
0
Georgi
Telerik team
answered on 11 Jul 2017, 02:30 PM
Hello Yang,

Duplicate widget initialization is not recommended because it might lead to unexpected behavior, and it is best to avoid it where possible.

If duplicate initialization is a must in your case, avoid creating a new widget instance from the leftover of a destroyed widget. To initialize new widgets, use different, newly appended DOM elements. In some cases it is also possible to empty the widget container and initialize a new instance from the empty element.

The following article illustrates how to destroy a Kendo Grid widget:



Regards,
Georgi
Progress Telerik
Try our brand new, jQuery-free Angular 2 components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
Tags
Grid
Asked by
Yang
Top achievements
Rank 1
Answers by
Georgi
Telerik team
Share this question
or