cannot be parsed as a numeric part of a Pixel unit

6 posts, 1 answers
  1. Wiliam
    Wiliam avatar
    8 posts
    Member since:
    Aug 2012

    Posted 02 Apr 2014 Link to this post

    Good morning! I am facing a problem when I resize the RadDock I trigger, and then try to change page it appears the following error:

    Erro em tempo de execução do JavaScript: Sys.WebForms.PageRequestManagerServerErrorException: The numeric part ('184,28570556640625') of '184,28570556640625' cannot be parsed as a numeric part of a Pixel unit.

    Which form to be able to resolve this problem? I'm using the language of the browser in Portuguese, it brings this error when I use English and it does not show any errors.

    I await response Thanks!
  2. Slav
    Admin
    Slav avatar
    1355 posts

    Posted 07 Apr 2014 Link to this post

    Hi Wiliam,

    Such a problem was encountered in a previous version of UI for ASP.NET AJAX, however it should be fixed in the latest release of the controls. Please verify that you are using the latest version of the Telerik controls - 2014.1.403. If you are, please send a sample that isolates your logic so that I can check how you resize the RadDock controls and suggest a solution.

    Regards,
    Slav
    Telerik
     

    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

     
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Wiliam
    Wiliam avatar
    8 posts
    Member since:
    Aug 2012

    Posted 07 Apr 2014 in reply to Slav Link to this post

    I have the updated version of Telerik controls - 2014.1.403, but still showing the error, and the browser is in EN, below is the code I'm using, resize the raddcok and then presses the button so that I can play the error I'm having here. thank you.

    Code:


    <%@ Page Language="VB" AutoEventWireup="false" CodeFile="Default.aspx.vb" Inherits="_Default" %>

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

    <html xmlns="http://www.w3.org/1999/xhtml">
    <head runat="server">
        <title></title>
    </head>
    <body>
    <script type="text/javascript" src="lib/jquery-1.2.6.min.js"></script>
    <script type="text/javascript">

        function panviewresized() {
            var pandock = document.getElementById('<%= PanViewRadDock.ClientID %>');
            var panimg = $('#<%= DivRadDock.ClientID %>');
            var offset = panimg.offset();

            panimg.height(parseInt(pandock.style.height) - (offset.top - parseInt(pandock.style.top)) - 25);
            panimg.width(parseInt(pandock.style.width) - (offset.left - parseInt(pandock.style.left)) - 25);

        }
    </script>
        <form id="form1" runat="server" >
        <asp:ScriptManager ID="ScriptManager1" runat="server" />
           <telerik:raddock id="PanViewRadDock" runat="server" Top="100px" Left="20px" Height="300px" Width="300px" DefaultCommands="None" Resizable="True" EnableDrag="True" OnClientResizeEnd="panviewresized" >
                  <ContentTemplate>
                       <asp:UpdatePanel ID="PanViewUpdatePanel" runat="server" UpdateMode="Conditional" >
                              <ContentTemplate>
                                   <div id="DivRadDock" runat="server" style="border:2px solid #666; border-color:Red; width:100px; height:100px;" /> 
                               </ContentTemplate>  
                        </asp:UpdatePanel>
                   </ContentTemplate>
            </telerik:raddock>

            <telerik:RadButton ID="MSGBtn" runat="server" Text="Message" />
        </form>
    </body>
    </html>
  5. Slav
    Admin
    Slav avatar
    1355 posts

    Posted 10 Apr 2014 Link to this post

    Hello Wiliam,

    I tried to reproduce the problem at hand, but to no avail. Please check the attached test page and the following screen capture: http://screencast.com/t/0XdgwABb4BI. Let me know if I am missing something and how can the sample be modified in order to recreate the issue.

    If possible, edit the attached page so that the problem is reproducible and send it. This will allow me to isolate the issue locally and to provide a more to the point answer.

    Regards,
    Slav
    Telerik
     

    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

     
  6. Wiliam
    Wiliam avatar
    8 posts
    Member since:
    Aug 2012

    Posted 10 Apr 2014 Link to this post

    I used the same code that you gave me, and got a negative result, the video follows the tela:http://www.screencast.com/users/wilbonetti/folders/Default/media/3f4ebe53-a799-4d17-9485-924bcf81b52b so that you can track the error. 

    I'm waiting
  7. Answer
    Slav
    Admin
    Slav avatar
    1355 posts

    Posted 15 Apr 2014 Link to this post

    Hi Wiliam,

    I am not sure how you configured the value that is displayed in the exception message just by resizing the RadDock control, however I succeeded in reproducing the problem by editing the size of the dock directly in its client state. I have brought it to the attention of our developers, nevertheless I cannot provide a firm estimation when it will be fixed.

    You can use the bug report item that I logged in order to follow the status of the bug, vote for it and comment it: http://feedback.telerik.com/Project/108/Feedback/Details/126013

    I have updated your Telerik points as a small token of gratitude for reporting this issue.

    Regards,
    Slav
    Telerik
     

    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

     
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017