<div id="dvPopUp" title="PopUp" style="display:none;"> <asp:UpdatePanel runat="server" ID="upLetter" UpdateMode="Conditional"> <ContentTemplate> <User Control with Rad Editor/>
</ContentTemplate> </asp:UpdatePanel>
</div>
public void RadListBox1_Transferred(object sender, RadListBoxTransferredEventArgs e)
{
RadListBox1.Sort =
RadListBoxSort.Ascending;
RadListBox1.SortItems();
}
So, just an example...
I start with ListBox #1 having values: a, b, c, x, y, z
Then I drop value "m" from ListBox#2 onto ListBox #1 (location between "a" and "b")and I end up with this list: a, z, b, c, m, x, y
The location of "m" is fine (it got sorted). The new location of "z" is the problem.
Has anyone seen this behavior before?
Thanks,
Matt
When the user clicks on a treeview item checkbox, the following method is called. However, the page is refreshed and the treeview focus is lost. How can I stay with the currently selected item? Thx.
protected void rTree_NodeCheck(object sender, RadTreeNodeEventArgs e)
{
hdnCurrentNode.Value = e.Node.Text;
e.Node.ExpandChildNodes();
if (0 == e.Node.Level)
{
e.Node.Nodes[i].Checked = e.Node.Checked;
}
}
I tried this code as well:
//RadTreeNode rtn = this.rTree.FindNodeByText(hdnCurrentNode.Value, true);
//rtn.Selected = true;
//rtn.Focus();
//rtn.Visible = true;
<P><%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="Talent.aspx.cs" Inherits="CreativeAffairsWebApp.Modules.Talent.Talent" %></P> <P><%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %><BR><%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %><BR><asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server"><BR></asp:Content><BR><asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server"><BR> <telerik:RadScriptBlock ID="RadScriptBlock1" runat="server"><BR> <BR> </telerik:RadScriptBlock><BR> <BR> <telerik:RadPanelBar ID="RadPanelBar1" runat="server" Skin="WebBlue" Width="100%"><BR> <Items><BR> <telerik:RadPanelItem runat="server" Expanded="false" Text="Talent Search Results"><BR> <ContentTemplate><BR> <table width="100%"><BR> <tr><BR> <td align="right" class="formLabel"><BR> <asp:CheckBox ID="ckHideSearchResultsFilter" AutoPostBack="true" runat="server" Text="Hide Filter Row"<BR> OnCheckedChanged="ckHideSearchResultsFilter_CheckChanged" /><BR> <asp:CheckBox ID="ckHideSearchResultsGroupPanel" AutoPostBack="true" runat="server"<BR> Text="Hide Grouping Row" OnCheckedChanged="ckHideSearchResultsGroupPanel_CheckChanged" /><BR> </td><BR> </tr><BR> </table><BR> <telerik:RadGrid ID="radgridSearchResults" runat="server" AllowFilteringByColumn="True"<BR> AllowPaging="True" PageSize="50" AllowSorting="True" AutoGenerateColumns="False"<BR> GridLines="None" ShowGroupPanel="True" Skin="WebBlue" Width="100%" EnableLinqExpressions="false"<BR> OnSelectedIndexChanged="radgridSearchResults_SelectedIndexChanged" OnPageIndexChanged="radgridSearchResults_PageIndexChanged"<BR> OnNeedDataSource="radgridSearchResults_NeedDataSource" CellSpacing="0"><BR> <ClientSettings AllowDragToGroup="True"><BR> <Scrolling AllowScroll="True" UseStaticHeaders="True" ScrollHeight="400" /><BR> </ClientSettings><BR> <MasterTableView><BR> <CommandItemSettings ExportToPdfText="Export to Pdf" /><BR> <RowIndicatorColumn FilterControlAltText="Filter RowIndicator column"><BR> <HeaderStyle Width="20px" /><BR> </RowIndicatorColumn><BR> <ExpandCollapseColumn FilterControlAltText="Filter ExpandColumn column"><BR> <HeaderStyle Width="20px" /><BR> </ExpandCollapseColumn><BR> <Columns><BR> <telerik:GridButtonColumn CommandName="Select" DataTextField="Name" FilterControlAltText="Filter TalentColumn column"<BR> SortExpression="Name" Text="Select" UniqueName="TalentColumn" HeaderText="Talent"><BR> <HeaderStyle Width="30%" /><BR> <ItemStyle Width="30%" VerticalAlign="Top" /><BR> </telerik:GridButtonColumn><BR> <telerik:GridBoundColumn DataField="Agency.name" FilterControlAltText="Filter column1 column"<BR> HeaderText="Agency" SortExpression="Agency.name" UniqueName="column1"><BR> <HeaderStyle Width="30%" /><BR> <ItemStyle Width="30%" /><BR> </telerik:GridBoundColumn><BR> <telerik:GridBoundColumn DataField="Agent.name" FilterControlAltText="Filter column2 column"<BR> HeaderText="Agent" SortExpression="Agent.name" UniqueName="column2"><BR> </telerik:GridBoundColumn><BR> </Columns><BR> <EditFormSettings><BR> <EditColumn FilterControlAltText="Filter EditCommandColumn column"><BR> </EditColumn><BR> </EditFormSettings><BR> </MasterTableView><BR> <FilterMenu EnableImageSprites="False"><BR> </FilterMenu><BR> <HeaderContextMenu CssClass="GridContextMenu GridContextMenu_Default"><BR> </HeaderContextMenu><BR> </telerik:RadGrid><BR> </ContentTemplate><BR> </telerik:RadPanelItem><BR> <telerik:RadPanelItem runat="server" Text="Talent Details" Expanded="true"><BR> <ContentTemplate><BR> <table width="100%" class="form" border="0"><BR> <tr><BR> <td width="350px"><BR> <table width="100%"><BR> <tr><BR> <td class="formLabel-RightAlign"><BR> Talent<BR> </td><BR> <td width="225px"><BR> <asp:TextBox ID="txtTalentName" runat="server" Width="200px" CssClass="textFields"></asp:TextBox><BR> <asp:RequiredFieldValidator ID="valTalentName" runat="server" ControlToValidate="txtTalentName"<BR> Display="None" ErrorMessage="Talent Name is a required field." ValidationGroup="valGroup1"></asp:RequiredFieldValidator><BR> <asp:ValidatorCalloutExtender ID="ValidatorCalloutExtender1" runat="server" Enabled="True"<BR> TargetControlID="valTalentName" /><BR> </td><BR> </tr><BR> <tr><BR> <td class="formLabel-RightAlign"><BR> Agent<BR> </td><BR> <td><BR> <telerik:RadComboBox ID="cboAgents" runat="server" EmptyMessage="Type to Search..."<BR> EnableAutomaticLoadOnDemand="true" EnableVirtualScrolling="true" ItemsPerRequest="100"<BR> MarkFirstMatch="True" Skin="WebBlue" Width="205px" AutoPostBack="true" OnSelectedIndexChanged="cboAgents_SelectedIndexChanged"><BR> <WebServiceSettings Method="GetAgents" Path="Talent.aspx" /><BR> </telerik:RadComboBox><BR> </td><BR> </tr><BR> <tr><BR> <td class="formLabel-RightAlign"><BR> Agency<BR> </td><BR> <td><BR> <telerik:RadComboBox ID="cboAgencies" runat="server" EmptyMessage="Type to Search..."<BR> EnableAutomaticLoadOnDemand="true" EnableVirtualScrolling="true" ItemsPerRequest="100"<BR> AutoPostBack="true" MarkFirstMatch="True" Skin="WebBlue" Width="205px" OnSelectedIndexChanged="cboAgencies_SelectedIndexChanged"><BR> <WebServiceSettings Method="GetAgencies" Path="Talent.aspx" /><BR> </telerik:RadComboBox><BR> </td><BR> </tr><BR> <tr><BR> <td class="formLabel-RightAlign"><BR> Agency Phone<BR> </td><BR> <td><BR> <asp:TextBox ID="txtAgencyPhone" ReadOnly="true" runat="server" Width="200px" CssClass="textFields"></asp:TextBox><BR> </td><BR> </tr><BR> <tr><BR> <td class="formLabel-RightAlign"><BR> Phone<BR> </td><BR> <td><BR> <asp:TextBox ID="txtPhone" runat="server" ReadOnly="true" Width="200px" CssClass="textFields"></asp:TextBox><BR> </td><BR> </tr><BR> <tr><BR> <td class="formLabel-RightAlign" valign="top"><BR> Comment<BR> </td><BR> <td><BR> <asp:TextBox ID="txtComment" runat="server" Rows="3" TextMode="MultiLine" CssClass="textFields"<BR> Width="200px"></asp:TextBox><BR> </td><BR> </tr><BR> <tr><BR> <td><BR> </td><BR> <td><BR> </td><BR> </tr><BR> </table><BR> </td><BR> <td width="350px" valign="top"><BR> <table width="100%" border="0"><BR> <tr><BR> <td align="left"><BR> <asp:Label ID="Label2" runat="server" CssClass="formLabel" Text="Specialty" Width="125px"></asp:Label><BR> </td><BR> <td><BR> <asp:Label ID="Label1" runat="server" CssClass="formLabel" Text="Target"></asp:Label><BR> </td><BR> <td><BR> <asp:Label runat="server" CssClass="formLabel-RightAlign" Text="Strengths"></asp:Label><BR> </td><BR> </tr><BR> <tr><BR> <td><BR> <asp:CheckBox ID="ckDirector" runat="server" CssClass="formLabel-RightAlign" Text="Director" /><BR> </td><BR> <td align="center"><BR> <asp:CheckBox ID="ckDirectorTarget" runat="server" CssClass="formLabel-RightAlign" /><BR> </td><BR> <td rowspan="5" valign="top"><BR> <telerik:RadListBox ID="lstTargetStrengths" runat="server" Height="125px" CssClass="textFields"<BR> SelectionMode="Multiple" Skin="WebBlue" Width="200px"><BR> </telerik:RadListBox><BR> </td><BR> </tr><BR> <tr><BR> <td><BR> <asp:CheckBox ID="ckProducer" runat="server" CssClass="formLabel-RightAlign" Text="Producer" /><BR> </td><BR> <td align="center"><BR> <asp:CheckBox ID="ckProducerTarget" runat="server" CssClass="formLabel-RightAlign" /><BR> </td><BR> <td><BR> </td><BR> </tr><BR> <tr><BR> <td><BR> <asp:CheckBox ID="ckWriter" runat="server" CssClass="formLabel-RightAlign" Text="Writer" /><BR> </td><BR> <td align="center"><BR> <asp:CheckBox ID="ckWriterTarget" runat="server" CssClass="formLabel-RightAlign" /><BR> </td><BR> <td><BR> </td><BR> </tr><BR> <tr><BR> <td><BR> <asp:CheckBox ID="ckTalentMale" runat="server" CssClass="formLabel-RightAlign" Text="Talent-Male" /><BR> </td><BR> <td align="center"><BR> <asp:CheckBox ID="ckTalentMaleTarget" runat="server" CssClass="formLabel-RightAlign" /><BR> </td><BR> <td><BR> </td><BR> </tr><BR> <tr><BR> <td><BR> <asp:CheckBox ID="ckTalentFemale" runat="server" CssClass="formLabel-RightAlign"<BR> Text="Talent-Female" /><BR> </td><BR> <td align="center"><BR> <asp:CheckBox ID="ckTalentFemaleTarget" runat="server" CssClass="formLabel-RightAlign" /><BR> </td><BR> <td><BR> </td><BR> </tr><BR> <tr><BR> <td><BR> </td><BR> <td><BR> </td><BR> </tr><BR> </table><BR> </td><BR> <td valign="top"><BR> <table width="100%" border="0"><BR> <tr><BR> <td class="formLabel" colspan="2"><BR> <table width="100%"><BR> <tr><BR> <td><BR> Male/Female Talent Attributes<BR> </td><BR> <td align="right"><BR> <telerik:RadButton ID="btnSave" runat="server" Text="Save" OnClick="btnSaveTalent_Click" Skin="WebBlue" ValidationGroup="valGroup1"> <BR> </telerik:RadButton><BR> <telerik:RadButton ID="btnDelete" runat="server" Text="Delete" OnClick="btnDeleteTalent_Click" Skin="WebBlue" ValidationGroup="valGroup1"> <BR> </telerik:RadButton><BR> <telerik:RadButton ID="btnResetTalent" runat="server" Text="Reset" OnClick="btnResetTalent_Click" Skin="WebBlue" ValidationGroup="valGroup1"> <BR> </telerik:RadButton><BR> <asp:ModalPopupExtender ID="ModalPopupExtender2" runat="server" BackgroundCssClass="modalBackground"<BR> CancelControlID="ButtonCancel" DynamicServicePath="" Enabled="True" OkControlID="ButtonOk"<BR> PopupControlID="panelDeleteTalentOuter" TargetControlID="btnDelete" /><BR> <asp:ConfirmButtonExtender ID="ConfirmButtonExtender2" runat="server" ConfirmText=""<BR> DisplayModalPopupID="ModalPopupExtender2" Enabled="True" TargetControlID="btnDelete" /><BR> </td><BR> </tr><BR> </table><BR> </td><BR> </tr><BR> <tr><BR> <td class="formLabel-RightAlign" width="75px"><BR> Age Range:<BR> </td><BR> <td><BR> <telerik:RadComboBox ID="cboAgeRanges" runat="server" EmptyMessage="Type to Search..."<BR> MarkFirstMatch="True" Skin="WebBlue" Width="175px" ZIndex="100"><BR> </telerik:RadComboBox><BR> </td><BR> </tr><BR> <tr><BR> <td class="formLabel-RightAlign"><BR> Race:<BR> </td><BR> <td><BR> <telerik:RadComboBox ID="cboRaces" runat="server" EmptyMessage="Type to Search..."<BR> MarkFirstMatch="True" Skin="WebBlue" Width="175px" ZIndex="100"><BR> </telerik:RadComboBox><BR> </td><BR> </tr><BR> <tr><BR> <td class="formLabel-RightAlign"><BR> Type<BR> </td><BR> <td><BR> <telerik:RadComboBox ID="cboTypes" runat="server" EmptyMessage="Type to Search..."<BR> MarkFirstMatch="True" Skin="WebBlue" Width="175px" ZIndex="100"><BR> </telerik:RadComboBox><BR> </td><BR> </tr><BR> <tr><BR> <td><BR> </td><BR> <td class="formLabel"><BR> <asp:CheckBox ID="ckIsAvailable" runat="server" Text="Available" /> <BR> <asp:CheckBox ID="ckInActive" runat="server" Text="Inactive" /><BR> </td><BR> </tr><BR> <tr><BR> <td><BR> </td><BR> <td><BR> </td><BR> </tr><BR> </table><BR> </td><BR> </tr><BR> </table><BR> <!--Credit Table--><BR> <table width="100%" class="form" border="0"><BR> <tr><BR> <td class="formLabel" align="left" valign="baseline" width="100px"><BR> Credits<BR> </td><BR> <td align="left"><BR> <telerik:RadButton ID="btnAddCreditForTalent" Enabled="false" OnClick="btnAddCreditForTalent_Click" runat="server" Text="Add" Skin="WebBlue"><BR> </telerik:RadButton><BR> </td><BR> <td align="right" class="formLabel" width="95%" valign="baseline"><BR> <asp:CheckBox ID="ckHideCreditsFilterRow" AutoPostBack="true" runat="server" Text="Hide Filter Row"<BR> OnCheckedChanged="ckHideCreditsFilter_CheckChanged" /><BR> <asp:CheckBox ID="ckHideCreditsGroupingRow" AutoPostBack="true" runat="server" Text="Hide Grouping Row"<BR> OnCheckedChanged="ckHideGroupingRow_CheckChanged" /><BR> </td><BR> </tr><BR> <tr><BR> <td colspan="3"><BR> <telerik:RadGrid ID="radgridCredits" runat="server" AllowFilteringByColumn="True"<BR> AllowPaging="True" AllowSorting="True" AutoGenerateColumns="False" CellSpacing="0"<BR> GridLines="None" Height="280px" OnNeedDataSource="radgridCredits_NeedDataSource"<BR> OnSelectedIndexChanged="radgridCredits_SelectedIndexChanged" PageSize="50" ShowGroupPanel="True"<BR> Skin="WebBlue" Visible="False" Width="100%"><BR> <ClientSettings AllowDragToGroup="True"><BR> <Scrolling AllowScroll="True" ScrollHeight="375" UseStaticHeaders="True" /><BR> </ClientSettings><BR> <MasterTableView><BR> <CommandItemSettings ExportToPdfText="Export to Pdf" /><BR> <RowIndicatorColumn FilterControlAltText="Filter RowIndicator column"><BR> <HeaderStyle Width="20px" /><BR> </RowIndicatorColumn><BR> <ExpandCollapseColumn FilterControlAltText="Filter ExpandColumn column"><BR> <HeaderStyle Width="20px" /><BR> </ExpandCollapseColumn><BR> <Columns><BR> <telerik:GridButtonColumn CommandName="Select" DataTextField="Show.Title" FilterControlAltText="Filter column2 column"<BR> HeaderText="Show" SortExpression="Show.Title" UniqueName="column2"><BR> <HeaderStyle Width="20%" /><BR> <ItemStyle Width="20%" /><BR> </telerik:GridButtonColumn><BR> <telerik:GridBoundColumn DataField="Show.Medium.name" FilterControlAltText="Filter TalentColumn column"<BR> FilterControlWidth="50px" HeaderText="Media" SortExpression="Show.Medium.name"<BR> UniqueName="TalentColumn"><BR> <HeaderStyle Width="9%" /><BR> <ItemStyle VerticalAlign="Top" Width="9%" /><BR> </telerik:GridBoundColumn><BR> <telerik:GridBoundColumn DataField="Craft.name" FilterControlAltText="Filter column1 column"<BR> FilterControlWidth="75px" HeaderText="Craft" SortExpression="Craft.name" UniqueName="column1"><BR> <HeaderStyle Width="12%" /><BR> <ItemStyle Width="12%" /><BR> </telerik:GridBoundColumn><BR> <telerik:GridBoundColumn DataField="Show.us_bor" DataFormatString="${C:0}" FilterControlAltText="Box Office"<BR> FilterControlWidth="50px" HeaderText="US BO(US$)" SortExpression="Show.us_bor"<BR> UniqueName="colBoxOffice"><BR> <HeaderStyle Width="8%" /><BR> <ItemStyle Width="8%" /><BR> </telerik:GridBoundColumn><BR> <telerik:GridBoundColumn DataField="Show.ProdHouse.name" FilterControlAltText="Filter column3 column"<BR> HeaderText="Production House" SortExpression="Show.ProdHouse" UniqueName="column3"><BR> <HeaderStyle Width="15%" /><BR> <ItemStyle Width="15%" /><BR> </telerik:GridBoundColumn><BR> <telerik:GridBoundColumn DataField="comment" FilterControlAltText="Filter column4 column"<BR> HeaderText="Comment" SortExpression="comment" UniqueName="column4"><BR> <HeaderStyle Width="15%" /><BR> <ItemStyle Width="15%" /><BR> </telerik:GridBoundColumn><BR> <telerik:GridBoundColumn DataField="Show.year" FilterControlAltText="Filter column5 column"<BR> FilterControlWidth="40px" HeaderText="Year" SortExpression="Show.year" UniqueName="column5"><BR> </telerik:GridBoundColumn><BR> </Columns><BR> <EditFormSettings><BR> <EditColumn FilterControlAltText="Filter EditCommandColumn column"><BR> </EditColumn><BR> </EditFormSettings><BR> </MasterTableView><BR> <FilterMenu EnableImageSprites="False"><BR> </FilterMenu><BR> <HeaderContextMenu CssClass="GridContextMenu GridContextMenu_Default"><BR> </HeaderContextMenu><BR> </telerik:RadGrid><BR> </td><BR> </tr><BR> </table><BR> <BR> <asp:Panel ID="panelDeleteTalentOuter" runat="server" CssClass="DeleteConfirmationOuterWindow"<BR> Style="display: none;"><BR> <asp:Panel ID="panelDeleteTalent" runat="server" Width="200px" Height="75px" CssClass="DeleteConfirmWindow"><BR> <table width="100%"><BR> <tr><BR> <td align="center"><BR> Are you sure you want to Delete this Talent?<BR> </td><BR> </tr><BR> <tr><BR> <td align="center"><BR> <asp:Button ID="ButtonOk" runat="server" Text="Ok" /><BR> <asp:Button ID="ButtonCancel" runat="server" Text="Cancel" /><BR> </td><BR> </tr><BR> </table><BR> </asp:Panel><BR> </asp:Panel><BR> </ContentTemplate><BR> </telerik:RadPanelItem><BR> </Items><BR> </telerik:RadPanelBar><BR> </P> <P> <!--SEARCH PANEL--><BR> <div class="panel"><BR> <telerik:RadPanelBar ID="radSearchPanel" runat="server" Skin="WebBlue" Height="560px" Width="225px"><BR> <Items><BR> <telerik:RadPanelItem Text="Search" Expanded="true" PreventCollapse="true"><BR> <ContentTemplate><BR> <table class="searchForm" width="100%"><BR> <tr><BR> <td class="searchSectionLabel"><BR> Name<BR> </td><BR> </tr><BR> <tr><BR> <td><BR> <asp:TextBox ID="txtTalentSearch" CssClass="textFields" runat="server" TabIndex="0"<BR> Width="200px"></asp:TextBox><BR> </td><BR> </tr><BR> <tr><BR> <td class="searchSectionLabel"><BR> Agent<BR> </td><BR> </tr><BR> <tr><BR> <td><BR> <telerik:RadComboBox ID="cboAgentSearch" runat="server" EmptyMessage="Type to Search..."<BR> EnableAutomaticLoadOnDemand="true" EnableVirtualScrolling="true" ItemsPerRequest="100"<BR> MarkFirstMatch="True" Skin="WebBlue" Width="205px"><BR> <WebServiceSettings Method="GetAgents" Path="Talent.aspx" /><BR> </telerik:RadComboBox><BR> </td><BR> </tr><BR> <tr><BR> <td class="searchSectionLabel"><BR> Agency<BR> </td><BR> </tr><BR> <tr><BR> <td><BR> <telerik:RadComboBox ID="cboAgencySearch" runat="server" EmptyMessage="Type to Search..."<BR> EnableVirtualScrolling="true" ItemsPerRequest="100" EnableAutomaticLoadOnDemand="true"<BR> MarkFirstMatch="True" Skin="WebBlue" Width="205px"><BR> <WebServiceSettings Method="GetAgencies" Path="Talent.aspx" /><BR> </telerik:RadComboBox><BR> </td><BR> </tr><BR> <tr><BR> <td class="searchSectionLabel"><BR> Credit<BR> </td><BR> </tr><BR> <tr><BR> <td><BR> <asp:TextBox ID="txtCreditSearch" CssClass="textFields" runat="server" Width="200px"></asp:TextBox><BR> </td><BR> </tr><BR> <tr><BR> <td align="left" valign="top" class="searchSectionLabel"><BR> Genre<BR> </td><BR> </tr><BR> <tr><BR> <td><BR> <asp:ListBox ID="lstGenreSearch" CssClass="textFields" SelectionMode="Multiple" runat="server"<BR> Width="205px"></asp:ListBox><BR> </td><BR> </tr><BR> <tr><BR> <td align="left" valign="top" class="searchSectionLabel"><BR> Strength<BR> </td><BR> </tr><BR> <tr><BR> <td><BR> <asp:ListBox ID="lstStrengthSearch" CssClass="textFields" SelectionMode="Multiple"<BR> runat="server" Width="205px"></asp:ListBox><BR> </td><BR> </tr><BR> <tr><BR> <td align="left" valign="top" class="searchSectionLabel"><BR> Target<BR> </td><BR> </tr><BR> <tr><BR> <td><BR> <telerik:RadListBox ID="lstTargetSearch" SelectionMode="Multiple" Width="205px" Height="100px" runat="server"><BR> </telerik:RadListBox><BR> </td><BR> </tr><BR> <tr><BR> <td class="searchSectionLabel"><BR> Note<BR> </td><BR> </tr><BR> <tr><BR> <td><BR> <telerik:RadListBox ID="lstNoteSearch" runat="server" Width="205px"><BR> <Items><BR> <telerik:RadListBoxItem Value="0" Text="Select a Note" /><BR> <telerik:RadListBoxItem Value="1" Text="Private" /><BR> <telerik:RadListBoxItem Value="2" Text="Public" /><BR> <telerik:RadListBoxItem Value="3" Text="System Administrator" /><BR> <telerik:RadListBoxItem Value="4" Text="N/A" /><BR> </Items><BR> </telerik:RadListBox><BR> </td><BR> </tr><BR> <tr><BR> <td class="searchSectionLabel"><BR> <asp:CheckBox ID="ckAvailableOnlySearch" runat="server" Text="Available Only" /><BR> </td><BR> </tr><BR> <tr><BR> <td class="searchSectionLabel"><BR> <asp:CheckBox ID="ckIncludeInactiveSearch" runat="server" Text="Include Inactive" /><BR> </td><BR> </tr><BR> <tr><BR> <td align="right" class="searchSectionLabel"><BR> <telerik:RadButton ID="btnSearch" OnClick="btnSearch_Click" runat="server" Text="Search" Skin="WebBlue"><BR> </telerik:RadButton><BR> <telerik:RadButton ID="btnReset" OnClick="btnReset_Click" runat="server" Text="Reset" Skin="WebBlue"><BR> </telerik:RadButton><BR> </td><BR> </tr><BR> </table><BR> </ContentTemplate><BR> </telerik:RadPanelItem><BR> </Items><BR> </telerik:RadPanelBar><BR> </div><BR> <a class="trigger" href="#">Search</a><BR> <!--WINDOW for ADDING/Updating a CREDIT!!!--><BR> <telerik:RadWindowManager ID="RadWindowManager1" Behaviors="Close" runat="server"><BR> <Windows><BR> <telerik:RadWindow ID="radWinAddCredit" OpenerElementID="btnAddCreditForTalent" runat="server" Modal="true" AutoSize="true"<BR> Title="Add/Edit Credit" VisibleStatusbar="false" VisibleOnPageLoad="False" Skin="WebBlue"<BR> Height="300px" ShowContentDuringLoad="False" Width="350px" Behaviors="Close"><BR> <ContentTemplate><BR> <table class="form" width="100%"><BR> <tr><BR> <td class="formLabel-RightAlign" align="left"><BR> Craft<BR> </td><BR> <td><BR> <telerik:RadComboBox ID="cboCrafts" Skin="WebBlue" Width="205px" ZIndex="5000" MarkFirstMatch="true" EmptyMessage="Type to Select..." runat="server"><BR> </telerik:RadComboBox><BR> <asp:RequiredFieldValidator ID="valCreditCrafts" ControlToValidate="cboCrafts" runat="server" ErrorMessage="Required" InitialValue="Type to Select..." ValidationGroup="CreditGroup"></asp:RequiredFieldValidator><BR> </td><BR> </tr><BR> <tr><BR> <td class="formLabel-RightAlign"><BR> Title<BR> </td><BR> <td><BR> <telerik:RadComboBox ID="cboShowTitles" Skin="WebBlue" ZIndex="5000" Width="205px" EnableAutomaticLoadOnDemand="true"<BR> EmptyMessage="Type to Search..." MarkFirstMatch="true" runat="server" EnableLoadOnDemand="True"<BR> ItemsPerRequest="100"><BR> <WebServiceSettings Method="GetShowTitles" Path="../Admin/Controls/AdminService.asmx" /><BR> </telerik:RadComboBox><BR> <asp:RequiredFieldValidator ID="valCreditShows" ControlToValidate="cboShowTitles" runat="server" ErrorMessage="Required" InitialValue="Type to Search..." ValidationGroup="CreditGroup"></asp:RequiredFieldValidator><BR> </td><BR> </tr><BR> <tr><BR> <td class="formLabel-RightAlign"><BR> Comment<BR> </td><BR> <td><BR> <asp:TextBox ID="txtCreditComment" CssClass="textFields" runat="server" Width="200px"></asp:TextBox><BR> </td><BR> </tr><BR> <tr><BR> <td align="right" colspan="2"><BR> <telerik:RadButton ID="btnAddCredit" Skin="WebBlue" runat="server" Text="Save" ValidationGroup="CreditGroup" OnClick="btnAddCredit_Click" ><BR> </telerik:RadButton><BR> </td><BR> </tr><BR> </table><BR> </ContentTemplate><BR> </telerik:RadWindow><BR> </Windows><BR> </telerik:RadWindowManager><BR> <telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server" <BR> Skin="WebBlue"><BR> </telerik:RadAjaxLoadingPanel><BR> <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server" <BR> DefaultLoadingPanelID="RadAjaxLoadingPanel1"><BR> <AjaxSettings><BR> <telerik:AjaxSetting AjaxControlID="RadPanelBar1"><BR> <UpdatedControls><BR> <telerik:AjaxUpdatedControl ControlID="RadPanelBar1" <BR> LoadingPanelID="RadAjaxLoadingPanel1" /><BR> </UpdatedControls><BR> </telerik:AjaxSetting><BR> <telerik:AjaxSetting AjaxControlID="radSearchPanel"><BR> <UpdatedControls><BR> <telerik:AjaxUpdatedControl ControlID="RadPanelBar1" <BR> LoadingPanelID="RadAjaxLoadingPanel1" /><BR> <telerik:AjaxUpdatedControl ControlID="radSearchPanel" <BR> LoadingPanelID="RadAjaxLoadingPanel1" UpdatePanelHeight="560px" /><BR> </UpdatedControls><BR> </telerik:AjaxSetting><BR> </AjaxSettings><BR> </telerik:RadAjaxManager><BR></asp:Content><BR></P>
Hi,
I have an autocomplete combobox within a radgrid. The combobox is fed directly from a Web service. When I move this combobox outside the grid it works fine. Is there some issue with having AJAX fed controls inside a grid?
function OnClientItemsRequesting(sender, eventArgs) { var context = eventArgs.get_context(); context["FilterString"] = eventArgs.get_text(); }<radG:RadGrid runat="server" AutoGenerateColumns="false" ShowFooter="true" CssClass="bodyCopy" ID="RadGrid1" AllowPaging="True" AllowSorting="True" EnableAJAX="true" OnNeedDataSource="RadGrid1_NeedDataSource" OnItemCreated="RadGrid1_ItemCreated" OnItemCommand="RadGrid1_ItemCommand" Width="800px" EditItemStyle-VerticalAlign="Top"> <PagerStyle Mode="NumericPages" /> <MasterTableView DataKeyNames="J_ID" Width="800px" CommandItemDisplay="Top" PageSize="18" EditMode="InPlace" > <Columns> <radG:GridTemplateColumn UniqueName="Date" SortExpression="Date" HeaderText="Date"> <ItemTemplate> <asp:Label ID="lblDate" runat="Server"></asp:Label> </ItemTemplate> <EditItemTemplate> <asp:DropDownList ID="ddlDateEdit" runat="Server"></asp:DropDownList> </EditItemTemplate> </radG:GridTemplateColumn> <radG:GridTemplateColumn UniqueName="Description" SortExpression="Description" HeaderText="Description"> <ItemTemplate> <asp:Label ID="lblDescription" ForeColor="black" runat="Server"></asp:Label> </ItemTemplate> <EditItemTemplate> <asp:TextBox ID="txtDescription" runat="server" TextMode="MultiLine" Rows="2" Width="180px"></asp:TextBox> </EditItemTemplate> </radG:GridTemplateColumn> <radG:GridTemplateColumn UniqueName="Hours" SortExpression="Hours" HeaderText="Hours"> <ItemTemplate> <asp:Label ID="lblHours" runat="Server"></asp:Label> </ItemTemplate> <FooterTemplate><asp:Label runat="server" ID="lblTotals"></asp:Label></FooterTemplate> <EditItemTemplate> <asp:TextBox ID="txtHours" runat="server" Width="30px"></asp:TextBox> </EditItemTemplate> </radG:GridTemplateColumn> <radG:GridTemplateColumn UniqueName="J_JobCode" SortExpression="Hours" HeaderText="Job"> <ItemTemplate> <asp:Label ID="lblJobCode" runat="Server"></asp:Label> </ItemTemplate> <EditItemTemplate> <telerik:RadComboBox ID="radJCSearch" runat="server" DropDownWidth="300px" EnableLoadOnDemand="true" Height="190px" OnClientItemsRequesting="OnClientItemsRequesting" Width="300px" CausesValidation="False" ExpandDelay="500" HighlightTemplatedItems="True" OpenDropDownOnLoad="False" DataValueField="JC_ID" EmptyMessage="Type code to start search" EnableVirtualScrolling="True" ItemRequestTimeout="500" ShowDropDownOnTextboxClick="True" ShowToggleImage="False" ShowWhileLoading="False" > <WebServiceSettings Method="GetJobCodes" Path="JobCodes.asmx" /> <CollapseAnimation Duration="200" Type="OutQuint" /> </telerik:RadComboBox> </EditItemTemplate> </radG:GridTemplateColumn> <radG:GridTemplateColumn UniqueName="Date" ItemStyle-Width="25px" SortExpression="Date" HeaderText="Delete"> <ItemTemplate> <asp:LinkButton ID="lnkNonEditDelete" ToolTip="Delete Job" runat="server" CausesValidation="false" ><img src="delete.gif" border="0" /></asp:LinkButton> </ItemTemplate> <EditItemTemplate> </EditItemTemplate> </radG:GridTemplateColumn> <radG:GridEditCommandColumn ItemStyle-Width="30px" UniqueName="UpdateColumn" ><ItemStyle CssClass="edit" /></radG:GridEditCommandColumn> </Columns> </MasterTableView> </radG:RadGrid><asp:Panel ID="pForecastCardView_Panel" runat="server"> <telerik:RadListView ID="rlvForecastCardView_Item" runat="server" Width="100%" AllowPaging="true" ItemPlaceholderID="ItemHolder" DataKeyNames="ForecastID,CustomerId,MaterialGroup.MaterialGroupNo,Region.Id,AccountManagerUserName,TradingPartner.TradingPartnerNo,AccountName" PageSize="1" ValidationSettings-ValidationGroup="vgMainForm" onneeddatasource="rlvForecastCardView_Item_NeedDataSource" onitemdatabound="rlvForecastCardView_Item_ItemDataBound" onitemcommand="rlvForecastCardView_Item_ItemCommand" ondatabound="rlvForecastCardView_Item_DataBound" onpageindexchanged="rlvForecastCardView_Item_PageIndexChanged"> <LayoutTemplate> <asp:Panel ID="ItemHolder" runat="server" /> <telerik:RadDataPager ID="rdpForecastCardView_ItemPager" runat="server" PagedControlID="rlvForecastCardView_Item" Font-Size="9pt" PageSize="1" Visible='<%# (!_pdfRender) %>' > <ClientEvents OnPageIndexChanging="rdpForecastCardView_ItemPager_OnPageIndexChanging" /> <Fields> <telerik:RadDataPagerButtonField FieldType="FirstPrev" /> <telerik:RadDataPagerButtonField FieldType="Numeric" /> <telerik:RadDataPagerButtonField FieldType="NextLast" /> <telerik:RadDataPagerTemplatePageField> <PagerTemplate> <table width="100%" cellpadding="0" cellspacing="0" class="TableFullWidth"> <tr> <td> <telerik:RadButton ID="btnSaveNext" runat="server" Text="Save & Next" CommandName="SaveNext" Icon-PrimaryIconUrl="../images/icons/save16x16.gif"></telerik:RadButton> </td> <td align="right"> <b> <asp:Label runat="server" ID="CurrentPageLabel" Text="<%# Container.Owner.StartRowIndex+1%>" /></b> of <b> <asp:Label runat="server" ID="TotalItemsLabel" Text="<%# Container.Owner.TotalRowCount%>" /> </b> items </td> </tr> </table> </PagerTemplate> </telerik:RadDataPagerTemplatePageField> </Fields> </telerik:RadDataPager> </LayoutTemplate> <ItemTemplate> <table class="ContentTableBordered TableFullWidth" cellspacing="0" cellpadding="4"> <tr> <td class="tableSectionLabelCell" nowrap="nowrap"><asp:Literal ID="lRegionLabel" runat="server" Text="Region" ViewStateMode="Disabled"></asp:Literal></td> <td class="tableSectionLabelCell" nowrap="nowrap"><asp:Literal ID="lTradingPartnerLabel" runat="server" Text="Trading Partner" ViewStateMode="Disabled"></asp:Literal></td> <td class="tableSectionLabelCell" nowrap="nowrap"><asp:Literal ID="lAccountNameLabel" runat="server" Text="Account Name" ViewStateMode="Disabled"></asp:Literal></td> <td class="tableSectionLabelCell" nowrap="nowrap"><asp:Literal ID="lMasterShipToIdLabel" runat="server" Text="Master Ship No" ViewStateMode="Disabled"></asp:Literal></td> <td class="tableSectionLabelCell" nowrap="nowrap"><asp:Literal ID="lCityLabel" runat="server" Text="City" ViewStateMode="Disabled"></asp:Literal></td> <td class="tableSectionLabelCell" nowrap="nowrap"><asp:Literal ID="lStateLabel" runat="server" Text="State" ViewStateMode="Disabled"></asp:Literal></td> <td class="tableSectionLabelCell" nowrap="nowrap"><asp:Literal ID="lAccountManagerLabel" runat="server" Text="Account Manager" ViewStateMode="Disabled"></asp:Literal></td> </tr> <tr> <td class="tableSectionDataCell" nowrap="nowrap"><%# Eval("Region.Description") %> </td> <td class="tableSectionDataCell" nowrap="nowrap"><%# Eval("TradingPartner.Name") %> </td> <td class="tableSectionDataCell" nowrap="nowrap"><%# Eval("AccountName") %> </td> <td class="tableSectionDataCell" nowrap="nowrap"><%# (Eval("MasterShipToId") != null ? Eval("MasterShipToId").ToString().RemoveLeadingZerosFromSAPID() : "") %> </td> <td class="tableSectionDataCell" nowrap="nowrap"><%# Eval("City") %> </td> <td class="tableSectionDataCell" nowrap="nowrap"><%# Eval("State.UpperStateId") %> </td> <td class="tableSectionDataCell" nowrap="nowrap"><%# Eval("AccountManagerName") %> </td> </tr> <tr> <td class="tableSectionLabelCell" nowrap="nowrap"><asp:Literal ID="lMaterialGroupLabel" runat="server" Text="Material Group" ViewStateMode="Disabled"></asp:Literal></td> <td class="tableSectionLabelCell" nowrap="nowrap"><asp:Literal ID="lMaterialNoLabel" runat="server" Text="Material No" ViewStateMode="Disabled"></asp:Literal></td> <td class="tableSectionLabelCell" nowrap="nowrap"><asp:Literal ID="lMaterialLabel" runat="server" Text="Material" ViewStateMode="Disabled"></asp:Literal></td> <td class="tableSectionLabelCell" nowrap="nowrap"><asp:Literal ID="lDefaultShippingModeLabel" runat="server" Text="Default Mode" ViewStateMode="Disabled"></asp:Literal></td> <td class="tableSectionLabelCell" nowrap="nowrap"><asp:Literal ID="lDefaultPlantLabel" runat="server" Text="Default Plant" ViewStateMode="Disabled"></asp:Literal></td> <td class="tableSectionLabelCell" nowrap="nowrap"><asp:Literal ID="lDefaultPlantNoLabel" runat="server" Text="Default Plant No" ViewStateMode="Disabled"></asp:Literal></td> <td class="tableSectionLabelCell" nowrap="nowrap"><asp:Literal ID="lIsProspect" runat="server" Text="Is Prospect" ViewStateMode="Disabled"></asp:Literal></td> </tr> <tr> <td class="tableSectionDataCell" nowrap="nowrap"><%# Eval("MaterialGroup.Description") %> </td> <td class="tableSectionDataCell" nowrap="nowrap"><%# (Eval("DefaultMaterial.MaterialNo") != null ? Eval("DefaultMaterial.MaterialNo").ToString().RemoveLeadingZerosFromSAPID() : "") %> </td> <td class="tableSectionDataCell" nowrap="nowrap"><%# Eval("DefaultMaterial.Description") %> </td> <td class="tableSectionDataCell" nowrap="nowrap"><%# Eval("DefaultShipMode.Description")%> </td> <td class="tableSectionDataCell" nowrap="nowrap"><%# Eval("DefaultPlant.Id") %> </td> <td class="tableSectionDataCell" nowrap="nowrap"><%# Eval("DefaultPlant.Description")%> </td> <td class="tableSectionDataCell" nowrap="nowrap"><%# (Convert.ToBoolean(Eval("IsProspect")) ? "Yes" : "No") %> </td> </tr> </table> <br /> <% if (!_pdfRender) { %> <div class="RadGrid RadGrid_Default" style="border-bottom: 0px none transparent"> <table cellspacing="0" class="rgMasterTable" border="0" style="width:100%;table-layout:auto;empty-cells:show;"> <tr> <th class="rgHeader" style="text-align:left;"> <telerik:RadButton ID="btnSaveValues" runat="server" CommandName="Save" Icon-PrimaryIconUrl="../images/icons/save16x16.gif" Text="Save Values"></telerik:RadButton> </th> <th class="rgHeader" style="text-align:right;"> <telerik:RadButton ID="btnPDF" runat="server" CommandArgument='<%# (Eval("ForecastID").ToString() + "~" + Eval("CustomerId").ToString() + "~" + Eval("MaterialGroup.MaterialGroupNo").ToString() + "~" + Eval("AccountName").ToString() + "~" + Eval("MaterialGroup.Description").ToString()) %>' Text="PDF/Print" OnClientClicked="OnClientPDF_Clicking" ValidationGroup="vgMainForm" Icon-PrimaryIconUrl="../images/icons/acrobat.gif" AutoPostBack="false"> </telerik:RadButton> <telerik:RadButton ID="btnRefresh" runat="server" CommandName="RebindListView" Text="Refresh" ValidationGroup="vgMainForm"> <Icon PrimaryIconCssClass="rbRefresh" /> </telerik:RadButton> </th> </tr> </table> </div> <% } %> <% if (_pdfRender) { %> <table class="TableFullWidth" style="border-top: 1px solid #828282;border-bottom: 1px solid #828282;border-left: 1px solid #828282;border-right: 1px solid #828282;" cellspacing="0" cellpadding="4"> <% } else { %> <table class="TableFullWidth" style="border-top: 0px none transparent;border-bottom: 0px none transparent;border-left: 1px solid #828282;border-right: 1px solid #828282;" cellspacing="0" cellpadding="4"> <% } %> <tr> <td align="center"> <asp:Label ID="lblPriorActualVolumeLabel" runat="server" CssClass="LabelMedium LabelBold" Text="Prior Periods Actual Volume" ViewStateMode="Disabled"></asp:Label> </td> <td align="center"> <asp:Label ID="lblAccountRepForecastLabel" runat="server" CssClass="LabelMedium LabelBold" Text="Account Rep Forecast" ViewStateMode="Disabled"></asp:Label> </td> <td align="center"> <asp:Label ID="lblManagementForecast" runat="server" CssClass="LabelMedium LabelBold" Text="Management Forecast" ViewStateMode="Disabled"></asp:Label> </td> </tr> <tr> <td width="34%" nowrap="nowrap"> <telerik:RadGrid ID="rgPriorActualVolumeValues" runat="server" AllowFilteringByColumn="False" AllowPaging="False" AllowSorting="false" ClientSettings-AllowColumnHide="false" AutoGenerateColumns="False" ShowGroupPanel="false" ShowFooter="true" EnableHeaderContextMenu="false"> <MasterTableView CommandItemDisplay="None"> <Columns> <telerik:GridTemplateColumn HeaderText="PeriodDate" UniqueName="PeriodDate" DataField="PeriodDate" FooterStyle-Font-Bold="true" ItemStyle-HorizontalAlign="Right" ItemStyle-Wrap="false" HeaderStyle-HorizontalAlign="Center"> <ItemTemplate> <%# FormatPeriodDisplay(Convert.ToDateTime(Eval("PeriodDate"))) %> </ItemTemplate> <FooterTemplate> <asp:Literal ID="lTotal" runat="server" EnableViewState="false" Text="Total:" ViewStateMode="Disabled"></asp:Literal> </FooterTemplate> </telerik:GridTemplateColumn> <telerik:GridTemplateColumn HeaderText="ActualValue" UniqueName="ActualValue" DataField="ActualValue" ItemStyle-HorizontalAlign="Center" HeaderStyle-HorizontalAlign="Center" FooterStyle-HorizontalAlign="Center"> <ItemTemplate> <telerik:RadNumericTextBox ID="rntxtActualValue" runat="server" Text='<%# Eval("ActualValue") %>' Type="Number" DataType="System.Int32" NumberFormat-DecimalDigits="0" NumberFormat-GroupSizes="3" NumberFormat-GroupSeparator="," EnabledStyle-HorizontalAlign="Right" ReadOnly="true" ReadOnlyStyle-BorderColor="Transparent" ReadOnlyStyle-ForeColor="Black" ReadOnlyStyle-BackColor="Transparent" Width="100px" ViewStateMode="Disabled"></telerik:RadNumericTextBox> </ItemTemplate> <FooterTemplate> <telerik:RadNumericTextBox ID="rntxtActualValueFooter" runat="server" Type="Number" DataType="System.Int32" NumberFormat-DecimalDigits="0" NumberFormat-GroupSizes="3" NumberFormat-GroupSeparator="," EnabledStyle-HorizontalAlign="Right" ReadOnly="true" ReadOnlyStyle-HorizontalAlign="Right" ReadOnlyStyle-BorderColor="Transparent" ReadOnlyStyle-ForeColor="Black" ReadOnlyStyle-BackColor="Transparent" Width="100px" ViewStateMode="Disabled"></telerik:RadNumericTextBox> </FooterTemplate> </telerik:GridTemplateColumn> <telerik:GridBoundColumn DataField="QuarterlyValue" Groupable="false" HeaderText="Quarterly" UniqueName="QuarterlyValue" HeaderStyle-HorizontalAlign="Center" ItemStyle-HorizontalAlign="Right" DataType="System.Int32" DataFormatString="{0:#,###,###,##0}"> </telerik:GridBoundColumn> <telerik:GridTemplateColumn HeaderText="OutageDays" UniqueName="OutageDays" DataField="OutageDays" ItemStyle-HorizontalAlign="Center" HeaderStyle-HorizontalAlign="Center" FooterStyle-HorizontalAlign="Center"> <ItemTemplate> <telerik:RadNumericTextBox ID="rntxtOutageDays" runat="server" Text='<%# Eval("OutageDays") %>' Type="Number" DataType="System.Int32" NumberFormat-DecimalDigits="0" NumberFormat-GroupSizes="3" NumberFormat-GroupSeparator="," EnabledStyle-HorizontalAlign="Right" ReadOnly="true" ReadOnlyStyle-HorizontalAlign="Right" ReadOnlyStyle-BorderColor="Transparent" ReadOnlyStyle-ForeColor="Black" ReadOnlyStyle-BackColor="Transparent" Width="100px" ViewStateMode="Disabled"></telerik:RadNumericTextBox> </ItemTemplate> <FooterTemplate> <telerik:RadNumericTextBox ID="rntxtOutageDaysFooter" runat="server" Type="Number" DataType="System.Int32" NumberFormat-DecimalDigits="0" NumberFormat-GroupSizes="3" NumberFormat-GroupSeparator="," EnabledStyle-HorizontalAlign="Right" ReadOnly="true" ReadOnlyStyle-HorizontalAlign="Right" ReadOnlyStyle-BorderColor="Transparent" ReadOnlyStyle-ForeColor="Black" ReadOnlyStyle-BackColor="Transparent" Width="100px" ViewStateMode="Disabled"></telerik:RadNumericTextBox> </FooterTemplate> </telerik:GridTemplateColumn> </Columns> <NoRecordsTemplate> <asp:Label ID="lblNoTotalsRecords" runat="server" CssClass="LabelBold" Text="No records for the filtering selections you have chosen." ViewStateMode="Disabled"></asp:Label> </NoRecordsTemplate> </MasterTableView> </telerik:RadGrid> </td> <td width="34%" nowrap="nowrap"> <telerik:RadGrid ID="rgAccountManagerValues" runat="server" AllowFilteringByColumn="False" AllowPaging="False" AllowSorting="false" ClientSettings-AllowColumnHide="false" AutoGenerateColumns="False" ShowGroupPanel="false" ShowFooter="true" EnableHeaderContextMenu="false" OnItemDataBound="rgAccountManagerValues_ItemDataBound"> <MasterTableView CommandItemDisplay="None" DataKeyNames="ForecastValueId,PeriodDate,AccountManagerValue,OutageDays,IsPrevYearActual"> <RowIndicatorColumn> <HeaderStyle Width="20px"></HeaderStyle> </RowIndicatorColumn> <ExpandCollapseColumn> <HeaderStyle Width="20px"></HeaderStyle> </ExpandCollapseColumn> <Columns> <telerik:GridTemplateColumn HeaderText="PeriodDate" UniqueName="PeriodDate" DataField="PeriodDate" FooterStyle-Font-Bold="true" ItemStyle-HorizontalAlign="Right" ItemStyle-Wrap="false" HeaderStyle-HorizontalAlign="Center"> <ItemTemplate> <%# FormatPeriodDisplay(Convert.ToDateTime(Eval("PeriodDate"))) %> </ItemTemplate> <FooterTemplate> <asp:Literal ID="lTotal" runat="server" EnableViewState="false" Text="Total:" ViewStateMode="Disabled"></asp:Literal> </FooterTemplate> </telerik:GridTemplateColumn> <telerik:GridTemplateColumn HeaderText="AccountManagerValue" UniqueName="AccountManagerValue" DataField="AccountManagerValue" ItemStyle-HorizontalAlign="Center" HeaderStyle-HorizontalAlign="Center" FooterStyle-HorizontalAlign="Center"> <ItemTemplate> <telerik:RadNumericTextBox ID="rntxtAcctRepForecast" runat="server" Text='<%# Eval("AccountManagerValue") %>' Type="Number" DataType="System.Int32" NumberFormat-DecimalDigits="0" NumberFormat-GroupSizes="3" NumberFormat-GroupSeparator="," EnabledStyle-HorizontalAlign="Right" Width="100px" ReadOnlyStyle-BorderColor="Transparent" ReadOnlyStyle-ForeColor="Black" ReadOnlyStyle-BackColor="Transparent"></telerik:RadNumericTextBox> </ItemTemplate> <FooterTemplate> <telerik:RadNumericTextBox ID="rntxtAcctRepForecastFooter" runat="server" Type="Number" DataType="System.Int32" NumberFormat-DecimalDigits="0" NumberFormat-GroupSizes="3" NumberFormat-GroupSeparator="," EnabledStyle-HorizontalAlign="Right" ReadOnly="true" ReadOnlyStyle-HorizontalAlign="Right" ReadOnlyStyle-BorderColor="Transparent" ReadOnlyStyle-ForeColor="Black" ReadOnlyStyle-BackColor="Transparent" Width="100px"></telerik:RadNumericTextBox> </FooterTemplate> </telerik:GridTemplateColumn> <telerik:GridBoundColumn DataField="QuarterlyValue" HeaderText="Quarterly" UniqueName="QuarterlyValue" HeaderStyle-HorizontalAlign="Center" ItemStyle-HorizontalAlign="Right" DataType="System.Int32" DataFormatString="{0:#,###,###,##0}"> </telerik:GridBoundColumn> <telerik:GridTemplateColumn HeaderText="OutageDays" UniqueName="OutageDays" DataField="OutageDays" ItemStyle-HorizontalAlign="Center" HeaderStyle-HorizontalAlign="Center" FooterStyle-HorizontalAlign="Center"> <ItemTemplate> <telerik:RadNumericTextBox ID="rntxtOutageDays" runat="server" Text='<%# Eval("OutageDays") %>' Type="Number" DataType="System.Int32" NumberFormat-DecimalDigits="0" NumberFormat-GroupSizes="3" NumberFormat-GroupSeparator="," EnabledStyle-HorizontalAlign="Right" Width="100px" ReadOnlyStyle-BorderColor="Transparent" ReadOnlyStyle-ForeColor="Black" ReadOnlyStyle-BackColor="Transparent"></telerik:RadNumericTextBox> </ItemTemplate> <FooterTemplate> <telerik:RadNumericTextBox ID="rntxtOutageDaysFooter" runat="server" Type="Number" DataType="System.Int32" NumberFormat-DecimalDigits="0" NumberFormat-GroupSizes="3" NumberFormat-GroupSeparator="," EnabledStyle-HorizontalAlign="Right" ReadOnly="true" ReadOnlyStyle-HorizontalAlign="Right" ReadOnlyStyle-BorderColor="Transparent" ReadOnlyStyle-ForeColor="Black" ReadOnlyStyle-BackColor="Transparent" Width="100px"></telerik:RadNumericTextBox> </FooterTemplate> </telerik:GridTemplateColumn> </Columns> <NoRecordsTemplate> <asp:Label ID="lblNoTotalsRecords" runat="server" CssClass="LabelBold" Text="No records for the filtering selections you have chosen." ViewStateMode="Disabled"></asp:Label> </NoRecordsTemplate> </MasterTableView> </telerik:RadGrid> </td> <td width="34%" nowrap="nowrap"> <telerik:RadGrid ID="rgManagementAllocationValues" runat="server" AllowFilteringByColumn="False" AllowPaging="False" AllowSorting="false" ClientSettings-AllowColumnHide="false" AutoGenerateColumns="False" ShowGroupPanel="false" ShowFooter="true" EnableHeaderContextMenu="false" OnItemDataBound="rgManagementAllocationValues_ItemDataBound"> <MasterTableView CommandItemDisplay="None" DataKeyNames="ForecastValueId,PeriodDate,ManagementAllocationValue"> <RowIndicatorColumn> <HeaderStyle Width="20px"></HeaderStyle> </RowIndicatorColumn> <ExpandCollapseColumn> <HeaderStyle Width="20px"></HeaderStyle> </ExpandCollapseColumn> <Columns> <telerik:GridTemplateColumn HeaderText="PeriodDate" UniqueName="PeriodDate" DataField="PeriodDate" FooterStyle-Font-Bold="true" ItemStyle-HorizontalAlign="Right" ItemStyle-Wrap="false" HeaderStyle-HorizontalAlign="Center"> <ItemTemplate> <%# FormatPeriodDisplay(Convert.ToDateTime(Eval("PeriodDate"))) %> </ItemTemplate> <FooterTemplate> <asp:Literal ID="lTotal" runat="server" EnableViewState="false" Text="Total:"></asp:Literal> </FooterTemplate> </telerik:GridTemplateColumn> <telerik:GridTemplateColumn HeaderText="ManagementAllocationValue" UniqueName="ManagementAllocationValue" DataField="ManagementAllocationValue" HeaderStyle-HorizontalAlign="Center" ItemStyle-HorizontalAlign="Center" FooterStyle-HorizontalAlign="Center"> <ItemTemplate> <telerik:RadNumericTextBox ID="rntxtMgmtAllocation" runat="server" Text='<%# Eval("ManagementAllocationValue") %>' Type="Number" DataType="System.Int32" NumberFormat-DecimalDigits="0" NumberFormat-GroupSizes="3" NumberFormat-GroupSeparator="," EnabledStyle-HorizontalAlign="Right" Width="100px" ReadOnlyStyle-BorderColor="Transparent" ReadOnlyStyle-ForeColor="Black" ReadOnlyStyle-BackColor="Transparent"></telerik:RadNumericTextBox> </ItemTemplate> <FooterTemplate> <telerik:RadNumericTextBox ID="rntxtMgmtAllocationFooter" runat="server" Type="Number" DataType="System.Int32" NumberFormat-DecimalDigits="0" NumberFormat-GroupSizes="3" NumberFormat-GroupSeparator="," EnabledStyle-HorizontalAlign="Right" ReadOnly="true" ReadOnlyStyle-HorizontalAlign="Right" ReadOnlyStyle-BorderColor="Transparent" ReadOnlyStyle-ForeColor="Black" ReadOnlyStyle-BackColor="Transparent" Width="100px"></telerik:RadNumericTextBox> </FooterTemplate> </telerik:GridTemplateColumn> <telerik:GridBoundColumn DataField="QuarterlyValue" HeaderText="Quarterly" UniqueName="QuarterlyValue" HeaderStyle-HorizontalAlign="Center" ItemStyle-HorizontalAlign="Right" DataType="System.Int32" DataFormatString="{0:#,###,###,##0}"> </telerik:GridBoundColumn> </Columns> <NoRecordsTemplate> <asp:Label ID="lblNoTotalsRecords" runat="server" CssClass="LabelBold" Text="No records for the filtering selections you have chosen."></asp:Label> </NoRecordsTemplate> </MasterTableView> </telerik:RadGrid> </td> </tr> </table> </ItemTemplate> <EmptyDataTemplate> <div class="RadGrid RadGrid_Default" style="border-bottom: 0px none transparent"> <table cellspacing="0" class="rgMasterTable" border="0" style="width:100%;table-layout:auto;empty-cells:show;"> <tr> <th class="rgHeader" style="text-align:left;"> </th> </tr> <tr class="rgNoRecords"> <td> <asp:Label ID="lblNoTotalsRecords" runat="server" CssClass="LabelBold" Text="No records for the filtering selections you have chosen." ViewStateMode="Disabled"></asp:Label> <br /> </td> </tr> </table> </div> <telerik:RadGrid ID="dummyGrid" runat="server" ViewStateMode="Disabled"></telerik:RadGrid> </EmptyDataTemplate> </telerik:RadListView> </asp:Panel>function rdpForecastCardView_ItemPager_OnPageIndexChanging(sender, eventArgs) { alert('here'); eventArgs.set_cancel((!Page_ClientValidate('vgMainForm'))); }