This question is locked. New answers and comments are not allowed.
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
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