The problem I have is when I bind to the "SelectedIndex" property of the DropDownList. It works fine with other properties like "Text" but not with selectedindex.
Any suggestions please ?
Regards
Paul.
9 Answers, 1 is accepted
Thank you for writing.
By default, the property SelectedIndex is not bindable, but you can bind with simple binding manually.
Could you please clarify what exactly you want to achieve?
Currently, if you bind this property manually, it should update properly.
I hope this helps.
Peter
the Telerik team
Thanks for your reply. I do bind manually using the code shown below:
control.DataBatabinding.Add("selectedindex",bindingsource,"fieldname")
Where "control" is the raddropdownlist, "bindingsource" is the datasource and "fieldname" is the data member.
If I change the property from "selectedindex" to "text" and change the data member from an Integer to a String then it works.
It also used to work on the dropdownlist's replacement. The radcombobox.
Hope this makes sense.
Regards
Paul.
I was not able to reproduce the described issue. Please, could you create a sample project where the issue can be reproduced and send it to me. This will help me to investigate the case in detail and provide the proper solution. Thank you in advance.
I am looking forward to your project.
Best wishes, Peter
the Telerik team
Sorry for the delay. I have posted a ticket.
Regards
Paul.
Thank you for the provided project.
We concluded that this scenario is not supported by the Windows Forms controls, because Microsoft ComboBox behaves the same way RadDropDownList does. Please refer to the modified project.
We could suggest that you bind the RadDropDownList instances to the same data-source - in this case they should be synchronized better.
Thank you again for your cooperation.
Peter
the Telerik team
I did try with the standard Combobox from Microsoft and it does work fine. I also tried your modified version (after taking out the warnings) and that works too.
It also used to work on the dropdownlist's replacement. The radcombobox.
Any suggestions ?
Regards
Paul.
It seems that we have a misunderstanding of what exactly you expect from the combobox, because from what we understood about your requirement, MS ComboBox is not working. However, considering your latest statement, it seems that your requirement is different. Please describe the exact scenario that you want to achieve. Provide us with a details step-by-step guide of the steps that you performed (in the attached project) and the result that you achieved and that is expected.
Thank you for your cooperation. I am looking forward to your response.
Regards,
the Telerik team
I have added to my support ticket regarding this issue because I cannot attach zip files here.
Many thanks for your help.
Regards
Paul.