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

Error after install version 2008.3.1314.35

3 Answers 108 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Gilvan
Top achievements
Rank 1
Gilvan asked on 21 Jan 2009, 02:11 PM
I've got an error after update the version to 2008.3.1314.35 release. The error occurs after an ajax request (in bold at the code below) in a java script function that handles the event "OnClientButtonClicked" of a RadToolBar.
The function is

function OnToolbarClicked(sender, args) { 
            var value = args.get_item().get_value(); 
 
            var ajaxManager = GetAjaxManager(); 
 
            var selItemsTmp = GetSelectedItems(); 
               
            alert(selItemsTmp.length);   
                         
            if (value == "Submit") { 
                var selectedItems = GetSelectedDataItem().value; 
                 
                if (selItemsTmp != null && selItemsTmp.length > 0) { 
                    comment = GetComment(); 
                    value = value + "=" + comment; 
                    value = value + ";Items=" + selectedItems; 
                    GetSelectedDataItem().value = ""
                    ShowAlphaDiv();       
                    ajaxManager.ajaxRequest(value); 
                } 
                else { 
                    alert('<%=GetLocalResourceObject("SelectAtLeastOneReport")%>'); 
                } 
            } 
            else if (value == "ShowHistory") {                 
                if (selItemsTmp != null && selItemsTmp.length == 1) { 
                    GetSelectedDataItem().value = ""
                    ShowAlphaDiv();       
                    ajaxManager.ajaxRequest(value); 
                } 
                else { 
                    alert('<%=GetLocalResourceObject("SelectJustOneReport")%>'); 
                } 
            } 
            else { 
                GetSelectedDataItem().value = ""
                ShowAlphaDiv();       
                ajaxManager.ajaxRequest(value); 
            } 
        } 

Additionaly, the page has a "RadDatePicker" control:

<telerik:RadDatePicker ID="radPeriodStart" Height="15px" runat="server" ClientEvents-OnDateSelected="OnDateSelected"  
                                                                                style="margin-top: 0px;"/> 

and an UserControl that has a RadGrid.




The error message (the error message says that an overflow have occurred in an arithmetic operation):

[Exception... "'Sys.WebForms.PageRequestManagerServerErrorException: Sys.WebForms.PageRequestManagerServerErrorException: Operação aritmética resultou em um estouro.' when calling method: [nsIDOMEventListener::handleEvent]"  nsresult: "0x8057001c (NS_ERROR_XPC_JS_THREW_JS_OBJECT)"  location: "JS frame :: chrome://firebug/content/spy.js :: onHTTPSpyReadyStateChange :: line 483"  data: no]
http://localhost:1769/Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=RadScriptManager1_HiddenField&compress=1&_TSM_CombinedScripts_=%3b%3bSystem.Web.Extensions%2c+Version%3d3.5.0.0%2c+Culture%3dneutral%2c+PublicKeyToken%3d31bf3856ad364e35%3apt-BR%3a3bbfe379-348b-450d-86a7-bb22e53c1978%3aea597d4b%3ab25378d2%3bTelerik.Web.UI%2c+Version%3d2008.3.1314.35%2c+Culture%3dneutral%2c+PublicKeyToken%3d121fae78165ba3d4%3apt-BR%3aef502ffb-86f7-4d96-ad3a-fbb934d602ab%3a16e4e7cd%3aed16cbdc%3a19620875%3a1e771326%3aa7e79140%3a854aa0a7%3a874f8ea2%3a5a6d9d23%3a8674cba1%3ab7778d6c%3ac08e9f8a%3aa51ee93e%3a59462f1%3aaa288e2d%3a58366029
Line 6

P.S.: The error wasn't occurring in previous version.

Best regards,

Gilvan Calou

3 Answers, 1 is accepted

Sort by
0
Pavel
Telerik team
answered on 23 Jan 2009, 09:44 AM
Hi Gilvan,

Could you provide more details about the controls on the page an their interaction? You may also consider opening a support ticket and attaching to it a small runnable sample which illustrates the behavior. Thus we will examine it locally and advise you accordingly.

Greetings,
Pavel
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Gilvan
Top achievements
Rank 1
answered on 26 Jan 2009, 12:51 PM
Here is the code of page...

<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="TimesheetView.aspx.cs" 
    Inherits="Consist.EPM.WebForms.Forms.Workspace.TimesheetView" Title="Consist Enterprise Management - Timesheet" 
    Culture="auto" meta:resourcekey="PageResource1" UICulture="auto" %> 
 
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %> 
<%@ Register TagPrefix="epm" TagName="FilterByQueryUI" Src="~/Controls/FilterByQueryUI.ascx" %> 
<%@ Register TagPrefix="epm" TagName="TimesheetGridUI" Src="~/Controls/TimesheetGridUI.ascx" %> 
<%@ Register TagPrefix="epm" TagName="TimesheetGridHistoryUI" Src="~/Controls/TimesheetGridHistoryUI.ascx" %> 
<!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"
    <link rel="Stylesheet" href="../../css/epm.css" /> 
</head> 
<body leftmargin="0" topmargin="0" bgcolor="white"
 
    <script type="text/javascript"
 
        function ShowAlphaDiv() { 
            var alphaDiv = document.getElementById('alphaDiv'); 
            if (navigator.appName == "Netscape") { 
                alphaDiv.style.visibility = 'visible'
                alphaDiv.style.display = 'block'
            } 
            else { 
                alphaDiv.style.display = 'block'
            } 
        } 
     
        function HideAlphaDiv() { 
            var alphaDiv = document.getElementById('alphaDiv'); 
            if (navigator.appName == "Netscape") { 
                alphaDiv.style.visibility = 'hidden'
                alphaDiv.style.display = 'none'
            } 
            else { 
                alphaDiv.style.display = 'none'
            } 
        } 
     
        function GetSelectedDataItem() { 
            return eval('document.forms[0].<%=selectedDataItem.ClientID%>'); 
        } 
         
        function OnToolbarClicked(sender, args) { 
            var value = args.get_item().get_value(); 
 
            var ajaxManager = GetAjaxManager(); 
 
            var selItemsTmp = GetSelectedItems(); 
                                       
            if (value == "Submit") { 
                var selectedItems = GetSelectedDataItem().value; 
                 
                if (selItemsTmp != null && selItemsTmp.length > 0) { 
                    comment = GetComment(); 
                    valuevalue = value + "=" + comment; 
                    valuevalue = value + ";Items=" + selectedItems; 
                    GetSelectedDataItem().value = ""
                    ShowAlphaDiv();       
                    ajaxManager.ajaxRequest(value); 
                } 
                else { 
                    alert('<%=GetLocalResourceObject("SelectAtLeastOneReport")%>'); 
                } 
            } 
            else if (value == "ShowHistory") {                 
                if (selItemsTmp != null && selItemsTmp.length == 1) { 
                    GetSelectedDataItem().value = ""
                    ShowAlphaDiv();       
                    ajaxManager.ajaxRequest(value); 
                } 
                else { 
                    alert('<%=GetLocalResourceObject("SelectJustOneReport")%>'); 
                } 
            } 
            else { 
                GetSelectedDataItem().value = ""
                ShowAlphaDiv();       
                ajaxManager.ajaxRequest(value); 
            } 
        } 
         
        function OnDateSelected(sender, args) { 
            ShowAlphaDiv();       
             
            var ajaxManager = GetAjaxManager(); 
 
            ajaxManager.ajaxRequest("dateSelected"); 
        } 
         
        function GetAjaxManager() { 
            return $find('<%= timesheetViewAjaxManager.ClientID %>'); 
        } 
 
        function GetComment() { 
            return window.prompt('<%=GetLocalResourceObject("Comment") %>'); 
        } 
     
    </script> 
 
    <form id="form1" runat="server"
    <telerik:RadScriptManager ID="RadScriptManager1" runat="server" EnablePartialRendering="true" 
        EnableScriptGlobalization="true" EnableScriptLocalization="true"
    </telerik:RadScriptManager> 
    <telerik:RadAjaxManager ID="timesheetViewAjaxManager" runat="server" OnAjaxRequest="OnAjaxRequest"
    </telerik:RadAjaxManager> 
 
    <div id="alphaDiv" style="background: transparent url('../../Images/loading.gif') center no-repeat; position: absolute; top: 0px; left: 0px; width: 100%; height: 100%; z-index: 20; display: none;"></div> 
     
    <div style="width: 99.9%; left: 0px; top: 0px; position: absolute;"
        <telerik:RadToolBar ID="RadToolBar1" runat="server" Skin="Office2007" CssClass="ToolBar" 
            OnClientButtonClicked="OnToolbarClicked"
            <Items> 
                <telerik:RadToolBarButton runat="server" ImageUrl="~/Images/disk_blue1_17x17.PNG" 
                    Value="Save" PostBack="false" meta:resourceKey="btnSave" /> 
                <telerik:RadToolBarButton runat="server" ImageUrl="~/Images/refresh.PNG" Value="Refresh" 
                    PostBack="false" meta:resourceKey="btnRefresh" /> 
                <telerik:RadToolBarButton IsSeparator="true" /> 
                <telerik:RadToolBarButton runat="server" ImageUrl="~/Images/clock_submit.png" Value="Submit" 
                    PostBack="false" meta:resourceKey="btnSubmit" /> 
                <telerik:RadToolBarButton IsSeparator="true" /> 
                <telerik:RadToolBarButton runat="server" ImageUrl="~/Images/24hour.png" Value="ShowHistory" 
                    PostBack="false" meta:resourceKey="btnShowHistory" /> 
            </Items> 
        </telerik:RadToolBar> 
    </div> 
    <div style="margin: 10px; margin-top: 30px; position: absolute; top: 10px; width: 99%; height: 90%; 
        overflow: auto;"> 
        <asp:UpdatePanel ID="updatePanel1" ChildrenAsTriggers="true" runat="server" UpdateMode="Always"
            <ContentTemplate> 
             <asp:Table runat="server" ID="Table1" Width="98%" CellPadding="2" CellSpacing="2"
                    <asp:TableRow runat="server" ID="TableRow1"
                        <asp:TableCell runat="server" ID="TableCell1"
                            <telerik:RadDockLayout ID="RadDockLayout1" runat="server" Skin="Office2007"
                                <telerik:RadDockZone ID="RadDockZone1" runat="server" Width="98%"
                                    <telerik:RadDock ID="RadDock1" runat="server" Width="98%" meta:resourcekey="dockDetail" 
                                        Collapsed="false" DefaultCommands="ExpandCollapse" EnableDrag="false"
                                        <ContentTemplate> 
                                            <div> 
                                                <asp:Table ID="TablePeriodStart" runat="server" Width="100%" CellPadding="0" CellSpacing="5"
                                                    <asp:TableRow ID="TableRowPeriodStart" runat="server"
                                                        <asp:TableCell Width="100%" runat="server"
                                                            <fieldset runat="server" id="filterByQueryFieldSet"
                                                                <legend> 
                                                                    <asp:Label ID="lblFilterByQuery" Font-Bold="true" runat="server" meta:resourcekey="lblFilterByQuery"></asp:Label> 
                                                                </legend> 
                                                                <asp:Table ID="Table2" runat="server" CellPadding="0" CellSpacing="5" Width="100%"
                                                                    <asp:TableRow> 
                                                                        <asp:TableCell Width="120px" VerticalAlign="Top"
                                                                            <telerik:RadDatePicker ID="radPeriodStart" Height="15px" runat="server" ClientEvents-OnDateSelected="OnDateSelected"  
                                                                                style="margin-top: 0px;"/> 
                                                                        </asp:TableCell> 
                                                                        <asp:TableCell VerticalAlign="Top"
                                                                            <epm:FilterByQueryUI runat="server" ID="filterByQueryUI" /> 
                                                                        </asp:TableCell> 
                                                                    </asp:TableRow> 
                                                                </asp:Table> 
                                                            </fieldset> 
                                                        </asp:TableCell> 
                                                    </asp:TableRow> 
                                                </asp:Table> 
                                            </div> 
                                        </ContentTemplate> 
                                    </telerik:RadDock> 
                                </telerik:RadDockZone> 
                            </telerik:RadDockLayout> 
                        </asp:TableCell> 
                    </asp:TableRow> 
                    <asp:TableRow runat="server" ID="TableRow2"
                        <asp:TableCell runat="server" ID="TableCell2"
                            <epm:TimesheetGridUI runat="server" ID="timesheetGridUI" /> 
                        </asp:TableCell> 
                    </asp:TableRow> 
                    <asp:TableRow runat="server"
                        <asp:TableCell> 
                            <epm:TimesheetGridHistoryUI runat="server" ID="timesheetGridHistoryUI" /> 
                        </asp:TableCell> 
                    </asp:TableRow> 
                </asp:Table> 
            </ContentTemplate> 
        </asp:UpdatePanel> 
        <asp:HiddenField ID="selectedDataItem" runat="server" Value="" /> 
    </div> 
    </form> 
</body> 
</html> 
 

... and the code of "TimesheetGridUI" control that is used in the page:

<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="TimesheetGridUI.ascx.cs" 
    Inherits="Consist.EPM.WebForms.Controls.TimesheetGridUI" %> 
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %> 
 
<telerik:RadCodeBlock runat="server"
 
    <script type="text/javascript"
        function OnRowSelected(sender, args) { 
            var selItems = GetSelectedDataItem(); 
            var selectedActivityID = args.getDataKeyValue("Activity_ID"); 
            var selItemsselItemsArray = selItems.value.split(","); 
            var alreadySelected = false
 
            for (var i = 0; i < selItemsArray.length; i++) { 
                if (selItemsArray[i] == selectedActivityID) { 
                    alreadySelected = true
                    break; 
                } 
            } 
 
            if (!alreadySelected) { 
                if (selItems.value != "") { 
                    selItemsselItems.value = selItems.value + "," + selectedActivityID; 
                } 
                else { 
                    selItems.value = selectedActivityID
                } 
             
                GetSelectedActivityIDs().value = selItems.value; 
            } 
        } 
 
        function OnRowDeselected(sender, args) { 
            var selItems = GetSelectedDataItem().value.split(","); 
            var curItems = ""
             
            for (var i = 0; i < selItems.length; i++) { 
                if (selItems[i] != args.getDataKeyValue("Activity_ID")) { 
                    if (curItems != "") { 
                        curItemscurItems = curItems + "," + selItems[i]; 
                    } 
                    else { 
                        curItems = selItems[i]; 
                    } 
                } 
            } 
            GetSelectedDataItem().value = curItems
            GetSelectedActivityIDs().value = curItems
        } 
         
        function GetGrid() { 
            return $find('<%=Grid.ClientID%>'); 
        } 
         
        function GetSelectedActivityIDs() { 
            return eval('document.forms[0].<%=selectedItems.ClientID%>'); 
        } 
 
         
        function GetSelectedItems() { 
            var grid = GetGrid(); 
            var tableView = grid.get_masterTableView(); 
            var selItems = tableView.get_selectedItems(); 
            return selItems; 
        } 
    </script> 
</telerik:RadCodeBlock> 
 
<telerik:RadAjaxLoadingPanel ID="TimesheetLoadingPanel" runat="server" IsSticky="false" 
    Transparency="5"
    <img alt="Loading..." src='<%= RadAjaxLoadingPanel.GetWebResourceUrl(Page, "Telerik.Web.UI.Skins.Default.Ajax.loading.gif") %>' 
        style="border: 0; margin-top: 0px;" /> 
</telerik:RadAjaxLoadingPanel> 
<telerik:RadAjaxPanel ID="TimesheetAjaxPanel" runat="server" LoadingPanelID="TimesheetLoadingPanel"
    <telerik:RadGrid ID="Grid" runat="server" Skin="Office2007" HeaderStyle-Font-Size="X-Small" 
        FooterStyle-Font-Size="X-Small" AutoGenerateColumns="False" AllowPaging="false" 
        AllowMultiRowSelection="True" OnNeedDataSource="Grid_NeedDataSource" ShowGroupPanel="false" 
        GridLines="None" ShowFooter="true" FooterStyle-BackColor="WhiteSmoke" FooterStyle-Font-Bold="true" 
        Width="100%" EnableViewState="True" FooterStyle-ForeColor="Black" OnItemDataBound="Grid_ItemDataBound"  
        ShowStatusBar="true" OnItemCreated="Grid_ItemCreated" meta:resourceKey="GridResource1"
        <ClientSettings AllowColumnsReorder="false" ReorderColumnsOnClient="false"
            <ClientEvents OnRowSelected="OnRowSelected" OnRowDeselected="OnRowDeselected" /> 
            <Selecting AllowRowSelect="True" /> 
            <Resizing AllowColumnResize="false" /> 
            <Scrolling AllowScroll="false" /> 
        </ClientSettings> 
        <MasterTableView TableLayout="Fixed" CommandItemDisplay="Top"
            <CommandItemTemplate> 
                <div style="padding: 10px 0px;"
                    <asp:Table ID="Table1" runat="server" CellPadding="2" CellSpacing="2" Width="100%"
                        <asp:TableRow Width="100%"
                            <asp:TableCell> 
                                <asp:Label ID="lblPeriodInterval" Font-Bold="true" runat="server" meta:resourcekey="lblPeriodInterval"
                                </asp:Label> 
                                <asp:Literal ID="ltIntervalComma" runat="server" Text=": "></asp:Literal> 
                                <asp:Label ID="lblPeriodStart" Font-Bold="true" runat="server"></asp:Label> 
                                <asp:Literal ID="ltlIntervalSeparator" runat="server" Text=" - "></asp:Literal> 
                                <asp:Label ID="lblPeriodFinish" Font-Bold="true" runat="server"></asp:Label> 
                            </asp:TableCell> 
                        </asp:TableRow> 
                    </asp:Table> 
                </div> 
            </CommandItemTemplate> 
            <Columns> 
            </Columns> 
        </MasterTableView> 
    </telerik:RadGrid>  
    <asp:HiddenField ID="selectedItems" runat="server" Value="" /> 
</telerik:RadAjaxPanel> 
 


0
Pavel
Telerik team
answered on 28 Jan 2009, 03:21 PM
Hi Gilvan,

I am afraid that the information is still not sufficient to determine the cause for the error. I think it will be best if you prepare a small runnable sample which exhibits the error and attach it to a regular support ticket.

Kind regards,
Pavel
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
General Discussions
Asked by
Gilvan
Top achievements
Rank 1
Answers by
Pavel
Telerik team
Gilvan
Top achievements
Rank 1
Share this question
or