Dear Infragistics Gurus! I did not find my problem via search. Please, give some advice, if possible.
We have an ASP page Data.aspx with UltraWebGrid (based on master page). Everything is fine, if opened only one page Data.aspx. But when second page Data.aspx is opened UltraWebGrid fails on any action. For example when one tries to change grid page - it fails in ig_WebGrid_xml.js: function igtbl_onReadyStateChange() (says that object "_ctl1_CHP_uwgDictionary" not found or ICallBackEventHandler not implemented). I have checked page code - element _ctl1_CHP_uwgDictionary exists!!! The difference between two pages Data.aspx is in naming of UltraWebGrid: at the first page it is _ctl0_CHP_uwgDictionary (works fine), at the second - _ctl1_CHP_uwgDictionary (does not work).
Here is two pieces of code:
Master Page looks like:
<%@ Master Language="C#" AutoEventWireup="true" Inherits="Core.WebForms.ToolbarPage" Codefile="ToolbarPage.master.cs" %>
<%@ Register TagPrefix="igtbar" Namespace="Infragistics.WebUI.UltraWebToolbar" Assembly="Infragistics2.WebUI.UltraWebToolbar.v8.3, Version=8.3.20083.1009, Culture=neutral, PublicKeyToken=7dd5c3163f2cd0cb" %>
<head id="Head1" runat="server">
<title>
<asp:Literal runat="server" id="DictTitle" />
</title>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1251"/>
<link rel="SHORTCUT ICON" href="favicon.ico"/>
<script type="text/javascript" id="igClientScript">
<body onload="SetContextMenuToToolbar(); InitPage();">
<form id="DictionaryMasterForm" runat="server">
<div>
<table style="position: absolute; left:0px; top:0px; height:100%;width:100%">
<tr>
<td valign="top" align="left">
<div id="toolbars">
<igtbar:ultrawebtoolbar ItemWidthDefault="20px" runat="server" id="toolBar" OnInit="toolBar_Init">
<ClientSideEvents Click="OnToolbarItemMouseClick" MouseOver="igtoolbar_MouseOver" />
</igtbar:ultrawebtoolbar>
</div>
</td>
<td></td>
</tr>
<tr style="height:100%">
<td>
<asp:ContentPlaceHolder id="CPH" runat="server">
</asp:ContentPlaceHolder>
<tr style ="height:0">
<div id="RootPath">
<asp:Label ID="Label1" runat="server" Text="Label"></asp:Label>
<div id="Toolbar1">
<asp:Label ID="Label2" runat="server" Text="" ></asp:Label>
<div id="Toolbar2">
<asp:Label ID="Label3" runat="server" Text="" ></asp:Label>
</table>
</html>
Data.aspx looks like
<%@ Page Language="C#" AutoEventWireup="true" StylesheetTheme="CommonTheme" MasterPageFile="~/ToolbarPage.master" CodeFile="Data.aspx.cs" Inherits="Dictionary_Data" Culture="ru-RU"%>
<%@ Register TagPrefix="igmisc" Namespace="Infragistics.WebUI.Misc" Assembly="Infragistics2.WebUI.Misc.v8.3, Version=8.3.20083.1009, Culture=neutral, PublicKeyToken=7dd5c3163f2cd0cb" %>
<%@ Register TagPrefix="igtbl" Namespace="Infragistics.WebUI.UltraWebGrid" Assembly="Infragistics2.WebUI.UltraWebGrid.v8.3, Version=8.3.20083.1009, Culture=neutral, PublicKeyToken=7dd5c3163f2cd0cb" %>
<%@ MasterType VirtualPath="~/ToolbarPage.master" %>
<asp:Content ID="Content2" ContentPlaceHolderID="CPH" Runat="Server">
<table style="width: 100%; height: 100%">
<igtbl:UltraWebGrid ID="uwgDictionary" runat="server" Browser="Xml"
Height="230px" Width="100%" onupdatecell="uwgDictionary_UpdateCell" OnInitializeRow = "uwg_InitializeRow">
<DisplayLayout AllowColSizingDefault="Free" AllowSortingDefault="OnClient" BorderCollapseDefault="Separate"
CellClickActionDefault="RowSelect" HeaderClickActionDefault="SortSingle" JavaScriptFileName=""
JavaScriptFileNameCommon="" LoadOnDemand="Xml"
RowHeightDefault="20px" StationaryMargins="Header" StationaryMarginsOutlookGroupBy="True"
TableLayout="Fixed" UseFixedHeaders="True" Version="4.00" ViewType="OutlookGroupBy" AllowColumnMovingDefault="OnServer" NoDataMessage="Нет данных">
<GroupByBox Prompt="Перетащите сюда заголовок колонки для группировки этой колонки">
<BoxStyle BackColor="ActiveBorder" BorderColor="Window">
</BoxStyle>
</GroupByBox>
<GroupByRowStyleDefault BackColor="Control" BorderColor="Window">
</GroupByRowStyleDefault>
<FooterStyleDefault BackColor="LightGray" BorderStyle="Solid" BorderWidth="1px">
<BorderDetails ColorLeft="White" ColorTop="White" WidthLeft="1px" WidthTop="1px" />
</FooterStyleDefault>
<RowStyleDefault BackColor="White" BorderColor="Gray" BorderStyle="Solid" BorderWidth="1px">
<BorderDetails ColorLeft="White" ColorTop="White" />
<Padding Left="3px" />
</RowStyleDefault>
<FilterOptionsDefault AllowRowFiltering="OnClient" FilterIcon="True" FilterUIType="FilterRow">
<FilterDropDownStyle BackColor="White" BorderColor="Silver" BorderStyle="Solid" BorderWidth="1px"
CustomRules="overflow:auto;" Font-Names="Verdana,Arial,Helvetica,sans-serif"
Font-Size="11px" Height="300px">
<Padding Left="2px" />
</FilterDropDownStyle>
<FilterHighlightRowStyle BackColor="#151C55" ForeColor="#C0C0FF">
</FilterHighlightRowStyle>
<FilterOperandDropDownStyle BackColor="White" BorderColor="Silver" BorderStyle="Solid"
BorderWidth="1px" CustomRules="overflow:auto;" Font-Names="Verdana,Arial,Helvetica,sans-serif"
Font-Size="11px">
</FilterOperandDropDownStyle>
</FilterOptionsDefault>
<HeaderStyleDefault BackColor="LightGray" BorderStyle="Solid" HorizontalAlign="Center">
</HeaderStyleDefault>
<EditCellStyleDefault BorderStyle="None" BorderWidth="0px">
</EditCellStyleDefault>
<FrameStyle BorderColor="#8080FF" BorderStyle="Solid" BorderWidth="1px" Font-Names="Verdana"
Font-Size="8pt" Height="230px" Width="100%">
</FrameStyle>
<Pager AllowPaging="True" PageSize="10" StyleMode="CustomLabels">
<PagerStyle BackColor="LightGray" BorderStyle="Solid" BorderWidth="1px">
</PagerStyle>
</Pager>
<AddNewBox>
<BoxStyle BackColor="LightGray" BorderStyle="Solid" BorderWidth="1px">
</AddNewBox>
<ActivationObject BorderColor="" BorderWidth="">
</ActivationObject>
<ClientSideEvents AfterColumnSizeChangeHandler="uwgDictionary_AfterColumnSizeChangeHandler" AfterXmlHttpResponseProcessed="GridAfterXmlHttpResponseProcessed"
AfterCellUpdateHandler="ParseSelectRow"
AfterEnterEditModeHandler="ParseSelectRow"
DblClickHandler="DblClick"
/>
</DisplayLayout>
</igtbl:UltraWebGrid>
</asp:Content>