This is a migrated thread and some comments may be shown as answers.
Already an input
1 Answer 12 Views
This is a migrated thread and some comments may be shown as answers.
Guru
Top achievements
Rank 2
Guru asked on 16 May 2012, 07:59 PM
I haven't done a ton of testing and obviously I wouldn't do it on purpose even though it sounds like a "dont do that" situation but with the nature of dynamic interfaces I thought others may run into this.

If I have an <input /> with a class "k-input" and then tell it to be a kendoDropDownList or ComboBox, it actually crashes my browser if you try to click in the field. Like I said I didn't do a bunch of controlled tests but I have several drop lists and a grid in a panelbar also and I am seeing it crash in firefox 12 on a win 7 32b pc.

1 Answer, 1 is accepted

Sort by
0
Dimo
Telerik team
answered on 17 May 2012, 11:51 AM
Hello Zack,

Although I did not manage to crash my browser, you will need to remove the k-input CSS class before instantiating a widget from a DOM element. This is because the k-input CSS class is intended for in-widget-use only and the widgets do not expect this CSS class to exist initially. Their behavior is to try to copy the initial CSS classes from the textbox to the widget wrapper, which will result in a k-input class applied to an element that should not have it.

You can use a k-textbox CSS class for standalone <input> elements (it is better than k-input), however, this also needs to be removed before widget initialization.

Greetings,
Dimo
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Asked by
Guru
Top achievements
Rank 2
Answers by
Dimo
Telerik team
Share this question
or