or
public DataSet HelloWorld()
{
DataTable datatable = (DataTable)Session["oInstallationInfo"];
DataSet ds = new DataSet();
ds.Tables.Add(datatable);
return ds;
}
and
in aspx page
function
ReceiveServerData(rValue)
{
xtenzasolutions.WebService1.HelloWorld(updateGrid,OnError);
alert(rValue);
}
function
OnError(result)
{
alert(
"Error : "+result.get_message());
}
function updateGrid(result,userContext)
{
debugger;
alert(result);
var tableview= $find("<%= rgDetails.ClientID %>").get_masterTableView();
tableview.set_dataSource(result);
tableview.dataBind();
}
I m getting the error 'Circular Reference was detected'. Please find the error page with this message.
Please give any suggestions.
Thanks in advance.
Regards,
Feroz
| <%@ Page Title="" Language="C#" MasterPageFile="~/Admin/Admin.master" AutoEventWireup="true" CodeBehind="CompanySummary.aspx.cs" Inherits="MaxApplication.Admin.CompanySummary" %> |
| <%@ Register assembly="Telerik.Web.UI" namespace="Telerik.Web.UI" tagprefix="telerik" %> |
| <asp:Content ID="Content1" ContentPlaceHolderID="MainContent" runat="server"> |
| <h1> |
| <asp:Label ID="lblCompanyName" runat="server" Text=""></asp:Label> |
| </h1> |
| <asp:SqlDataSource ID="SqlDataSourceCompany" runat="server" |
| ConnectionString="<%$ ConnectionStrings:MaxSQLConnectionString %>" |
| SelectCommand="SELECT * FROM [company] WHERE ([Comp_CompanyId] = @Comp_CompanyId)" |
| ConflictDetection="CompareAllValues" |
| DeleteCommand="DELETE FROM [company] WHERE [Comp_CompanyId] = @original_Comp_CompanyId AND (([Comp_Name] = @original_Comp_Name) OR ([Comp_Name] IS NULL AND @original_Comp_Name IS NULL)) AND (([Comp_UserId] = @original_Comp_UserId) OR ([Comp_UserId] IS NULL AND @original_Comp_UserId IS NULL)) AND (([Comp_Deleted] = @original_Comp_Deleted) OR ([Comp_Deleted] IS NULL AND @original_Comp_Deleted IS NULL)) AND (([Comp_CreatedDate] = @original_Comp_CreatedDate) OR ([Comp_CreatedDate] IS NULL AND @original_Comp_CreatedDate IS NULL)) AND (([Comp_UpdatedDate] = @original_Comp_UpdatedDate) OR ([Comp_UpdatedDate] IS NULL AND @original_Comp_UpdatedDate IS NULL)) AND (([Comp_Type] = @original_Comp_Type) OR ([Comp_Type] IS NULL AND @original_Comp_Type IS NULL)) AND (([Comp_PhoneNumber] = @original_Comp_PhoneNumber) OR ([Comp_PhoneNumber] IS NULL AND @original_Comp_PhoneNumber IS NULL)) AND (([Comp_Address1] = @original_Comp_Address1) OR ([Comp_Address1] IS NULL AND @original_Comp_Address1 IS NULL)) AND (([Comp_Address2] = @original_Comp_Address2) OR ([Comp_Address2] IS NULL AND @original_Comp_Address2 IS NULL)) AND (([Comp_Address3] = @original_Comp_Address3) OR ([Comp_Address3] IS NULL AND @original_Comp_Address3 IS NULL)) AND (([Comp_Address4] = @original_Comp_Address4) OR ([Comp_Address4] IS NULL AND @original_Comp_Address4 IS NULL)) AND (([Comp_City] = @original_Comp_City) OR ([Comp_City] IS NULL AND @original_Comp_City IS NULL)) AND (([Comp_Postcode] = @original_Comp_Postcode) OR ([Comp_Postcode] IS NULL AND @original_Comp_Postcode IS NULL)) AND (([Comp_Country] = @original_Comp_Country) OR ([Comp_Country] IS NULL AND @original_Comp_Country IS NULL)) AND (([Comp_EmailAddress] = @original_Comp_EmailAddress) OR ([Comp_EmailAddress] IS NULL AND @original_Comp_EmailAddress IS NULL))" |
| InsertCommand="INSERT INTO [company] ([Comp_Name], [Comp_UserId], [Comp_Deleted], [Comp_CreatedDate], [Comp_UpdatedDate], [Comp_Type], [Comp_PhoneNumber], [Comp_Address1], [Comp_Address2], [Comp_Address3], [Comp_Address4], [Comp_City], [Comp_Postcode], [Comp_Country], [Comp_EmailAddress]) VALUES (@Comp_Name, @Comp_UserId, @Comp_Deleted, @Comp_CreatedDate, @Comp_UpdatedDate, @Comp_Type, @Comp_PhoneNumber, @Comp_Address1, @Comp_Address2, @Comp_Address3, @Comp_Address4, @Comp_City, @Comp_Postcode, @Comp_Country, @Comp_EmailAddress)" |
| OldValuesParameterFormatString="original_{0}" |
| UpdateCommand="UPDATE [company] SET [Comp_Name] = @Comp_Name, [Comp_UserId] = @Comp_UserId, [Comp_Deleted] = @Comp_Deleted, [Comp_CreatedDate] = @Comp_CreatedDate, [Comp_UpdatedDate] = @Comp_UpdatedDate, [Comp_Type] = @Comp_Type, [Comp_PhoneNumber] = @Comp_PhoneNumber, [Comp_Address1] = @Comp_Address1, [Comp_Address2] = @Comp_Address2, [Comp_Address3] = @Comp_Address3, [Comp_Address4] = @Comp_Address4, [Comp_City] = @Comp_City, [Comp_Postcode] = @Comp_Postcode, [Comp_Country] = @Comp_Country, [Comp_EmailAddress] = @Comp_EmailAddress WHERE [Comp_CompanyId] = @original_Comp_CompanyId AND (([Comp_Name] = @original_Comp_Name) OR ([Comp_Name] IS NULL AND @original_Comp_Name IS NULL)) AND (([Comp_UserId] = @original_Comp_UserId) OR ([Comp_UserId] IS NULL AND @original_Comp_UserId IS NULL)) AND (([Comp_Deleted] = @original_Comp_Deleted) OR ([Comp_Deleted] IS NULL AND @original_Comp_Deleted IS NULL)) AND (([Comp_CreatedDate] = @original_Comp_CreatedDate) OR ([Comp_CreatedDate] IS NULL AND @original_Comp_CreatedDate IS NULL)) AND (([Comp_UpdatedDate] = @original_Comp_UpdatedDate) OR ([Comp_UpdatedDate] IS NULL AND @original_Comp_UpdatedDate IS NULL)) AND (([Comp_Type] = @original_Comp_Type) OR ([Comp_Type] IS NULL AND @original_Comp_Type IS NULL)) AND (([Comp_PhoneNumber] = @original_Comp_PhoneNumber) OR ([Comp_PhoneNumber] IS NULL AND @original_Comp_PhoneNumber IS NULL)) AND (([Comp_Address1] = @original_Comp_Address1) OR ([Comp_Address1] IS NULL AND @original_Comp_Address1 IS NULL)) AND (([Comp_Address2] = @original_Comp_Address2) OR ([Comp_Address2] IS NULL AND @original_Comp_Address2 IS NULL)) AND (([Comp_Address3] = @original_Comp_Address3) OR ([Comp_Address3] IS NULL AND @original_Comp_Address3 IS NULL)) AND (([Comp_Address4] = @original_Comp_Address4) OR ([Comp_Address4] IS NULL AND @original_Comp_Address4 IS NULL)) AND (([Comp_City] = @original_Comp_City) OR ([Comp_City] IS NULL AND @original_Comp_City IS NULL)) AND (([Comp_Postcode] = @original_Comp_Postcode) OR ([Comp_Postcode] IS NULL AND @original_Comp_Postcode IS NULL)) AND (([Comp_Country] = @original_Comp_Country) OR ([Comp_Country] IS NULL AND @original_Comp_Country IS NULL)) AND (([Comp_EmailAddress] = @original_Comp_EmailAddress) OR ([Comp_EmailAddress] IS NULL AND @original_Comp_EmailAddress IS NULL))"> |
| <SelectParameters> |
| <asp:QueryStringParameter Name="Comp_CompanyId" |
| QueryStringField="Comp_CompanyId" Type="Int32" /> |
| </SelectParameters> |
| <DeleteParameters> |
| <asp:Parameter Name="original_Comp_CompanyId" Type="Int32" /> |
| <asp:Parameter Name="original_Comp_Name" Type="String" /> |
| <asp:Parameter Name="original_Comp_UserId" Type="String" /> |
| <asp:Parameter Name="original_Comp_Deleted" Type="Boolean" /> |
| <asp:Parameter Name="original_Comp_CreatedDate" Type="DateTime" /> |
| <asp:Parameter Name="original_Comp_UpdatedDate" Type="DateTime" /> |
| <asp:Parameter Name="original_Comp_Type" Type="String" /> |
| <asp:Parameter Name="original_Comp_PhoneNumber" Type="String" /> |
| <asp:Parameter Name="original_Comp_Address1" Type="String" /> |
| <asp:Parameter Name="original_Comp_Address2" Type="String" /> |
| <asp:Parameter Name="original_Comp_Address3" Type="String" /> |
| <asp:Parameter Name="original_Comp_Address4" Type="String" /> |
| <asp:Parameter Name="original_Comp_City" Type="String" /> |
| <asp:Parameter Name="original_Comp_Postcode" Type="String" /> |
| <asp:Parameter Name="original_Comp_Country" Type="String" /> |
| <asp:Parameter Name="original_Comp_EmailAddress" Type="String" /> |
| </DeleteParameters> |
| <UpdateParameters> |
| <asp:Parameter Name="Comp_Name" Type="String" /> |
| <asp:Parameter Name="Comp_UserId" Type="String" /> |
| <asp:Parameter Name="Comp_Deleted" Type="Boolean" /> |
| <asp:Parameter Name="Comp_CreatedDate" Type="DateTime" /> |
| <asp:Parameter Name="Comp_UpdatedDate" Type="DateTime" /> |
| <asp:Parameter Name="Comp_Type" Type="String" /> |
| <asp:Parameter Name="Comp_PhoneNumber" Type="String" /> |
| <asp:Parameter Name="Comp_Address1" Type="String" /> |
| <asp:Parameter Name="Comp_Address2" Type="String" /> |
| <asp:Parameter Name="Comp_Address3" Type="String" /> |
| <asp:Parameter Name="Comp_Address4" Type="String" /> |
| <asp:Parameter Name="Comp_City" Type="String" /> |
| <asp:Parameter Name="Comp_Postcode" Type="String" /> |
| <asp:Parameter Name="Comp_Country" Type="String" /> |
| <asp:Parameter Name="Comp_EmailAddress" Type="String" /> |
| <asp:Parameter Name="original_Comp_CompanyId" Type="Int32" /> |
| <asp:Parameter Name="original_Comp_Name" Type="String" /> |
| <asp:Parameter Name="original_Comp_UserId" Type="String" /> |
| <asp:Parameter Name="original_Comp_Deleted" Type="Boolean" /> |
| <asp:Parameter Name="original_Comp_CreatedDate" Type="DateTime" /> |
| <asp:Parameter Name="original_Comp_UpdatedDate" Type="DateTime" /> |
| <asp:Parameter Name="original_Comp_Type" Type="String" /> |
| <asp:Parameter Name="original_Comp_PhoneNumber" Type="String" /> |
| <asp:Parameter Name="original_Comp_Address1" Type="String" /> |
| <asp:Parameter Name="original_Comp_Address2" Type="String" /> |
| <asp:Parameter Name="original_Comp_Address3" Type="String" /> |
| <asp:Parameter Name="original_Comp_Address4" Type="String" /> |
| <asp:Parameter Name="original_Comp_City" Type="String" /> |
| <asp:Parameter Name="original_Comp_Postcode" Type="String" /> |
| <asp:Parameter Name="original_Comp_Country" Type="String" /> |
| <asp:Parameter Name="original_Comp_EmailAddress" Type="String" /> |
| </UpdateParameters> |
| <InsertParameters> |
| <asp:Parameter Name="Comp_Name" Type="String" /> |
| <asp:Parameter Name="Comp_UserId" Type="String" /> |
| <asp:Parameter Name="Comp_Deleted" Type="Boolean" /> |
| <asp:Parameter Name="Comp_CreatedDate" Type="DateTime" /> |
| <asp:Parameter Name="Comp_UpdatedDate" Type="DateTime" /> |
| <asp:Parameter Name="Comp_Type" Type="String" /> |
| <asp:Parameter Name="Comp_PhoneNumber" Type="String" /> |
| <asp:Parameter Name="Comp_Address1" Type="String" /> |
| <asp:Parameter Name="Comp_Address2" Type="String" /> |
| <asp:Parameter Name="Comp_Address3" Type="String" /> |
| <asp:Parameter Name="Comp_Address4" Type="String" /> |
| <asp:Parameter Name="Comp_City" Type="String" /> |
| <asp:Parameter Name="Comp_Postcode" Type="String" /> |
| <asp:Parameter Name="Comp_Country" Type="String" /> |
| <asp:Parameter Name="Comp_EmailAddress" Type="String" /> |
| </InsertParameters> |
| </asp:SqlDataSource> |
| <telerik:RadFormDecorator ID="RadFormDecorator1" runat="server" DecoratedControls="All"/> |
| <telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" Runat="server" |
| Skin="Default"> |
| </telerik:RadAjaxLoadingPanel> |
| <telerik:RadScriptManager ID="RadScriptManager1" Runat="server"> |
| </telerik:RadScriptManager> |
| <telerik:RadAjaxPanel ID="RadAjaxPanel1" runat="server" height="200px" |
| width="100%"> |
| <telerik:RadTabStrip ID="RadTabStrip1" runat="server" |
| MultiPageID="RadMultiPage1" SelectedIndex="0"> |
| <Tabs> |
| <telerik:RadTab runat="server" Text="Summary" Selected="True"> |
| </telerik:RadTab> |
| <telerik:RadTab runat="server" Text="Jobs"> |
| </telerik:RadTab> |
| <telerik:RadTab runat="server" Text="Invoices"> |
| </telerik:RadTab> |
| </Tabs> |
| </telerik:RadTabStrip> |
| <telerik:RadMultiPage ID="RadMultiPage1" Runat="server" SelectedIndex="0"> |
| <telerik:RadPageView ID="RadPageView1" runat="server"> |
| <div class="smallwindow"> |
| <h2>Summary</h2> |
| <asp:FormView ID="FormView1" runat="server" DataKeyNames="Comp_CompanyId" |
| DataSourceID="SqlDataSourceCompany" Width="100%" onitemcommand="FormView1_ItemCommand" |
| oniteminserting="FormView1_ItemInserting" onload="FormView1_Load" |
| onitemupdated="FormView1_ItemUpdated"> |
| <EditItemTemplate> |
| <table style="width: 100%" cellpadding="2"> |
| <tr> |
| <td > |
| Name |
| <br /> |
| <asp:TextBox ID="Comp_NameTextBox" runat="server" |
| Text='<%# Bind("Comp_Name") %>' /> |
| </td> |
| <td> |
| Email<br /> |
| <asp:TextBox ID="Comp_EmailAddressTextBox" runat="server" |
| Text='<%# Bind("Comp_EmailAddress") %>' /> |
| </td> |
| <td> |
| Phone<br /> |
| <asp:TextBox ID="Comp_PhoneNumberTextBox" runat="server" |
| Text='<%# Bind("Comp_PhoneNumber") %>' /> |
| </td> |
| </tr> |
| <tr> |
| <td> |
| </td> |
| <td> |
| </td> |
| <td> |
| </td> |
| </tr> |
| <tr> |
| <td> |
| Address1<br /> |
| <asp:TextBox ID="Comp_Address1TextBox" runat="server" |
| Text='<%# Bind("Comp_Address1") %>' /> |
| </td> |
| <td> |
| Address 2<br /> |
| <asp:TextBox ID="Comp_Address2TextBox" runat="server" |
| Text='<%# Bind("Comp_Address2") %>' /> |
| </td> |
| <td> |
| Address 3<br /> |
| <asp:TextBox ID="Comp_Address3TextBox" runat="server" |
| Text='<%# Bind("Comp_Address3") %>' /> |
| </td> |
| </tr> |
| <tr> |
| <td> |
| City<br /> |
| <asp:TextBox ID="Comp_CityTextBox" runat="server" |
| Text='<%# Bind("Comp_City") %>' /> |
| </td> |
| <td> |
| Post Code<br /> |
| <asp:TextBox ID="Comp_PostcodeTextBox" runat="server" |
| Text='<%# Bind("Comp_Postcode") %>' /> |
| </td> |
| <td> |
| </td> |
| </tr> |
| </table> |
| <asp:HiddenField ID="Comp_Type" runat="server" |
| Value='<%# Eval("Comp_Type") %>' /> |
| <br /> |
| <asp:LinkButton ID="UpdateButton" runat="server" CausesValidation="True" |
| CommandName="Update" Text="Update" /> |
| <asp:LinkButton ID="UpdateCancelButton" runat="server" |
| CausesValidation="False" CommandName="Cancel" Text="Cancel" /> |
| </EditItemTemplate> |
| <InsertItemTemplate> |
| <table style="width: 100%" cellpadding="2"> |
| <tr> |
| <td > |
| Name |
| <br /> |
| <asp:TextBox ID="Comp_NameTextBox" runat="server" |
| Text='<%# Bind("Comp_Name") %>' /> |
| </td> |
| <td> |
| Email<br /> |
| <asp:TextBox ID="Comp_EmailAddressTextBox" runat="server" |
| Text='<%# Bind("Comp_EmailAddress") %>' /> |
| </td> |
| <td> |
| Phone<br /> |
| <asp:TextBox ID="Comp_PhoneNumberTextBox" runat="server" |
| Text='<%# Bind("Comp_PhoneNumber") %>' /> |
| </td> |
| </tr> |
| <tr> |
| <td> |
| </td> |
| <td> |
| </td> |
| <td> |
| </td> |
| </tr> |
| <tr> |
| <td> |
| Address1<br /> |
| <asp:TextBox ID="Comp_Address1TextBox" runat="server" |
| Text='<%# Bind("Comp_Address1") %>' /> |
| </td> |
| <td> |
| Address 2<br /> |
| <asp:TextBox ID="Comp_Address2TextBox" runat="server" |
| Text='<%# Bind("Comp_Address2") %>' /> |
| </td> |
| <td> |
| Address 3<br /> |
| <asp:TextBox ID="Comp_Address3TextBox" runat="server" |
| Text='<%# Bind("Comp_Address3") %>' /> |
| </td> |
| </tr> |
| <tr> |
| <td> |
| City<br /> |
| <asp:TextBox ID="Comp_CityTextBox" runat="server" |
| Text='<%# Bind("Comp_City") %>' /> |
| </td> |
| <td> |
| Post Code<br /> |
| <asp:TextBox ID="Comp_PostcodeTextBox" runat="server" |
| Text='<%# Bind("Comp_Postcode") %>' /> |
| </td> |
| <td> |
| </td> |
| </tr> |
| </table> |
| <asp:HiddenField ID="Comp_Type" runat="server" |
| Value='<%# Eval("Comp_Type") %>' /> |
| <br /> |
| <asp:LinkButton ID="InsertButton" runat="server" CausesValidation="True" |
| CommandName="Insert" Text="Insert" /> |
| <asp:LinkButton ID="InsertCancelButton" runat="server" |
| CausesValidation="False" CommandName="Cancel" Text="Cancel" /> |
| </InsertItemTemplate> |
| <ItemTemplate> |
| <table style="width: 100%" cellpadding="2"> |
| <tr> |
| <td > |
| Name |
| <br /> |
| <asp:Label ID="Comp_NameLabel" runat="server" Text='<%# Bind("Comp_Name") %>' /> |
| <br /> |
| </td> |
| <td> |
| Email<br /> |
| <asp:Label ID="Comp_EmailAddressLabel" runat="server" |
| Text='<%# Bind("Comp_EmailAddress") %>' /> |
| </td> |
| <td> |
| Phone<br /> |
| <asp:Label ID="Comp_PhoneNumberLabel" runat="server" |
| Text='<%# Bind("Comp_PhoneNumber") %>' /> |
| </td> |
| </tr> |
| <tr> |
| <td> |
| </td> |
| <td> |
| </td> |
| <td> |
| </td> |
| </tr> |
| <tr> |
| <td> |
| Address1<br /> |
| <asp:Label ID="Comp_Address1Label" runat="server" |
| Text='<%# Bind("Comp_Address1") %>' /> |
| </td> |
| <td> |
| Address 2<br /> |
| <asp:Label ID="Comp_Address2Label" runat="server" |
| Text='<%# Bind("Comp_Address2") %>' /> |
| </td> |
| <td> |
| Address 3<br /> |
| <asp:Label ID="Comp_Address3Label" runat="server" |
| Text='<%# Bind("Comp_Address3") %>' /> |
| </td> |
| </tr> |
| <tr> |
| <td> |
| City<br /> |
| <asp:Label ID="Comp_CityLabel" runat="server" Text='<%# Bind("Comp_City") %>' /> |
| </td> |
| <td> |
| Post Code<br /> |
| <asp:Label ID="Comp_PostcodeLabel" runat="server" |
| Text='<%# Bind("Comp_Postcode") %>' /> |
| </td> |
| <td> |
| </td> |
| </tr> |
| </table> |
| <asp:LinkButton ID="EditButton" runat="server" CausesValidation="False" |
| CommandName="Edit" Text="Edit" /> |
| </ItemTemplate> |
| </asp:FormView> |
| </div> |
| </telerik:RadPageView> |
| <telerik:RadPageView ID="RadPageView2" runat="server"> |
| <div class="smallwindow"><h2>Jobs</h2></div> |
| </telerik:RadPageView> |
| <telerik:RadPageView ID="RadPageView3" runat="server"> |
| <div class="smallwindow"><h2>Invoices</h2></div> |
| </telerik:RadPageView> |
| </telerik:RadMultiPage> |
| </telerik:RadAjaxPanel> |
| </asp:Content> |
| <telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server" /> |
| <telerik:RadSplitter runat="server" ID="RadSplitter1" PanesBorderSize="0" Width="100%" Height=700px |
| > |
| <telerik:RadPane runat="Server" ID="leftPane" Width="20%" MinWidth="200" |
| Scrolling="Y" |
| OnClientResizing="hideScrollableArea" OnClientResized="showScrollableArea" |
| OnClientExpanding="hideScrollableArea" OnClientExpanded="showScrollableArea" |
| OnClientCollapsing="hideScrollableArea" OnClientCollapsed="showScrollableArea" |
| > |
| <div class="calendar-container"> |
| <telerik:RadCalendar runat="server" Width="100%" ID="RadCalendar1" AutoPostBack="true" |
| EnableMultiSelect="false" DayNameFormat="FirstTwoLetters" EnableNavigation="true" |
| EnableMonthYearFastNavigation="false" OnSelectionChanged="RadCalendar1_SelectionChanged" |
| FastNavigationStep=12 |
| > |
| </telerik:RadCalendar> |
| </div> |
| <telerik:RadPanelBar runat="server" ID="PanelBar" Width="100%" > |
| <Items> |
| <telerik:RadPanelItem id="RadPanelItem1" runat="server" Text="Eventos" Expanded="true"> |
| <Items> |
| <telerik:RadPanelItem runat="server" Width="100%"> |
| <ItemTemplate> |
| <div class="rpCheckBoxPanel"> |
| <asp:Repeater runat="server" ID="rep_tipo_evento_trab">... </asp:Repeater> |
| </div> |
| </ItemTemplate> |
| </telerik:RadPanelItem> |
| </Items> |
| </telerik:RadPanelItem> |
| </Items> |
| </telerik:RadPanelBar> |
| </telerik:RadPane> |
| <telerik:RadSplitBar runat="server" ID="RadSplitBar2" CollapseMode="Forward" /> |
| <telerik:RadPane runat="Server" ID="rightPane" Scrolling=Y Width="80%" > |
| <telerik:RadScheduler runat="server" ID="RadScheduler1" Height=700px |
| ... |
| OverflowBehavior="Expand" |
| ... > |
| </telerik:RadScheduler> |
| </telerik:RadPane> |
| </telerik:RadSplitter> |
| cb.Attributes.Add("onkeydown", string.Format("ControlKeyPress(this,event,'{0}',{1});", "PurchaseComboBox", dataItem.ItemIndex)); |
| function ControlKeyPress(sender, args, control, index) { |
| if (args.keyCode == 13) { |
| var dataItems = createGrid.get_masterTableView().get_dataItems(); |
| if (index < dataItems.length) { |
| var nextControl = dataItems[index + 1].findControl(control); |
| var input; |
| if (typeof (nextControl.get_inputDomElement) == "undefined") { |
| input = nextControl; |
| } else { |
| input = nextControl.get_inputDomElement(); |
| } |
| window.setTimeout(function() { input.focus(); }, 0); |
| } |
| } |
| } |