This is a migrated thread and some comments may be shown as answers.

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

1 Answer 142 Views
Ajax
This is a migrated thread and some comments may be shown as answers.
Rohit
Top achievements
Rank 1
Rohit asked on 24 Apr 2012, 04:55 PM

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 

1 Answer, 1 is accepted

Sort by
0
Eyup
Telerik team
answered on 27 Apr 2012, 03:17 PM
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.
Tags
Ajax
Asked by
Rohit
Top achievements
Rank 1
Answers by
Eyup
Telerik team
Share this question
or