This is a migrated thread and some comments may be shown as answers.

Make Client API work more like jQuery

1 Answer 25 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Osvaldo
Top achievements
Rank 1
Osvaldo asked on 18 Jun 2012, 08:52 PM
Is there any way to make the Client API work more like jQuery.

Instead of use:

$find("<%= TXT.ClientID %>")
 
Use:

$(".TXT")

1 Answer, 1 is accepted

Sort by
0
Iana Tsolova
Telerik team
answered on 19 Jun 2012, 12:23 PM
Hi Osvaldo,

RadControls for ASP.NET AJAX are built on top of the MS AJAX Framework and that is why their client-side API follows the conventions of the AJAX Framework. As these are server controls and they implement the IScriptControl interface, you should to use the $find() method to access them. Once you have access to the component client-side object, you can use its public client-side and server-side properties to manipulate it.
It's hard to change the current APIs as this would lead to introducing breaking changes in the controls. However when making new components or new methods and properties, we will do our best to make them simpler.

Hope this helps.

All the best,
Iana Tsolova
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
Tags
General Discussions
Asked by
Osvaldo
Top achievements
Rank 1
Answers by
Iana Tsolova
Telerik team
Share this question
or