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

[Solved] Tree with Ajax Binding not operational

9 Answers 181 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Frank Michael
Top achievements
Rank 1
Frank Michael asked on 02 Jun 2010, 06:01 PM
I have this code:

<%= Html.Telerik().TreeView() 
        .Name("WorkitemTree") 
        .BindTo(Model, (item,workitem) => 
        { 
            // bind initial data - can be omitted if there is none 
            item.Text = workitem.Title; 
            item.Value = workitem.RowKey; 
            item.LoadOnDemand = true
        }) 
        .DataBinding(dataBinding => dataBinding 
                .Ajax().Enabled(true).Select("AjaxTreeSelect", "Workitem")) 
%> 

However the Tree is not operational. It is displayed, yes.

But when I expand, nothing happens. Even no controller action is called.
When I hover over the node, nothing happens. Typically the node should change visible state. No. Nothing.

I am not able to reproduce the problem in a clean new project. There it works. So there seems to be any side effect between my productive project and the tree view.

Any idea by anybody what I could do to find the problem?

9 Answers, 1 is accepted

Sort by
0
Frank Michael
Top achievements
Rank 1
answered on 04 Jun 2010, 08:36 AM
I am trying to put together a sample project to show the problem.
But my traditional means I was not successful (Plain Vanilla View). I could not reproduce the problem.
So I need to give my original project, but I have to hide parts of it, which needs some restructuring.
Also I need to mock some parts. This in itself is a worthwhile exercise, but takes some time.
I decided to use JustMock. However now JustMock has errors. I really hope I do not have to provide a sample project for that as well.
0
Frank Michael
Top achievements
Rank 1
answered on 04 Jun 2010, 05:28 PM
So, here is the sample project.
It took me half a week to produce it, so please analyze it.
http://cid-a7d5afee7d992a7a.skydrive.live.com/self.aspx/Telerik/TreeOnDeman.zip


0
Atanas Korchev
Telerik team
answered on 07 Jun 2010, 06:58 AM
Hello Frank Michael ,

We weren't able to build the provided project. Please provide a working sample.

Regards,
Atanas Korchev
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
Frank Michael
Top achievements
Rank 1
answered on 07 Jun 2010, 09:11 AM
What is missing? I copied all needed dlls into bin. Have I forgotten anything?
0
Atanas Korchev
Telerik team
answered on 07 Jun 2010, 09:14 AM
Hi Frank Michael ,

We are missing the Azure files. Is Azure really required in order to reproduce the problem?

Regards,
Atanas Korchev
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
Frank Michael
Top achievements
Rank 1
answered on 07 Jun 2010, 09:21 AM
Azure is so interwoven with the project, that I can not isolate it.
I did not succeed to reproduce the error in a plain vanilla project. So I had no other chance than to take my original project and mock some parts and hide some parts (from the public). So please do not post the project, because I will delete the files asap.
If you have a LiveID I can also restrict access to you - which would be great.
I'll provide the Azure dlls in just a moment.
0
Frank Michael
Top achievements
Rank 1
answered on 07 Jun 2010, 09:29 AM
Here is the updated project.

http://cid-a7d5afee7d992a7a.skydrive.live.com/self.aspx/Telerik/TreeOnDeman2.zip

Please test /Workitem/Index.
Just ignore the error on the starting page.



0
Georgi Krustev
Telerik team
answered on 08 Jun 2010, 11:40 AM
Hello Frank Michael Kraft,

You need to update jquery.validate.js file in order to avoid this issue. The older version has method delegate, which overrides the jquery's delegate method. For your convenience I have attached the correct version of the jquery.validate.js to this message.

Regards,
Georgi Krustev
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
Frank Michael
Top achievements
Rank 1
answered on 09 Jun 2010, 11:28 AM
Thank you.
Is there any guidance in general as of how to use the correct Version of the js files?
Tags
TreeView
Asked by
Frank Michael
Top achievements
Rank 1
Answers by
Frank Michael
Top achievements
Rank 1
Atanas Korchev
Telerik team
Georgi Krustev
Telerik team
Share this question
or