This is what it should look when the page first loads
It is important that the user IS allowed to add without any limit. The page has the first group in design when first loaded.
How to create them in codes and assign each of these dropdowns to selectedindex changed event since they have to be tracked hierarchically whenever the selected data is changed.
Thanks.
Hello,
This is duplicate post. For more information according to this issue, please follow the link : http://forums.infragistics.com/forums/t/57653.aspx.
Sincerely,
Georgi Sashev
Developer Support Engineer
Infragistics, Inc.
http://es.infragistics.com/support
Georgi:
Could you take some time and investigate this a little more how to fire up selectionindex changed event for an array of dropdownlists that are created at runtime ????Thanks.
Hello Renping,
Currently I am working on sample for you. I will update you in next few days. Thank you for being so patient.
For any further assistance please, do not hesitate to contact us.
Looking forward to hear from you.
Thank you very much for your assistance. I have been moved by your desire to help. This is my first time to seek help, though the company I work for has been using your product for years now.
Hi,
I had a chance to develop a sample for you. Please find it as an attached file. It is an web site and all you need to run it is just to add the ig_res folder which will be automatically added if you turn into design mode. In this solution I have the cascade drop downs extended as a user control. I have an “add” button to add them in run time. I am saving the count of the created dropdowns in the viewstate and recreate them on post back. The cascade drop down control works in the same way like in the example you reviewed before. If you have any other questions, please do not hesitate to ask.
I hope I had helped.
The issue happens becuase in the sample the first WebDropDown is bound on on every post back.
The second and third WebDropDowns are bound only on ItemsRequested and that's why the issue does not appear with them.
Please let me know if you feel that I haven't answered your question
Thank you very much. I was out of the office last week. I just run your code pages and the first dropdownlist loses value after I have added 3 groups of them.
Hello issdrpy,
If you still have any questions, please do not hesitate to ask, I will be glad to help.
In my sample in the ViewState I save the count of the CascadeDropDown controls created and recreate them. In order to save the states of them you need to save them in the ViewState. This behavior is due to this.
Let me know if you need further clarification with this matter.
Thank you very much for your quick response.
I got your codes to work today and it seems that we had some similar issues.I could create the controls but when the page is posted back for cetain times, the selected value for wdd1 may bot gone.