This is a migrated thread and some comments may be shown as answers.

On 1st selection, selected item value doesn't appear

5 Answers 72 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
Pinho
Top achievements
Rank 1
Pinho asked on 11 Jun 2009, 08:50 PM
Hi all,

 I'm building a ComboBox extension (based on RadComboBox v3) that will allow users to set the content of the combo box with all the items of a enumeration (any enumeration).

 All is fine, except in one detail, after the 1st selection, the value appears empty (text field in the combobox).

If I use windows combo box this works correctly.

I'm sending you a solution with just the code used to demonstrate this. Could you please tell if there's a workaround for this?

Thanks ahead for all the help,

L. Pinho

Here's the vs2008 solution: Solution

5 Answers, 1 is accepted

Sort by
0
hwsoderlund
Top achievements
Rank 1
answered on 12 Jun 2009, 07:24 AM
I've posted previously about a similar problem, maybe the info there can help you:
http://www.telerik.com/community/forums/silverlight/combobox/selectionboxitemtemplate-is-sometimes-applied-too-late.aspx


0
Accepted
Valeri Hristov
Telerik team
answered on 12 Jun 2009, 03:27 PM
Hi guys,

I tested the application, the problem is different than the one Henrik described in the other thread. I guess it is related to the code of the inherited combo, but I didn't debugged that much to find the real problem. I just blogged about displaying enum values in a combo box, my approach is a lot simpler, I hope it helps:
http://blogs.telerik.com/valerihristov/posts/09-06-12/binding_a_combobox_to_enum_values_with_radcontrols_for_silverlight.aspx

Best wishes,
Valeri Hristov
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
Pinho
Top achievements
Rank 1
answered on 12 Jun 2009, 07:54 PM
I will try it your way,
thanks
0
Valeri Hristov
Telerik team
answered on 15 Jun 2009, 09:11 AM
Hi Luis,

Let me know how it goes.

All the best,
Valeri Hristov
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
Pinho
Top achievements
Rank 1
answered on 19 Jun 2009, 06:50 PM
Hi Valeri,

 thanks again. After some adjustments everything works like it suppose to.

Thanks again,

L. Pinho
Tags
ComboBox
Asked by
Pinho
Top achievements
Rank 1
Answers by
hwsoderlund
Top achievements
Rank 1
Valeri Hristov
Telerik team
Pinho
Top achievements
Rank 1
Share this question
or