I have 3 cascading combo boxes which may be populated when the page loads based upon request string item values or they may be populated by the user on the client side.
Because of this "dual personality", I am trying to "clear" the events on the combo boxes at page_load in case any of the combo boxes are loaded based on the incoming request string. Then I want to restore the events as my code exits page_load (I hope this is the correct way of handling this problem).
The three (3) combo boxes are defined as:
My problem is this...on the display page (pagename.aspx), the second and third cascading combo boxes have values entered for the "OnItemsRequested" event. But when I try to "clear" this value in the server side code at page_load I keep receiving a compilation error on the event. You may refer to the attached screen capture that shows the error.
Why is this event property inaccessible on the server side?
Thanks in advance!
Lynn
Because of this "dual personality", I am trying to "clear" the events on the combo boxes at page_load in case any of the combo boxes are loaded based on the incoming request string. Then I want to restore the events as my code exits page_load (I hope this is the correct way of handling this problem).
The three (3) combo boxes are defined as:
<
asp:TableRow
>
<
asp:TableCell
>
<
asp:Label
ID
=
"Label1"
runat
=
"server"
Text="<% $GetLangString:NewTrans.InThisCountry %>"></
asp:Label
>
</
asp:TableCell
>
<
asp:TableCell
>
<
telerik:RadComboBox
ID
=
"SearchCountry"
TabIndex
=
"5"
style
=
"z-index: 9000;"
Width
=
"200px"
EnableEmbeddedSkins
=
"true"
Skin
=
"Sitefinity"
runat
=
"server"
Height
=
"150px"
OnClientSelectedIndexChanging
=
"LoadSearchStateProv"
>
</
telerik:RadComboBox
>
</
asp:TableCell
>
</
asp:TableRow
>
<
asp:TableRow
>
<
asp:TableCell
>
<
asp:Label
ID
=
"Label3"
runat
=
"server"
Text="<% $GetLangString:NewTrans.InThisState %>"></
asp:Label
>
</
asp:TableCell
>
<
asp:TableCell
>
<
telerik:RadComboBox
ID
=
"SearchStateProv"
TabIndex
=
"6"
style
=
"z-index: 9000;"
Width
=
"200px"
EnableEmbeddedSkins
=
"true"
Skin
=
"Sitefinity"
runat
=
"server"
Height
=
"150px"
OnClientSelectedIndexChanging
=
"LoadSearchCity"
OnClientItemsRequested
=
"SearchItemsLoaded"
OnItemsRequested
=
"SearchState_ItemsRequested"
>
</
telerik:RadComboBox
>
</
asp:TableCell
>
</
asp:TableRow
>
<
asp:TableRow
>
<
asp:TableCell
>
<
asp:Label
ID
=
"Label4"
runat
=
"server"
Text="<% $GetLangString:NewTrans.InThisCity %>"></
asp:Label
>
</
asp:TableCell
>
<
asp:TableCell
>
<
telerik:RadComboBox
ID
=
"SearchCity"
TabIndex
=
"7"
style
=
"z-index: 9000;"
Width
=
"200px"
EnableEmbeddedSkins
=
"true"
Skin
=
"Sitefinity"
runat
=
"server"
Height
=
"150px"
OnClientItemsRequested
=
"SearchItemsLoaded"
OnItemsRequested
=
"SearchCity_ItemsRequested"
></
telerik:RadComboBox
>
</
asp:TableCell
>
</
asp:TableRow
>
My problem is this...on the display page (pagename.aspx), the second and third cascading combo boxes have values entered for the "OnItemsRequested" event. But when I try to "clear" this value in the server side code at page_load I keep receiving a compilation error on the event. You may refer to the attached screen capture that shows the error.
Why is this event property inaccessible on the server side?
Thanks in advance!
Lynn