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

default value of a radcombobox

2 Answers 61 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
tim
Top achievements
Rank 1
tim asked on 19 Apr 2011, 11:37 AM
Hi, i am creating an edit childwindow with a radcombobx in it.

now users select certain data from a  hierarchical treeview and the screen pops up .
i am able to fill the combobox with the desired data , however i want to select the parent of the selected item in the combobox
by default.
i've tried like


/*headindustry is the child and industry is the parent */
industry s =headindustry.industry
combobox.selecteditem = s;
combobox.selectedValue =s;
but nothing seems to work anyone got an idea how to fix it

p.s.

i've made my combobox so that it gets the entity and fills the grid , but i've added a datatemplate and within this template is a textblock with a binding on only my description of the entity.

2 Answers, 1 is accepted

Sort by
0
Konstantina
Telerik team
answered on 25 Apr 2011, 11:38 AM
Hi Tim,

Could you please elaborate more on what exactly your are trying to achieve. Giving us some more details about your scenario will be really helpful for providing you with the best solution.

Looking forward to your reply.

Best wishes,
Konstantina
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
tim
Top achievements
Rank 1
answered on 26 Apr 2011, 02:44 PM
i found the problem did something wrong with the databinding everything is ok now
Tags
ComboBox
Asked by
tim
Top achievements
Rank 1
Answers by
Konstantina
Telerik team
tim
Top achievements
Rank 1
Share this question
or