Overclock.net banner

Kendo UI Selectors

357 Views 0 Replies 1 Participant Last post by  fball922
Part of my job is working extensively with Kendo UI for a number of internal web applications. Overall, I love the framework and have written a number of extensions/helpers to enhance their functionality. The biggest problem I had, however, was grabbing the objects themselves... Not that it was hard, but it was a PITA relying on the magic strings!

So, I thought I would share a bit of one of my helpers-

http://jsfiddle.net/YaXFT/13/

Basically, it works by doing this

Code:

Code:
$.k("#ddValues")
instead of

Code:

Code:
$("#ddValues").data("kendoDropDownList")
Its a minor helper, but it has helped me so much in terms of avoiding fat fingering my code ><

I know a lot of that issue can be avoided by putting the drop down into a variable, but I have another extension that uses a custom selector that works insanely fast and really avoids any performance issue associated with re-selecting the object.

Thoughts?
1 - 1 of 1 Posts
1 - 1 of 1 Posts
This is an older thread, you may not receive a response, and could be reviving an old thread. Please consider creating a new thread.
Top