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

ComboBox with Treeview in it not autopostbacking.....

1 Answer 32 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
Jeff Bradshaw
Top achievements
Rank 1
Jeff Bradshaw asked on 30 Mar 2011, 04:52 PM
I took the code to have a treeview in a combobox and it works fine. Problem is, I need it to do an autopostback when somebody changes the value. I have put autopostback=true for the combobox (there isn't one for the treeview) and it works when you first come in and there's no value for the text in the combo box. But once it's been set, it doesn't do the autopostback.

Any thoughts?

TIA - Jeff.

1 Answer, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 31 Mar 2011, 08:32 AM
Hello Jeff,

I am not quite sure about your requirement and I suppose you want to fire RadComboBox SelectedIndexChanged event when changing the TreeView item. If that is the case that behaviour is expected.

When RadComboBox has RadTreeView as template, it actually has only one item - the templated RadTreeView. That is why the SelectedIndexChanged event of RadComboBox will not be fired.
You should subscribe to some server-side event of RadTreeView - NodeClick for example.

If it doesn't helps, please elaborate your scenario.

Thanks,
Shinu.
Tags
TreeView
Asked by
Jeff Bradshaw
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Share this question
or