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

jquery help

3 Answers 65 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
Andrew Gale
Top achievements
Rank 1
Andrew Gale asked on 13 Apr 2010, 04:16 PM
I'm trying to get jquery to work w/ my treeview, but no luck so far.
I simply want to prevent the nodes from collapsing, what i have so far:

 $telerik.$(document).ready(function() {
            $('#RadTreeView1')
                .OnClientNodeCollapsing(function() {
                    this.set_cancel(true);
                });
        });


ideas?  Thanks!

3 Answers, 1 is accepted

Sort by
0
T. Tsonev
Telerik team
answered on 13 Apr 2010, 04:47 PM
Hello Andrew,

The proper way to attach events is through the control properties. Please, see this example:

http://demos.telerik.com/aspnet-ajax/treeview/examples/programming/clientevents/defaultcs.aspx

I hope this helps.

All the best,
Tsvetomir Tsonev
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
0
Andrew Gale
Top achievements
Rank 1
answered on 13 Apr 2010, 07:43 PM
thanks, but i'm trying to get jquery working.  this article says its supported:
http://www.telerik.com/help/aspnet-ajax/using-jquery.html
and was looking for better examples.
0
T. Tsonev
Telerik team
answered on 14 Apr 2010, 08:43 AM
Hi Andrew,

While RadControls for ASP.NET AJAX include and use jQuery their API is accessed through their client-side object, as with other MS AJAX controls. jQuery gives you access to DOM elements, not to control objects.

I hope this helps.

All the best,
Tsvetomir Tsonev
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
Tags
TreeView
Asked by
Andrew Gale
Top achievements
Rank 1
Answers by
T. Tsonev
Telerik team
Andrew Gale
Top achievements
Rank 1
Share this question
or