kendoui gride initialize twice issue

2 posts, 0 answers
  1. Yang
    Yang avatar
    2 posts
    Member since:
    Mar 2017

    Posted 09 Jul 2017 Link to this post

    I am using jquery with kendoui grid, I found the table grid gone after I initialize it twice. Why the grid is gone?
  2. Georgi
    Admin
    Georgi avatar
    676 posts

    Posted 11 Jul 2017 Link to this post

    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.
Back to Top