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

[Solved] Get Values From Asp:DropDown Menu

1 Answer 103 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Hammad Pasha
Top achievements
Rank 1
Hammad Pasha asked on 31 Dec 2009, 12:52 PM
Hi,
I am using your Rad Scheduler and have customized the Advanced Form by studying it from MSDN topic "Customize The Advance Form Template". I would like to know I have added two dropdown controls in it. Data binding is done programmatically to sharepoint list. Problem I am facing is that the textbox controls I have added to the defaultScheduler form works fine. I am getting the value I entered in it. I have made two seperate drop down controls (like in the demo Telerik have provided ResourceControl). Each is seperately binded. When I click Insert in the Adavanced Form, I dont get the selected value in the drop down. Please assist me with this. How can i get the value selected in the drop down Box.

Yours Truly
Hammad Haneef Pasha

1 Answer, 1 is accepted

Sort by
0
T. Tsonev
Telerik team
answered on 06 Jan 2010, 08:34 AM
Hello Hammad,

You should check that:
  • Your drop-down user control has a property (for example Value) with Bindable(BindableSupport.Yes, BindingDirection.TwoWay) attribute
  • Your advanced form user control has a corresponding property with the same attribute (see UserID in the example). This property should forward its value to the Value property of the drop-down user control.
  • The template property is bound to a custom attribute / resource in the scheduler definition. For example:
<AdvancedInsertTemplate>
    <scheduler:AdvancedForm runat="server" ID="AdvancedInsertForm1" Mode="Insert"
        UserID='<%# Bind("User") %>' />
</AdvancedInsertTemplate>

You should send us the code of the advanced template and the page that you're working on in case this doesn't help.

Greetings,
Tsvetomir Tsonev
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.
Tags
Scheduler
Asked by
Hammad Pasha
Top achievements
Rank 1
Answers by
T. Tsonev
Telerik team
Share this question
or