Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
135
Script error: ArgumentOutOfRangeException: Value must be an integer
posted

Hi,

I am doing some experimenting with the WebDialogWindow, and it seems to work fine. But I get a JavaScript error in one of the pages I've used it: 

Sys.ArgumentOutOfRangeException: Value must be an integer.
Parameter name: x
Actual value was NaN.

The error is generated in a function which seems to call the x and y position of the WebDialogWindow. Both x and y values are 'NaN'.

I have 2 pages with the dialog, one of which generates the error and the other works fine. Both pages have the ScriptManager included and the appropriate assembly references. The page that works fine contains only the WebDialogWindow and 2 buttons (to show and hide it). The page that generates the script error has the WebDialogWindow, but also a DataList which includes an Infragistics WebPanel. I've included the opening tags of the  WebDialogWindow, WebPanel and DataList from the problempage below.

<ig:WebDialogWindow ID="dialogWindow1" runat="server" Height="150px" InitialLocation="Centered" Modal="True" Moveable="False" Width="250px">

<asp:DataList ID="DataList1" runat="server" RepeatColumns="1" CellPadding="0" CellSpacing="5" ShowFooter="False" ShowHeader="False" HorizontalAlign="Center" Width="100%" ondeletecommand="DataList1_DeleteCommand" oneditcommand="DataList1_EditCommand">

<igmisc:WebPanel ID="WebPanel1" runat="server" StyleSetName="" Width="100%" PanelStyle-CssClass="MyPanelStyle">

Additional info:

  • Running the webpage on my local IIS on Vista
  • Visual Studio 2008
  • DLL's: Infragistics.Web.v8.1 (8.1.20081.1000) and Infragistics.WebUI.Misc.v8.1 (8.1.20081.1000)
  • The WebDialogWindow is being shown on the oneditcommand in the DataList which is triggered by a normal ImageButton
Parents Reply Children
No Data