or
<
telerik:RadNumericTextBox
ID
=
"txtMaxCost"
Runat
=
"server"
MaxLength
=
"14"
Width
=
"250px"
Type
=
"Currency"
SkinID
=
"OverrideRadDefaultSkinWithNonExistantSkin"
AutoPostBack
=
"true"
Enabled
=
"true"
AllowOutOfRangeAutoCorrect
=
"false"
>
<
NumberFormat
DecimalDigits
=
"2"
KeepNotRoundedValue
=
"False"
/>
</
telerik:RadNumericTextBox
>
<telerik:RadTabStrip ID=
"RadTabStripEditClaim"
runat=
"server"
MultiPageID=
"RadMultiPageEditClaim"
SelectedIndex=
"0"
OnClientTabSelecting=
"OnClientTabSelecting"
>
<Tabs>
<telerik:RadTab Text=
"General"
Enabled=
"true"
Value=
"General"
></telerik:RadTab>
<telerik:RadTab Text=
"Files"
Enabled=
"true"
Value=
"Files"
></telerik:RadTab>
</Tabs>
</telerik:RadTabStrip>
<telerik:RadMultiPage ID=
"RadMultiPageEditClaim"
runat=
"server"
SelectedIndex=
"0"
>
<telerik:RadPageView ID=
"RadPageViewGeneral"
runat=
"server"
>
<fieldset>
</fieldset>
</telerik:RadPageView>
....
</telerik:RadMultiPage>
<telerik:RadCodeBlock ID=
"RadCodeBlock1"
runat=
"server"
>
<script src=
"http://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"
></script> <%--load jquery library--%>
<script type=
"text/javascript"
>
$(document).ready(function () {
//disable button <Save and Continue Update>
$(
"#MainContent_ButtonSubmit"
).attr(
'disabled'
,
'disabled'
);
$(
"#MainContent_ButtonSubmit"
).css({
"cursor"
:
"default"
,
//"box-shadow": "none"
});
//in case the user perform changes in General tab
$(
'#MainContent_RadPageViewGeneral :input'
).change(function () {
//disable button <Save and Continue Update>
$(
"#MainContent_ButtonSubmit"
).removeAttr(
'disabled'
);
$(
"#MainContent_ButtonSubmit"
).css({
"cursor"
:
"pointer"
,
// "box-shadow": "1px 0px 6px #333"
});
});
});
//client-side event occurs when the user selects a tab, before the tab is selected.
function OnClientTabSelecting(sender, eventArgs) {
var pageView = multiPage.get_selectedPageView();
if
(pageView.get_id() ==
'MainContent_RadPageViewGeneral'
)
{
//we are exiting General tab
//check status of save button, if not disabled then we need to save
var disabledValue = $(
"#MainContent_ButtonSubmit"
).attr(
'disabled'
);
if
(disabledValue !=
'disabled'
)
{
alert(
'You cannot continue without performing save'
);
eventArgs.set_cancel(
true
);
//stop the selection
return
;
}
}
eventArgs.set_cancel(
false
);
}
</script>
</telerik:RadCodeBlock>