I am having a bit of an issue with rad window and calling it from a imagebutton.
My code looks like this:
The issue i am having is that, when i click on the button, it causes validation. But if i add CauseValidation=False to my button, the window opens and closes immediately. It does not show the tool-bar at the top and does wait for end user action.
My code looks like this:
function openRadWin() {
radopen("./cvv.jpg", "RadWindow1");
}
<
telerik:RadWindowManager
ID
=
"RadWindowManager1"
runat
=
"server"
EnableShadow
=
"true"
>
<
Windows
>
<
telerik:RadWindow
ID
=
"RadWindow1"
runat
=
"server"
ShowContentDuringLoad
=
"false"
Width
=
"500px"
Height
=
"260px"
Title
=
"CVV"
Behaviors
=
"Close"
Modal
=
"true"
>
</
telerik:RadWindow
>
</
Windows
>
</
telerik:RadWindowManager
>
<
asp:ImageButton
ID
=
"ImageButton1"
runat
=
"server"
OnClientClick
=
"openRadWin();"
ImageUrl
=
"~/question.jpg"
Height
=
"20px"
Width
=
"20px"
/>
The issue i am having is that, when i click on the button, it causes validation. But if i add CauseValidation=False to my button, the window opens and closes immediately. It does not show the tool-bar at the top and does wait for end user action.