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

How to select the item in RadCombo?

3 Answers 32 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
imran
Top achievements
Rank 1
imran asked on 26 Apr 2013, 04:58 AM
Firstly, i select with
combo.SetText("abc")

it works but when page is going to postback it clears the combo

then i get the item

 

item = combo.FindItemByText("abc");
item.Select()

it works in postback ...but when i use tab button to treverse more control...it again clear or select any other item...

please help to select the combo wrt to above problems

thanks

3 Answers, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 26 Apr 2013, 06:07 AM
Hi,

You can set the item selected from server side as shown below.
c#
combo.FindItemByText("text").Selected=true;

Thanks,
Shinu
0
imran
Top achievements
Rank 1
answered on 26 Apr 2013, 12:27 PM
Thanks Shinu...but i want this feature in client side...i use this also but same after post back.


Please tell me in client side..
0
Shinu
Top achievements
Rank 2
answered on 29 Apr 2013, 05:16 AM
Hi,

Here is the full code that I tried which worked as expected.
JS:
var combo = $find("<%= RadComboBox1.ClientID %>");
var item = combo.findItemByText("text");
item.select();
Thanks,
Shinu
Tags
General Discussions
Asked by
imran
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
imran
Top achievements
Rank 1
Share this question
or