<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="TestPage.aspx.cs" Inherits="FirstTitle.Web.TestPage" %> <!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"> <meta http-equiv="X-UA-Compatible" content="IE=8" /> <title>Grid Test</title> <style media="screen" type="text/css"> html, body { margin: 0; padding: 0; height: 100%; } #container { min-height: 100%; position: relative; _height:100%; /* Hack for IE 6 and below to fix up the crappy layout model */ } #header { padding: 0px; } #content { padding-left: 25px; padding-bottom: 1em; /* Height of the footer */ } #footer { position: absolute; bottom: 0; width: 100%; height: 1em; /* Height of the footer */ } .contentDiv { overflow: auto; position: relative; *padding-bottom: 18px; /* Hack for IE 7 and below to fix up the crappy scrolling model */ *overflow-y: hidden; /* Hack for IE 7 and below to fix up the crappy scrolling model: * = IE7 and lower, _ = IE6 and lower */ } .RadGrid { padding-right: 18px; /* Allows (to some degree) the right most column to be resized */ } .paneIE { *position: relative; } </style> <telerik:RadStyleSheetManager id="RadStyleSheetManager1" runat="server" /> </head> <body> <form id="form1" runat="server"> <telerik:RadScriptManager ID="RadScriptManager1" runat="server"> <Scripts> <%--Needed for JavaScript IntelliSense in VS2010--%> <%--For VS2008 replace RadScriptManager with ScriptManager--%> <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.Core.js" /> <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.jQuery.js" /> <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.jQueryInclude.js" /> </Scripts> </telerik:RadScriptManager> <telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server" /> <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server" /> <telerik:RadSkinManager ID="RadSkinManager1" Runat="server" Skin="WebBlue" /> <telerik:RadFormDecorator ID="RadFormDecorator1" runat="server" DecoratedControls="All" /> <div id="container"> <div id="header"> <table width="100%" border="0" cellpadding="0" cellspacing="0"> <tr valign="top"> <td colspan="2" valign="top"> <p>Header</p> </td> </tr> <tr> <td valign="top" style="padding-left: 25px; padding-bottom: 3px; padding-top: 3px;"> <p>Language Select</p> </td> <td align="right" valign="top"> <p>| Logout |</p> </td> </tr> </table> </div> <div id="content"> <div class="contentDiv"> <telerik:RadGrid ID="rgPolicies" runat="server" GroupingEnabled="false" GridLines="None" BorderStyle="None" AllowPaging="True" PageSize="5" AutoGenerateColumns="False" AllowFilteringByColumn="True" AllowSorting="True" OnPageIndexChanged="rgPolicies_PageIndexChanged" OnNeedDataSource="rgPolicies_NeedDataSource"> <ClientSettings EnableAlternatingItems="True" EnableRowHoverStyle="True" AllowDragToGroup="false" AllowColumnHide="true" ColumnsReorderMethod="Reorder" AllowColumnsReorder="True" ReorderColumnsOnClient="True"> <Resizing AllowColumnResize="True" ResizeGridOnColumnResize="True" EnableRealTimeResize="True" /> <Selecting AllowRowSelect="True" /> </ClientSettings> <MasterTableView ClientDataKeyNames="OrderNo" AllowMultiColumnSorting="True" AllowNaturalSort="True" EnableHeaderContextMenu="true"> <Columns> <telerik:GridBoundColumn DataField="OrderNo" SortExpression="OrderNo" HeaderText="Order No"> <HeaderStyle Width="125px" /> </telerik:GridBoundColumn> <telerik:GridBoundColumn DataField="PolicyNumber" SortExpression="PolicyNumber" HeaderText="Policy Number"> <HeaderStyle Width="125px" /> </telerik:GridBoundColumn> <telerik:GridBoundColumn DataField="OfficeName" SortExpression="OfficeName" HeaderText="Office"> <HeaderStyle Width="125px" /> </telerik:GridBoundColumn> <telerik:GridBoundColumn DataField="CustomerReference" SortExpression="CustomerReference" HeaderText="Reference"> <HeaderStyle Width="125px" /> </telerik:GridBoundColumn> <telerik:GridBoundColumn DataField="LoanNumber" SortExpression="LoanNumber" HeaderText="Loan Numbers" AllowFiltering="false" AllowSorting="false"> <HeaderStyle Width="125px" /> </telerik:GridBoundColumn> <telerik:GridBoundColumn DataField="BorrowerName" SortExpression="BorrowerName" HeaderText="Participants" AllowFiltering="false" AllowSorting="false"> <HeaderStyle Width="125px" /> </telerik:GridBoundColumn> <telerik:GridBoundColumn DataField="SecurityAddress" SortExpression="SecurityAddress" HeaderText="Properties" AllowFiltering="false" AllowSorting="false"> <HeaderStyle Width="125px" /> </telerik:GridBoundColumn> <telerik:GridBoundColumn DataField="LogPointDescription" SortExpression="LogPointDescription" HeaderText="Current Log Point"> <HeaderStyle Width="175px" /> </telerik:GridBoundColumn> <telerik:GridBoundColumn DataField="OrderStatusTypeDescription" SortExpression="OrderStatusTypeDescription" HeaderText="Order Status"> <HeaderStyle Width="175px" /> </telerik:GridBoundColumn> <telerik:GridBoundColumn DataField="PolicyStatusDescription" SortExpression="PolicyStatusDescription" HeaderText="Policy Status"> <HeaderStyle Width="175px" /> </telerik:GridBoundColumn> <telerik:GridDateTimeColumn DataField="CreatedDTime" SortExpression="CreatedDTime" HeaderText="Created" FilterControlWidth="100px"> <HeaderStyle Width="150px" /> </telerik:GridDateTimeColumn> <telerik:GridDateTimeColumn DataField="LastModDTime" SortExpression="LastModDTime" HeaderText="Modified" FilterControlWidth="100px"> <HeaderStyle Width="150px" /> </telerik:GridDateTimeColumn> <telerik:GridBoundColumn DataField="SalesOrderID" HeaderText="Sales Order ID" Visible="False"></telerik:GridBoundColumn> </Columns> </MasterTableView> <PagerStyle Mode="NextPrevNumericAndAdvanced" AlwaysVisible="True"></PagerStyle> </telerik:RadGrid> </div> </div> <div> <p><br /> M<br /> o<br /> r<br /> e<br /> <br /> C<br /> o<br /> n<br /> t<br /> e<br /> n<br /> t<br /> </p> </div> <div id="footer"> <p>Footer</p> </div> </div> </form> </body> </html> using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.UI; using System.Web.UI.WebControls; using System.Data; using Telerik.Web.UI; namespace FirstTitle.Web { public partial class TestPage : System.Web.UI.Page { [Serializable] public struct Policy { public long SalesOrderID { get; set; } public long OrderNo { get; set; } public string PolicyNumber { get; set; } public string OfficeName { get; set; } public string CustomerReference { get; set; } public string LoanNumber { get; set; } public string BorrowerName { get; set; } public string SecurityAddress { get; set; } public string LogPointDescription { get; set; } public string OrderStatusTypeDescription { get; set; } public string PolicyStatusDescription { get; set; } public DateTime CreatedDTime { get; set; } public DateTime LastModDTime { get; set; } } protected void rgPolicies_NeedDataSource(object source, GridNeedDataSourceEventArgs e) { rgPolicies.DataSource = GetDataSource(); rgPolicies.CurrentPageIndex = (int)Session["CurrentPagingIndex"]; } protected void rgPolicies_PageIndexChanged(object source, GridPageChangedEventArgs e) { Session["CurrentPagingIndex"] = e.NewPageIndex; Policy[] ds = (Policy[])Session["SearchResultSet"]; rgPolicies.CurrentPageIndex = e.NewPageIndex; rgPolicies.DataSource = ds; rgPolicies.DataBind(); } private Policy[] GetDataSource() { Policy[] ds; if (Session["SearchResultSet"] == null) { DoSearch(); } ds = Session["SearchResultSet"] as Policy[]; return ds; } private void DoSearch() { Policy[] ds = new Policy[20]; for (long i = 0; i < ds.Length; i++) { long id = i + 1; ds[i].SalesOrderID = id; ds[i].OrderNo = id * 1000; ds[i].PolicyNumber = "POL" + (id * 10000).ToString(); ds[i].OfficeName = "Office"; ds[i].CustomerReference = "REF" + (id * 100).ToString(); ds[i].LoanNumber = "LN" + id.ToString(); ds[i].BorrowerName = "Borrower"; ds[i].SecurityAddress = "Address"; ds[i].LogPointDescription = "Log Point Name"; ds[i].OrderStatusTypeDescription = "Order Status"; ds[i].PolicyStatusDescription = "Policy Status"; ds[i].CreatedDTime = DateTime.Now.AddDays(id + 1 * -1); ds[i].LastModDTime = DateTime.Now.AddDays(id * -1); } Session["SearchResultSet"] = ds; Session["CurrentPagingIndex"] = 0; rgPolicies.MasterTableView.Rebind(); } } } <telerik:RadComboBox ID="rdCmbBoxQFind" runat="server" EnableEmbeddedSkins="false" CssClass="Test" MarkFirstMatch="false" EnableLoadOnDemand="true" DropDownWidth="725px" OffsetX="-567" EnableItemCaching="true" AutoPostBack="false" EmptyMessage="Enter Name or Acronym" MaxLength="130" ShowToggleImage="false" ShowDropDownOnTextboxClick="true" OnClientBlur="QFOnClientBlur" OnClientTextChange="QFOnClientTextChange" EnableTextSelection="false" OnClientItemsRequesting="QFOnClientItemsRequesting" OnClientItemsRequested="QFOnClientItemsRequested" OnClientItemsRequestFailed="QFOnClientItemsRequestFailed" ChangeTextOnKeyBoardNavigation="false" OnClientSelectedIndexChanged="QFOnClientSelectedIndexChanged" OnClientSelectedIndexChanging="QFOnClientSelectedIndexChanging" OnClientDropDownClosing="QFOppClick" OnClientKeyPressing="QFOnClientKeyPressing"> <HeaderTemplate>No result(s) found.</HeaderTemplate> </telerik:RadComboBox>1. It does not seem like the quickfind additional information service is being called when using the down arrow key. After I perform a search and results are returned I use the down arrow to scroll through the data and the addtl info box is not updating. If I use the up arrow it looks to be working correctly.
<telerik:RadComboBox ID="rdCmbBoxQFind" runat="server" Skin="Custom" EnableEmbeddedSkins="false" CssClass="Custom" MarkFirstMatch="false" EnableLoadOnDemand="true" DropDownWidth="725px" OffsetX="-567" EnableItemCaching="true" AutoPostBack="false" EmptyMessage="Enter Name or Acronym" MaxLength="130" ShowToggleImage="false" ShowDropDownOnTextboxClick="true" OnClientBlur="QFOnClientBlur" OnClientTextChange="QFOnClientTextChange" EnableTextSelection="false" OnClientItemsRequesting="QFOnClientItemsRequesting" OnClientItemsRequested="QFOnClientItemsRequested" OnClientItemsRequestFailed="QFOnClientItemsRequestFailed" ChangeTextOnKeyBoardNavigation="false" OnClientSelectedIndexChanged="QFOnClientSelectedIndexChanged" OnClientSelectedIndexChanging="QFOnClientSelectedIndexChanging" OnClientDropDownClosing="QFOppClick" OnClientKeyPressing="QFOnClientKeyPressing"> <WebServiceSettings Path="~/WS/QuickFind.asmx" Method="GetData" /> <HeaderTemplate>No result(s) found.</HeaderTemplate> </telerik:RadComboBox><telerik:GridBoundColumn DataField="CurrentPaymentOrCharge" DataType="System.Decimal" HeaderText="Current Payment Or Charge" SortExpression="CurrentPaymentOrCharge" UniqueName="CurrentPaymentOrCharge" DataFormatString="{0:C}" CurrentFilterFunction="NotEqualTo" CurrentFilterValue="0"> </telerik:GridBoundColumn>the Tooltip works great in all browsers except IE 6.0, even though i set the Position to MiddleRight, it displays on MiddleLeft in IE6.0
IE7.0,IE8.0,Firefox,Chrome,Safari position is MiddleRight, no issues there.
IE6.0 MiddleLeft is the issue
<%@ Page Title="" Language="C#" MasterPageFile="~/OCM.master" AutoEventWireup="true" CodeFile="OCM_ProviderWelcome.aspx.cs" Inherits="OCM_ProviderWelcome" %> <%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %> <asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server"> </asp:Content> <asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server"> <div class="ContentTop"> <br/> <div class="BreadCrumb"> <div class="GreenBreadCrumb">Provider Information</div> <div class="BreadCrumbSep"> </div> <div class="BlueBreadCrumb">Member Information</div> <div class="BreadCrumbSep"> </div> <div class="BlueBreadCrumb">Confirmation</div> </div> </div> <div style="clear:both;"/> <table class="ContentWrapper"> <tr> <td class="ContentLeft"> <table cellpadding="0" cellspacing="0" border="0" class="ContentCenter"> <tr> <td class="ContentCenter"> <div style="clear:both;"></div><br/> <script type="text/javascript"> // We need to keep the last tooltip with ShowEvent="OnFocus", as it might be closed // by the time the beforeunload event fires, but its target element might still have the // focus. var lastActiveToolTip = null; function OnClientShow(sender, args) { lastActiveToolTip = sender; } // When ShowEvent="OnFocus", the RadToolTip handles the blur event of the target element. // In case you set the focus on that element, e.g. click inside one of the TextBoxes, // and then immediately close the browser window, the blur event is fired before the // unload. Therefore, the framework tries to execute all handlers for the blur event. // However, at this point the document may have unloaded and we will get an "Unspecified error". // As the code that handles this is part of the ajax framework, we can workaround the problem // in the beforeunload handler - detach the handlers for the active tooltip. function beforeunload() { var activeTooltip = Telerik.Web.UI.RadToolTip.getCurrent(); if (!activeTooltip) activeTooltip = lastActiveToolTip; if (activeTooltip) { var targetElement = activeTooltip.get_targetControl(); activeTooltip._registerMouseHandlers(targetElement, false); } }; if (Sys.Browser.agent == Sys.Browser.InternetExplorer) { window.attachEvent('onbeforeunload', beforeunload); } function Hilite(me, focus) { me.style.backgroundColor = false != focus ? "#ffffcc" : "white"; } </script> <telerik:RadToolTipManager runat="server" ID="RadToolTip5" EnableShadow="true" ShowEvent="OnFocus" OnClientShow="OnClientShow" Skin="Sitefinity" ShowDelay="200" AutoCloseDelay="5000" Width="300px" Animation="Resize" Position="MiddleRight" RelativeTo="Element"> <TargetControls> <telerik:ToolTipTargetControl TargetControlID="txtTaxID" /> </TargetControls> </telerik:RadToolTipManager> <div class="Form"> <div class="Elements"> <p class="ElementLabel"> Horizon Blue Cross Blue Shield of New Jersey is very excited to present to you, as a provider, the opportunity to select a member to join your Oncology Care Model (OCM) available through <a href="http://www.horizonhealthcareinnovations.com/" target="_blank" class="BodyLink">Horizon Healthcare Innovations</a>. The OCM is a specialty care model that will help your Horizon BCBSNJ patients navigate the health care system and allow them to take greater control of their health and wellness. <br/><br/> We encourage you to select a member for your OCM now. Please enter your Tax ID number below. You then will be asked to select a member to join your OCM. </p><br/> </div> <div style="clear:both;"></div> <div class="SectionHeader"> Enter your Tax ID Number </div> <div class="Elements"> <div class="ThreeCols"><span class="ElementLabel"><span class="RequiredField">*</span>Tax Identification Number</span></div> <div style="clear:both;"></div> <div class="IE7_Dummy"> <div class="ThreeCols"> <asp:TextBox CssClass="ResetTextBox" ID="txtTaxID" onfocus="Hilite(this)" onblur="Hilite(this, false)" TabIndex="1" runat="server" MaxLength="9" ToolTip="Enter your nine-digit Tax ID Number in this format: 123456789"></asp:TextBox> </div> </div> <div style="clear:both;"></div><br/> </div> <asp:PlaceHolder runat="server" ID="phError" Visible="false" /> <br/> <asp:Label runat="server" ID="lblTaxIDError" Visible="true" CssClass="RequiredField"/><br/> </div> </td> </tr> </table> </td> <td class="ContentRight"><img src="images/dummy.gif" alt="" border="0" /></td> </tr> </table> <div class="OneButtonFooter"> <div> <div class="LeftButton"></div> <asp:LinkButton runat="server" ID="lnkButton2" Style="text-decoration:none;" onclick="btnNext_Click"><div class="RightButton"><span class="ButtonText">NEXT >></span></div></asp:LinkButton> </div> </div> </asp:Content>
I have a grid configured to use ADO.NET Web Services (oData) and I'd like to refresh the grid
http://demos.telerik.com/aspnet-ajax/grid/examples/clientbinding/defaultcs.aspx
How do I accomplish this?
<telerik:RadGrid runat="server" ID="RadGrid2" AllowPaging="true"
AllowSorting="true" AllowFilteringByColumn="true"
AllowMultiRowSelection = "false"
AutoGenerateColumns="false"
PageSize="7"
HeaderStyle-HorizontalAlign ="Center"
GroupingSettings-CaseSensitive="false"
>
<MasterTableView DataKeyNames="Vendorkey" CommandItemDisplay="None" ClientDataKeyNames="Vendorkey">
<Columns>
<%
-- <telerik:GridBoundColumn DataField="ProductID" HeaderText="ProductID" DataType="System.Int32" />
<telerik:GridBoundColumn DataField="ProductName" HeaderText="ProductName" DataType="System.String" />
<telerik:GridBoundColumn DataField="UnitsInStock" HeaderText="UnitsInStock" DataType="System.Int32" />
--
%>
<telerik:GridBoundColumn DataField="Vendorkey" Display="false" >
<ItemStyle Width ="150px" />
</telerik:GridBoundColumn>
<telerik:GridBoundColumn DataField="VendorName" HeaderText="Name" >
<ItemStyle Width ="250px" />
</telerik:GridBoundColumn>
<telerik:GridBoundColumn DataField="VendorGroup" HeaderText="Lawson #" />
<telerik:GridBoundColumn DataField="Vendor" HeaderText="Vendor #" />
<%
-- <telerik:GridBoundColumn DataField="ClassDescription" HeaderText="Class" />--%>
<telerik:GridBoundColumn DataField="VendorStatus" HeaderText="Status" />
<telerik:GridBoundColumn DataField="City" HeaderText="City" />
<telerik:GridBoundColumn DataField="State" HeaderText="State">
<ItemStyle Width="15px" />
</telerik:GridBoundColumn>
<%
-- The following is used to drive the lower grid--%>
<telerik:GridBoundColumn DataField="ParentID" HeaderText="ParentID" Display="false"/>
<telerik:GridBoundColumn DataField="ParentName" HeaderText="Parent Name" >
<ItemStyle Width ="250px" />
</telerik:GridBoundColumn>
<%
-- <telerik:GridTemplateColumn UniqueName="SourceCompanyMapColumn" HeaderText="Map" AllowFiltering="False">
<ItemTemplate>
<asp:ImageButton ID="imgMap" runat="server" ImageUrl="~/App_Themes/NFP/Images/grid/edit_record.png">
</asp:ImageButton>
</ItemTemplate>
</telerik:GridTemplateColumn>--
%>
</Columns>
<PagerStyle Mode="Slider" />
</MasterTableView>
<ClientSettings>
<Scrolling AllowScroll="False" EnableVirtualScrollPaging="True" UseStaticHeaders="True" SaveScrollPosition="True"/>
<Selecting AllowRowSelect="true" />
<ClientEvents OnRowSelected="rowSelected" OnCommand="gridTopCommand"
/>
<DataBinding Location="/Services/VendorDataService.svc" SelectCountMethod="GetTopCount" >
<DataService TableName="vDataMapperVendorTop" />
</DataBinding>
</ClientSettings>
</telerik:RadGrid>
<telerik:AjaxSetting AjaxControlID="divAMGGrid">
<UpdatedControls>
<telerik:AjaxUpdatedControl ControlID="divSolveGrid" />
</UpdatedControls>
</telerik:AjaxSetting>
<telerik:AjaxSetting AjaxControlID="divSolveGrid">
<UpdatedControls>
<telerik:AjaxUpdatedControl ControlID="divSolveGrid" />
</UpdatedControls>
</telerik:AjaxSetting>
Any help will be very much appreciated.
Thanks,
Kapil
<telerik:GridButtonColumn ButtonType="LinkButton" UniqueName="PaymentViews" Text="Payments" CommandName="AddPayment" />
If e.CommandName = "AddPayment" Then
'If GridDeleiverables.SelectedItems.Count > 0 Then
Dim DataKey As Integer = e.Item.OwnerTableView.DataKeyValues(e.Item.ItemIndex)("DelRecordID")
Session("DeliverableID") = DataKey
GridPaymentDrawdown.Rebind()
PanelPaymentDrawdown_ModalPopupExtender.Show()
'End If
End If