RadAjaxPanel conditional postback is removing css of telerik controls after uploading file

2 posts, 0 answers
  1. Rohit
    Rohit avatar
    2 posts
    Member since:
    Apr 2012

    Posted 24 Apr 2012 Link to this post

    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; }
    <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"
                                       <div class="upload">
                                           <telerik:RadButton ID="btnUploadDocuments" runat="server" Text="Upload" OnClick="btnUploadDocuments_Click">
                                           <asp:CustomValidator ID="custValidateUpload" runat="server" Display="Dynamic" ClientValidationFunction="validateRadUpload1">   <span class="errormessage">Only .pdf files are allowed.</span>
    Please help me i will really appreciate that. thank 

  2. Eyup
    Eyup avatar
    4079 posts

    Posted 27 Apr 2012 Link to this post

    Hello Rohit,

    Thank you for contacting us.

    I have tried the provided code and everything works fine on my end.
    It is very difficult to determine the exact cause of the problem just from the provided information. Could you please elaborate some more on the issue?:
    • do you face this problem on other browsers?
    • are you using any custom skin or additional styling?
    • anything else that can be related to the issue

    I am looking forward to your reply.

    Kind regards,
    the Telerik team
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
Back to Top