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

Using JQuery with Telerik Controls

1 Answer 183 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Velma
Top achievements
Rank 1
Velma asked on 14 Dec 2011, 05:24 PM
Is it possible to use JQuery to select and modify properties on Telerik ASP.NET Ajax controls?

For example, I have the follow code which works fine to disable the ASP.NET textboxes on a particular form, but does not touch the RadComboBoxes or the RadDatePickers, even though they have the appropriate class.

        $(".datafield").attr("disabled", "disabled");

Is there any way, or do I have to select the Telerik controls one by one with Javascript, per the samples in help?:

    var combo = $find("<%= RadComboBox1.ClientID %>"); combo.disable();
    var picker = $find("<%= RadDatePicker1.ClientID %>"); picker.set_enabled(false);


1 Answer, 1 is accepted

Sort by
0
Accepted
Dobromir
Telerik team
answered on 15 Dec 2011, 02:38 PM
Hi Velma,

In short, no. RadControls are complex controls and have a their own client-side API to control their behavior which cannot be controlled using jQuery. Most of the RadControls contains more than a single HTML element and applying a modification like set_enabled() changes various fields of its client-side object, while using jQuery you apply the attribute directly on the HTML element that the ASP:Textbox represents.

Kind regards,
Dobromir
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
Velma
Top achievements
Rank 1
Answers by
Dobromir
Telerik team
Share this question
or