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

[Solved] Weird treeview rendering problem

2 Answers 102 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.
Stéphan Parrot
Top achievements
Rank 1
Stéphan Parrot asked on 13 Apr 2010, 04:25 PM
Hello folks!

I got an interesting problem to expose and hopefully, someone will be able to point me in the right direction!
Ok, here's the description of my problem:

I have a page that has 3 sections in it:
- Top Menu panel holding a Telerik MVC Menu control
- A Left panel that holds a Telerik MVC treeview control
- A Righ panel that holds numerous fields to edit items selected in the treeview that, upon save, should update both the menu AND the treeview.

I have a user control that is self-contained for the menu (i.e: The control loads it's data from the DB right inside the control's markup)

For the Treeview panel, I have a user control holding the Treeview code and I have an action on a controller that retrieves the collection of items to display in the Treeview control and then displays the partial control's view.

All this works fine but, now, I have put a button in the Treeview's user control to DELETE all checked items in it.
When the delete action fires, it calls the backend to delete the items from the DB and then, displays the View holding the Treeview control the VERY same way it's done for displaying it.

What doesn't work is this:
When the page renders, I can click on the items in the treeview which then fires a client event that displays details in the right panel.
After hitting the Delete button, the items that were selected are correctly removed BUT, the items are no longer clickable...

I'm very puzzled why it does that and I thought to only delete on the server and then, on the OnSuccess event of the form, call a javascript that removes the items on the client side but, this also is quite hard to do right now...

If someone could either help me understand to hopefully resolve my problem by using the server technique (render the view after deletion) OR provide me with client jQuery code to remove selected items, I would be VERY happy and grateful! :)

Thanks for reading!

Stéphan

2 Answers, 1 is accepted

Sort by
0
Atanas Korchev
Telerik team
answered on 14 Apr 2010, 08:46 AM
Hello Stéphan Parrot,

Unfortunately we cannot tell why this problem could happen without reproducing it first. Please open a support ticket and send us 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
Stéphan Parrot
Top achievements
Rank 1
answered on 14 Apr 2010, 01:12 PM
Thanks Atanas!
I will do so in the next few hours!

Best Regards,

Stéphan
Tags
TreeView
Asked by
Stéphan Parrot
Top achievements
Rank 1
Answers by
Atanas Korchev
Telerik team
Stéphan Parrot
Top achievements
Rank 1
Share this question
or