This is my first time trying to use the RadLightbox and I understand that I am trying to use it more like a radwindow but would like to make the lightbox work if possible. I have a radlightbox as shown in the code below. My intention is to simply capture input from a radtextbox when the button is clicked, using the lightbox command event. The first issue is that I cannot get the command event of the lightbox to fire at all. Secondly, just to test I was trying to do some response.writes inside the command event of the lightbox, which did not work.
<
telerik:RadLightBox
ID
=
"rlbSkus"
ShowLoadingPanel
=
"true"
runat
=
"server"
Modal
=
"true"
>
<
ClientSettings
>
<
AnimationSettings
HideAnimation
=
"Resize"
NextAnimation
=
"Fade"
PrevAnimation
=
"Fade"
ShowAnimation
=
"Resize"
/>
</
ClientSettings
>
<
Items
>
<
telerik:RadLightBoxItem
Width
=
"380px"
>
<
ItemTemplate
>
<
div
style
=
"width:360; text-align:center;margin:10px;"
>
<
div
style
=
"padding:5px;text-align:center;"
>
<
telerik:radtextbox
id
=
"rtbSkus"
runat
=
"server"
TextMode
=
"MultiLine"
Width
=
"310px"
Height
=
"300px"
EmptyMessage
=
"M2k Sku's, comma delimited"
></
telerik:radtextbox
>
</
div
>
<
div
style
=
"margin-top:20px;"
>
<
telerik:RadButton
ID
=
"rbtnSubmitSkus"
Text
=
"Choose Product Skus"
CommandName
=
"btnSubmitSkus"
CommandArgument='<% rtbSkus.text %>' runat="server"></
telerik:RadButton
>
</
div
>
</
div
>
</
ItemTemplate
>
</
telerik:RadLightBoxItem
>
</
Items
>
</
telerik:RadLightBox
>
Protected
Sub
rlbSkus_Command(
ByVal
sender
As
Object
,
ByVal
e
As
Telerik.Web.UI.LightBoxCommandEventArgs)
Handles
rlbSkus.Command
Response.Write(
"command"
)
If
e.CommandName =
"btnSubmitSkus"
Then
Response.Write(e.CommandArgument)
End
If
End
Sub