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; }
              }
          </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>
    Please help me i will really appreciate that. thank 

  2. Eyup
    Admin
    Eyup avatar
    3962 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,
    Eyup
    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