Hello,
I have an aspx page with a RadComboBox an a silverlight object in it :
I want access to the RadComboBox when I am in my silverlight code :
Unfortunately, this code doesn't work, my cbListeTypesDonnees is always null.
It works when my combobox is not a telerik control.
How can I get the RadComboBox from Silverlight ?
Thank you !
I have an aspx page with a RadComboBox an a silverlight object in it :
<
telerik:RadComboBox
ID
=
"cbListeTypesDonnees"
runat
=
"server"
SkinID
=
"cbMiddleComboBox"
/>
<
div
id
=
"silverlightControlHost"
>
<
object
data
=
"data:application/x-silverlight-2,"
type
=
"application/x-silverlight-2"
width
=
"600px"
height
=
"500px"
id
=
"moduleSL"
>
<
param
name
=
"source"
value
=
"../../ClientBin/Genius.UI.Modules.DonneesExogenes.xap"
/>
<
param
name
=
"onError"
value
=
"onSilverlightError"
/>
<
param
name
=
"background"
value
=
"white"
/>
<
param
name
=
"minRuntimeVersion"
value
=
"4.0.50401.0"
/>
<
param
name
=
"autoUpgrade"
value
=
"true"
/>
<
a
href
=
"http://go.microsoft.com/fwlink/?LinkID=149156&v=4.0.50401.0"
style
=
"text-decoration: none"
>
<
img
src
=
"http://go.microsoft.com/fwlink/?LinkId=161376"
alt
=
"Get Microsoft Silverlight"
style
=
"border-style: none"
/>
</
a
>
</
object
>
</
div
>
I want access to the RadComboBox when I am in my silverlight code :
public
partial
class
MainPage : UserControl
{
private
void
_serviceClient_GetAllValeursDonneeExogeneCompleted(
object
sender, GetAllValeursDonneeExogeneCompletedEventArgs e)
{
if
(HtmlPage.Document.GetElementById(
"cbListeTypesDonnees"
) !=
null
)
{
}
}
Unfortunately, this code doesn't work, my cbListeTypesDonnees is always null.
It works when my combobox is not a telerik control.
How can I get the RadComboBox from Silverlight ?
Thank you !