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

cannot be parsed as a numeric part of a Pixel unit

5 Answers 224 Views
Dock
This is a migrated thread and some comments may be shown as answers.
Wiliam
Top achievements
Rank 1
Wiliam asked on 02 Apr 2014, 02:23 PM
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!

5 Answers, 1 is accepted

Sort by
0
Slav
Telerik team
answered on 07 Apr 2014, 11:29 AM
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.

 
0
Wiliam
Top achievements
Rank 1
answered on 07 Apr 2014, 01:19 PM
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>
0
Slav
Telerik team
answered on 10 Apr 2014, 11:34 AM
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.

 
0
Wiliam
Top achievements
Rank 1
answered on 10 Apr 2014, 12:44 PM
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
0
Accepted
Slav
Telerik team
answered on 15 Apr 2014, 11:46 AM
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.

 
Tags
Dock
Asked by
Wiliam
Top achievements
Rank 1
Answers by
Slav
Telerik team
Wiliam
Top achievements
Rank 1
Share this question
or