I can make a property field in a Telerik radPropertyGrid display as a combo-box by adding this piece of code in the
'EditorInitialized' event of the propertyGrid:
editorElement:DataSource = bsItems.
editorElement:ValueMember = "tValue".
editorElement:DisplayMember = "tDescr".
tValue and tDescr are fields I use in my temp-table to populate the datasource. Ex.:
The 'Displaymembers' show nicly when the combo-box is dropped down. This is perfect because my users want to see the description and not the internal code I am using for each fruit.
At the moment I choose one of the elements in the combo-box and I leave the propertyField, the propertyValueChanged event is fired. After this event the valueMember is suddenly displayed instead of the displayMember. Ex. the users chooses 'Banana' and leaves the field. Suddenly B instead of Banana is displayed.
This looks a bit 'buggy' to me ...
Anyone any idea how to solve this?
Thanks a lot.
Hi Evy, I have been asking Progress resources to assist you but most of the input I got was that you better post your question in our Telerik forums. In your case I would suggest you post it at www.telerik.com/.../winforms
Thanks a lot for your response.
I have been browsing the Telerik forum and I have even found some people who had a similar issue, but it seems that there is no real solution for it. They are also providing solutions for C# and VB but it isn't always clear how to translate those solutions into valid Progress code.
On the last PUG in Copenhagen we have got the message to log all our Telerik issues with Progress, but in reality when I log an issue related to Telerik the support is often poor (a question is often answered with a question) and takes a long time. Recently I even found a new article in the KB based on a question/solution I emailed to tech support :-)