Hi,
I need to have a dropdown in the titlebar of my "Weather" dock widget and have it sending city values to my custom "Weather" control.
I am struggling to pass the slected value to my ObjectDataSource's ControlID. Is my request possible at all?
The dropdown works fine inside the Weather control but will look much better if its part of the dock's titlebar.
I need to have a dropdown in the titlebar of my "Weather" dock widget and have it sending city values to my custom "Weather" control.
I am struggling to pass the slected value to my ObjectDataSource's ControlID. Is my request possible at all?
The dropdown works fine inside the Weather control but will look much better if its part of the dock's titlebar.
<
telerik:RadDock
ID
=
"Weather"
Runat
=
"server"
Width
=
"300px"
Skin
=
"MyCustomSkin"
EnableEmbeddedSkins
=
"false"
EnableRoundedCorners
=
"True"
BackColor
=
"#F3F3F3"
BorderStyle
=
"None"
Title
=
"Weather"
AutoPostBack
=
"True"
>
<
ContentTemplate
>
<
asp:UpdatePanel
ID
=
"UpdatePanel1"
runat
=
"server"
>
<
ContentTemplate
>
<%-- INCLUDE CONTENT - WEATHER --%>
<
content:Weather
ID
=
"Weather1"
runat
=
"server"
></
content:Weather
></
ContentTemplate
>
</
asp:UpdatePanel
>
</
ContentTemplate
>
</
telerik:RadDock
>
<
asp:XmlDataSource
ID
=
"XmlWeather"
runat
=
"server"
></
asp:XmlDataSource
>
<
telerik:RadComboBox
ID
=
"CityList"
Runat
=
"server"
AutoPostBack
=
"true"
>
<
Items
>
<
telerik:RadComboBoxItem
Text
=
"Bloemfontein"
Value
=
"Bloemfontein"
/>
<
telerik:RadComboBoxItem
Text
=
"Cape Town"
Value
=
"Cape Town"
/>
<
telerik:RadComboBoxItem
Text
=
"Durban"
Value
=
"Durban"
/>
<
telerik:RadComboBoxItem
Text
=
"East London"
Value
=
"East London"
/>
<
telerik:RadComboBoxItem
Text
=
"Johannesburg"
Value
=
"Johannesburg"
/>
<
telerik:RadComboBoxItem
Text
=
"Nelspruit"
Value
=
"Nelspruit"
/>
<
telerik:RadComboBoxItem
Text
=
"Pietermaritzburg"
Value
=
"Pietermaritzburg"
/>
<
telerik:RadComboBoxItem
Text
=
"Polokwane"
Value
=
"Polokwane"
/>
<
telerik:RadComboBoxItem
Text
=
"Port Elizabeth"
Value
=
"Port Elizabeth"
/>
<
telerik:RadComboBoxItem
Text
=
"Pretoria"
Value
=
"Pretoria"
/>
</
Items
>
<
asp:ObjectDataSource
ID
=
"WeatherFeed"
runat
=
"server"
SelectMethod
=
"GetForecast"
TypeName
=
"xxx.Controls.Conditions"
>
<
SelectParameters
>
<
asp:ControlParameter
ControlID
=
"CityList"
Name
=
"location"
PropertyName
=
"SelectedValue"
Type
=
"String"
/>
</
SelectParameters
>
</
asp:ObjectDataSource
>