Handle autopostback for TreeListComboEditor

2 posts, 0 answers
  1. Peter
    Peter avatar
    12 posts
    Member since:
    Jul 2012

    Posted 21 Jan 2014 Link to this post

    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?'
  2. Pavlina
    Admin
    Pavlina avatar
    6084 posts

    Posted 24 Jan 2014 Link to this post

    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.
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top