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

Popup Edit Localization Error

2 Answers 37 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Teoman
Top achievements
Rank 1
Teoman asked on 20 Sep 2010, 11:34 PM
Hi,
I am using this code on page which includes masterpage for center popup edit but when i click close button on popup edit form it gives me error.

The numeric part ('159.5') of '159.5px' cannot be parsed as a numeric part of a Pixel unit.



<
telerik:RadCodeBlock ID="RadCodeBlock1" runat="server">
<
script type="text/javascript">
   
var popUp;
   function PopUpShowing(sender, eventArgs)
   {
       popUp = eventArgs.get_popUp();
       var gridWidth = sender.get_element().offsetWidth;
       var gridHeight = sender.get_element().offsetHeight;
       var popUpWidth = popUp.style.width.substr(0,popUp.style.width.indexOf("px"));
       var popUpHeight = popUp.style.height.substr(0,popUp.style.height.indexOf("px"));
       popUp.style.left = ((gridWidth - popUpWidth)/2 + sender.get_element().offsetLeft).toString() + "px";
       popUp.style.top = ((gridHeight - popUpHeight)/2 + sender.get_element().offsetTop).toString() + "px";
   }
</script>
</
telerik:RadCodeBlock>



2 Answers, 1 is accepted

Sort by
0
Accepted
Daniel
Telerik team
answered on 24 Sep 2010, 09:35 AM
Hello Teoman,

Please examine the following link:
Cannot parse error when closing popup

Let me know if you need further assistance.

Regards,
Daniel
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Teoman
Top achievements
Rank 1
answered on 12 Oct 2010, 11:12 AM
thank you !
Tags
Grid
Asked by
Teoman
Top achievements
Rank 1
Answers by
Daniel
Telerik team
Teoman
Top achievements
Rank 1
Share this question
or