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

How to set radcombobox with automatic LoadOnDemand from client side

1 Answer 79 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
Roni Lev
Top achievements
Rank 1
Roni Lev asked on 10 Aug 2010, 09:28 AM
How can i  set the combo from client side.?

The way i do it now is

on Client side i pass value using hidden inputs to server side than i call ajaxRequest


j_inComboText.value = Description;

j_inComboVal.value = StatusId;

$find(

 

"<%= RadAjaxManager1.ClientID %>").ajaxRequest();

On server side i implement

 

 

 

if (rcbStatus.SelectedIndex == 0)

 

    rcbStatus.Items.Remove(0);

 

 

RadComboBoxItem ps = new RadComboBoxItem();

 

ps.Text = inComboText.value ;

ps.Value = inComboVal.Value ;

rcbStatus.Items.Insert(0, ps);

rcbStatus.SelectedIndex = 0;

It shows that my value is set ok in the combo but not refresh it to appear in the header of the combo?

1 Answer, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 10 Aug 2010, 10:17 AM
Hello,

Have you set the AjaxManager's AjaxSettings properly?
AJAX Manager

Also check the demo which shows how to populate the combo using web service/wcf.
ComboBox / Load on Demand modes
ComboBox / WCF Web Service


-Shinu
Tags
ComboBox
Asked by
Roni Lev
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Share this question
or