or
<telerik:RadGrid ID="gdData" runat="server" AllowSorting="True" AllowPaging="True" AllowCustomPaging="True" Height="550px" PageSize="30" GridLines="None" PagerStyle-Visible="false" OnNeedDataSource="gdData_NeedDataSource" AllowFilteringByColumn="True" AutoGenerateEditColumn="True" Skin="WebBlue"> <MasterTableView TableLayout="Auto" CommandItemDisplay="None" CurrentResetPageIndexAction="SetPageIndexToFirst" PageSize="30" EditMode="InPlace" AllowAutomaticDeletes="True" AllowAutomaticInserts="True" AllowAutomaticUpdates="True"> <CommandItemSettings ExportToPdfText="Export to Pdf" /> <ItemStyle Wrap="False" /> <AlternatingItemStyle Wrap="False" /> </MasterTableView> <ClientSettings AllowColumnsReorder="True" ReorderColumnsOnClient="True" Scrolling-SaveScrollPosition="true"> <Scrolling AllowScroll="True" UseStaticHeaders="True" ScrollHeight="100px" EnableVirtualScrollPaging="true" /> <ClientEvents OnRowCreated="AddTooltips" /> <Resizing AllowColumnResize="True" EnableRealTimeResize="False" /> </ClientSettings> <PagerStyle Visible="False" /> </telerik:RadGrid>protected void gdData_NeedDataSource(object sender, Telerik.Web.UI.GridNeedDataSourceEventArgs e){ if (GetData) { // Find out how many records have already been shown so we can work out start position int startPos = gdData.CurrentPageIndex * gdData.PageSize; this.GridData = DataAccess.GetData(CurrentConStr, cbTable.SelectedValue, startPos, gdData.PageSize); gdData.VirtualItemCount = this.GridData.recordcount; gdData.DataSource = this.GridData.Ds.Tables[0]; }}
<ClientEvents OnGridCreated="OnGridCreated" OnRowClick="OnGridRowClick" OnRowSelected="EventTest" />sender.clearActiveRow();var element = sender.MasterTableView.get_dataItems()[1].get_element();sender.set_activeRow(element);sender.repaint();
var popupPage = oWnd.get_windowManager().getWindowByName(callerName); popuPage.get_contentFrame().contentWindow.ProcessClose(args);<
telerik.web.ui>
<
radCompression>
<
excludeHandlers>
<
add handlerPath="rptcurrentactivity.aspx" matchExact="false"/>
</
excludeHandlers>
</
radCompression>
</
telerik.web.ui>
