Last post Sep 02, 2013 12:54 AM by Happy Chen - MSFT
Aug 27, 2013 06:19 PM|shahf12|LINK
I am generating Dynamic Accordion Panes which contain 2 Dynamic Drop Downlists. One is dependent on another. Parent Drop Downlist has AutpoPostback, and it works fine. The selected value is retained properly on postback. On parent drop down selection change I
am again calling the same Load method on postback to populate child drop downlist , then adding code to selectedindex event method to repopulate chidl dropdown list based on the value selected in parent Drop Down. Child drop down does not have AutpoPostBack.
I also have dynamic buttons inside each accordion pane. When clicked on the button, FindControl finds both the drop down lists, but shows correct index only for parent drop down. How can I retain selected value for child drop down too?
Aug 29, 2013 05:09 AM|Happy Chen - MSFT|LINK
hi shahf12 ,
From what I understand that you want to retain selected value for child drop down which is dependent on the parent drop down.
The issue is due to selectedindex event method, in the method again calling the same Load method on postback causing the parent dropdown list refresh and rebind.
I would suggest you to check your selectedindex event method and avoid to refresh or rebind to the parent dropdown list.
If it doesn’t work, you maybe need to post your markup in order to help us to understand your issue better.
If you need more assistance, please let me know.
Aug 30, 2013 03:03 PM|shahf12|LINK
by a button.
Sep 02, 2013 12:54 AM|Happy Chen - MSFT|LINK
you maybe post your markup in order to help us to understand your issue better.