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

Handle autopostback for TreeListComboEditor

1 Answer 41 Views
TreeList
This is a migrated thread and some comments may be shown as answers.
Peter
Top achievements
Rank 1
Peter asked on 21 Jan 2014, 04:11 PM
I have a RadTreeList that uses the TreeListComboEditor as its input for some of the columns. That part works very nicely (aside from the fact that TreeListEditFormItem.ExtractValues returns the selected values from a TreeListComboEditor as a single char instead of the selected value).

However, I have a situation where a user can change one selected input element and have the list of available options in a different TreeListComboEditor change: the first dropdown asks "Is this currency or quantity" and the second dropdown should show either a list of dollar-values or a list of item-quantities. I turned AutoPostBack to 'true' for the first control, and I can see that it is indeed posting back. However, since the TreeListComboEditor is created dynamically, I can't wire up the object's events ahead of time, and I don't see any available events that I can listen for. Is my only option 'parse the request arguments and search the page controls for the update panel?'

1 Answer, 1 is accepted

Sort by
0
Pavlina
Telerik team
answered on 24 Jan 2014, 06:08 PM
Hi Peter,

A similar scenario to the one you are trying to implement is discussed in the following forum post:
http://www.telerik.com/community/forums/aspnet-ajax/treelist/capture-editform-combobox-selectedindexchnaged.aspx

Check it out and see if it helps.

Regards,
Pavlina
Telerik
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to the blog feed now.
Tags
TreeList
Asked by
Peter
Top achievements
Rank 1
Answers by
Pavlina
Telerik team
Share this question
or