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

Postback on multi-node selection

3 Answers 57 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
Kiran Nair
Top achievements
Rank 1
Kiran Nair asked on 21 Mar 2008, 05:01 PM

I have a treeview set with multi-Node selection.

When I make a single selection (click a node with no key pressed) I have a postback and it's OK.
When a hold a shift key and click a row to have multiple selections, I do not get a postback? Is there a way to get a postback in this situation? 

3 Answers, 1 is accepted

Sort by
0
Veselin Vasilev
Telerik team
answered on 24 Mar 2008, 12:15 PM
Hi Stanley Speer,

Thank you for contacting Telerik Support!

I think this is a normal behavior - when you have the Shift key pressed and MultiSelect is enabled, then PostBack is not fired because the tree expects you to select another node.
Can you tell me what do you want to achieve?


All the best,
Veskoni
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Neil
Top achievements
Rank 1
answered on 18 Jul 2008, 07:36 PM
Hi,

I also have a problem with this.  What I want to do is dynamically output the list of selected nodes as they are muli-selected but as there does not seem to be any postback during this process I'm not sure how to accomplish it.

Any ideas?
0
Veselin Vasilev
Telerik team
answered on 21 Jul 2008, 03:45 PM
Hello Neil,

You can accomplish this client-side - subscribe to the OnClientNodeClicking event and update the label with the node's text:

function OnClientNodeClickingHandler(sender, eventArgs) 
    var text = eventArgs.get_node().get_text(); 
    var label = document.getElementById("Label1"); 
    label.innerHTML += text + "<br>"

I hope this will get you started.




Best wishes,
Veskoni
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
Tags
TreeView
Asked by
Kiran Nair
Top achievements
Rank 1
Answers by
Veselin Vasilev
Telerik team
Neil
Top achievements
Rank 1
Share this question
or