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

Resource combo selectedvalue return something like /wECAQ==

1 Answer 28 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Will
Top achievements
Rank 1
Will asked on 24 Apr 2012, 02:29 AM
Hi there,

 In the FormCreated event of RadScheduler I added a event handler for ResourceType combo box. Here is the code.
What I am trying to achieve is that when I select an item in the combo box it will automatically populate other textbox on the Advanced form.
protected void rsSchedules_FormCreated(object sender, SchedulerFormCreatedEventArgs e)
   {
       if ((e.Container.Mode == SchedulerFormMode.AdvancedEdit) || (e.Container.Mode == SchedulerFormMode.AdvancedInsert))
       {
          
 
           RadComboBox cboItinerary = (RadComboBox)e.Container.FindControl("ResItinerary");
           cboItinerary.SelectedIndexChanged += new RadComboBoxSelectedIndexChangedEventHandler(cboItinerary_SelectedIndexChanged);
           cboItinerary.AutoPostBack = true;
 
           
       }
   }


 This issue is that when I use SelectedValue to retrieve the value in SelectedIndexChange event it returned something like /wECAQ==
I am not sure where this value from. There is nothing wrong with the data binding. The expected value should be integer.

I also tried to use client API to retrieve the value. I got same result.

How could I retrieve the value from the combo box?

Thanks





























1 Answer, 1 is accepted

Sort by
0
Plamen
Telerik team
answered on 26 Apr 2012, 11:25 AM
Hi Will,

 
In such scenarios we strongly recommend setting the value with javascript as it is shown in the Clear selection for the user combobox if no room is selected section in this help topic.

Hope this will be helpful.

Greetings,
Plamen Zdravkov
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
Tags
Scheduler
Asked by
Will
Top achievements
Rank 1
Answers by
Plamen
Telerik team
Share this question
or