Hi Team,
I am new user of telerick controls my problem is when if upload file i call given function on
RadAjaxPanel conditional postback is removing css of telerik controls after uploading file
<
telerik:RadScriptBlock
runat
=
"server"
ID
=
"RadScriptBlock2"
>
<
script
type
=
"text/javascript"
language
=
"javascript"
>
function conditionalPostback(sender, args) {
if (args.EventTarget == "<%= btnUploadDocuments.UniqueID %>")
{ args.EnableAjax = false; }
}
</
script
>
</
telerik:RadS
<
telerik:RadAjaxPanel
ID
=
"panelMain"
runat
=
"server"
ClientEvents-OnRequestStart
=
"conditionalPostback"
>
div class="upload_box">
<
div
class
=
"details"
>
<
telerik:RadUpload
AllowedFileExtensions
=
".pdf"
ID
=
"RadUpload1"
ControlObjectsVisibility
=
"AddButton, DeleteSelectedButton, RemoveButtons"
runat
=
"server"
>
</
telerik:RadUpload
>
<
div
class
=
"upload"
>
<
telerik:RadButton
ID
=
"btnUploadDocuments"
runat
=
"server"
Text
=
"Upload"
OnClick
=
"btnUploadDocuments_Click"
>
</
telerik:RadButton
>
<
asp:CustomValidator
ID
=
"custValidateUpload"
runat
=
"server"
Display
=
"Dynamic"
ClientValidationFunction
=
"validateRadUpload1"
> <
span
class
=
"errormessage"
>Only .pdf files are allowed.</
span
>
</
asp:CustomValidator
>
</
div
>
</
div
>
</
telerik:RadAjaxPanel
>