Overclock.net banner

1 - 1 of 1 Posts

·
Registered
Joined
·
663 Posts
Discussion Starter #1
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
Top