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

Set Selected Value

8 Answers 188 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
Kaleeswara Murthy
Top achievements
Rank 1
Kaleeswara Murthy asked on 01 Feb 2010, 09:37 AM
Hi,

Initially i am binding the dropdown control.

After that based on selection of grid value , i want to select the value of combo box.

How to set selected value at run time ?

Regards,
Kalees

8 Answers, 1 is accepted

Sort by
0
Konstantina
Telerik team
answered on 01 Feb 2010, 01:03 PM
Hello Kaleeswara,

Thank you for contacting us.

As we didn't completely understand what exactly you need, attached you will find a sample project in which a ComboBox and a FormView are binded to a GridView. After selecting an item from the GridView the FormView displays more details and the ComboBox only one of the fields of the GridView.

Please find the attached file and if you have further questions feel free to contact us again.

Sincerely yours,
Konstantina
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
Kaleeswara Murthy
Top achievements
Rank 1
answered on 01 Feb 2010, 01:24 PM
Hi,

Thanks for your reply.

I have the combo box. Need to bind city ID and City Name.

After that i have the city ID.... Need to select the particular cityID as Selected value.
Regards,
Kalees
0
Kaleeswara Murthy
Top achievements
Rank 1
answered on 02 Feb 2010, 10:47 AM
Please update the status for set selected value in combo box
0
Konstantina
Telerik team
answered on 02 Feb 2010, 02:18 PM
Hi Kaleeswara,

Thank you for the question.

Could you please share with us what exactly in the project sent to you in the previous post doesn't work for you? Will you be able to modify it to fit your needs? If not, can you please provide us with more details about your scenario, so that we can assist you in the best manner.

Looking forward to your reply.

Best wishes,
Konstantina
the Telerik team

Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Follow the status of features or bugs in PITS and vote for them to affect their priority.
0
Kaleeswara Murthy
Top achievements
Rank 1
answered on 02 Feb 2010, 06:11 PM
Hi,

In my combo box , binded the list UserID,UserName.

UserID-Value Member
UserName - Display member

After binding, i need to select the user based on logged in userID.

Now i have the UserID, i need to select UserName based on logged in UserID.


Regards,
Kalees
0
Konstantina
Telerik team
answered on 04 Feb 2010, 09:42 AM
Hello Kalees,

Thank you for contacting us.

Here you can find more information about the selection properties of the ComboBox. Please go through the article and if you have something unclear feel free to ask.
If the article doesn't help you, could you please modify the project sent to you in one of my previous posts to fit your scenario, open a support ticket and attach it. In that way we will be able to assist you in the best manner.

If you need any further assistance please feel free to contact us again.


Best wishes,
Konstantina
the Telerik team

Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Follow the status of features or bugs in PITS and vote for them to affect their priority.
0
Kaleeswara Murthy
Top achievements
Rank 1
answered on 04 Feb 2010, 10:09 AM
Hi,

Thanks for yor solution.

I want select the item at runtime based on valuememberpath.

I have UserID, i want to select the combo item at run time
0
Konstantina
Telerik team
answered on 05 Feb 2010, 05:57 PM
Hello Kalees,

Attached you will find a sample project, in which is illustrated how to set the SelectedValue property of the ComboBox at run time.
Hope this helps.

Feel free to contact us again if you need further assistance.

All the best,
Konstantina
the Telerik team

Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Follow the status of features or bugs in PITS and vote for them to affect their priority.
Tags
ComboBox
Asked by
Kaleeswara Murthy
Top achievements
Rank 1
Answers by
Konstantina
Telerik team
Kaleeswara Murthy
Top achievements
Rank 1
Share this question
or