You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Kendo controls cannot be used from bind() or attached()
Does this refer to when using aurelia-kendo-bridge or in general? I was under the impression that one of the advantages of Aurelia was the compatability with 'vanilla' libraries.
The text was updated successfully, but these errors were encountered:
Some Kendo controls get odd behavior when you initialize it on an element before that element is attached to the dom. So the bridge initializes kendo controls from the attached lifecycle callback. Unfortunately the attached callback on the viewmodel is called before the attached callback of child components, such as the bridge components. That's why you can't access the kendo controls from attached because they are not initialized yet. I recommend using the k-on-ready callback as mentioned in the docs, that way you know for sure the control is initialized
Most controls can be safely initialized from within the bind callback of a custom element, which means that you can use it from the attached callback of your view model. Kendo is one of few which you can't initialize from bind without getting weird issues
The documentation states that
Does this refer to when using aurelia-kendo-bridge or in general? I was under the impression that one of the advantages of Aurelia was the compatability with 'vanilla' libraries.
The text was updated successfully, but these errors were encountered: