I have a RadGrid in an ASP page. The grid is grouped by a column containing organization names. There is also a column containing prices and I want to sum them up in the group footer (and in the grid footer as well). So far so good. I can add Aggregate="Custom" to the column I want to sum.
There is also a column containing checkboxes. I want to exclude the rows where the checkbox is checked. So instead I add Aggregate="Custom" to the column and OnCustomAggregate="rg_CustomAggregate" on the grid. Now I need to implement this method rg_CustomAggregate but I'm struggling with how to actually browse through the rows in order to sum the price in the rows with the unchecked checkboxes.
The base for the method looks like this so far:
protected void rg_CustomAggregate(object sender, GridCustomAggregateEventArgs e){ int sum = 0; if (e.Item is GridGroupFooterItem) { // TODO: The magic. e.Result = sum; } if (e.Item is GridFooterItem) { // TODO: Som other magic. e.Result = sum; }}Any tips on how the magic should be implemented is gladly accepted. I have had a hard time finding examples of this on the web.
<telerik:RadTabStrip ID="RadTabStrip1" runat="server" MultiPageID="PartyHistorysPages" Skin="" Width="100%" ScrollChildren="true" ScrollButtonsPosition="Right" OnTabClick="RadTabStrip1_TabClick">Hello!
I have a radGrid and I am doing client-side binding. And I am using PagerStyle Mode="NextPrevAndNumeric"
So when client changes the pageSize the radgrid disappears
I set property AlwaysVisible to true, but it doesn't work
<PagerStyle Mode="NextPrevAndNumeric" Position="TopAndBottom" PageSizeControlType="RadComboBox" AlwaysVisible="true"></PagerStyle>
Hello
I have an issue, the radgrid disappears when I change the page size of the grid
<PagerStyle Mode="NextPrevAndNumeric" Position="TopAndBottom" PageSizeControlType="RadComboBox"></PagerStyle>
<telerik:RadGrid runat="server" ID="rgdGroupOrder" CellSpacing="0" GridLines="None" Culture="en-AU"><telerik:GridBoundColumn DataField="ScheduleDateTime" DataType="System.DateTime" FilterControlAltText="Filter ScheduleDateTime column" HeaderText="Schedule Date/Time" SortExpression="ScheduleDateTime" UniqueName="ScheduleDateTime" ></telerik:GridBoundColumn><telerik:GridBoundColumn DataField="ScheduleDateTime" DataType="System.DateTime" FilterControlAltText="Filter ScheduleDateTime column" HeaderText="Schedule Date/Time" SortExpression="ScheduleDateTime" UniqueName="ScheduleDateTime" DataFormatString="{0:g}"></telerik:GridBoundColumn>Hi. I'm trying to export data to Excel using BIFF with Telerik version 2016.3.1027.40-. The data that needs to be included in the spreadsheet is in a detail table with paging. My code successfully exports data only on the first page displayed on the UI. I've implemented the suggestion here https://docs.telerik.com/devtools/aspnet-ajax/controls/grid/functionality/exporting/overview#ignorepaging-not-working-on-detailtables-excel-export to disable paging but it didn't work in my case. Can someone tell me how I can achieve this functionality given this as my view code
<telerik:Radgrid Rendermode="Lightweight" ID="RadGrid1" runat="server" showstatusbar="true" autogeneratecolumns="False" AllowFilteringByColumn="True" pagesize="10" allowsorting="True" allowmultirowselection="False" allowpaging="True" Filtertype="Combined" onneeddatasource="RadGrid1_NeedDataSource" oniteminserted="RadGrid1_ItemInserted" onitemcommand="RadGrid1_ItemCommand" oninsertcommand="RadGrid1_InsertCommand" onupdatecommand="RadGrid1_UpdateCommand" onitemdatabound="RadGrid1_ItemDataBound" ondetailtabledatabind="RadGrid1_DetailTableDataBind" OnDeleteCommand="RadGrid1_DeleteCommand" Skin="Outlook" OnItemCreated="RadGrid1_ItemCreated" ShowExportToExcelButton="true" onBiffExporting="RadGrid1_BiffExporting"> <MasterTableView AutoGenerateColumns="False" UniqueName="CATDESCRIPTION" AllowMultiColumnSorting="True" DataKeyNames="CAT_DESCRIPTION" PagerStyle-AlwaysVisible="true" EditMode="InPlace" CommandItemDisplay="Top"> <DetailTables> <telerik:GridTableView DataKeyNames="pk" Name="Codes" TableLayout="Auto" EditMode="InPlace" PagerStyle-AlwaysVisible="true" CommandItemDisplay="Top"> <CommandItemSettings ShowExportToExcelButton="true" /> <CommandItemSettings AddNewRecordText="Add Rule" />Additional code omitted...
and this is part of the code-behind:
protected void RadGrid1_ItemCommand(object source, GridCommandEventArgs e) { if (e.CommandName.Equals(Telerik.Web.UI.RadGrid.ExportToExcelCommandName)) { RadGrid1.ExportSettings.Excel.Format = GridExcelExportFormat.Biff; RadGrid1.ExportSettings.FileName = "Output"; RadGrid1.ExportSettings.ExportOnlyData = true; RadGrid1.ExportSettings.OpenInNewWindow = true; //disable paging on the main grid for the export operation RadGrid1.ExportSettings.IgnorePaging = false; //expand detail tables RadGrid1.MasterTableView.HierarchyDefaultExpanded = true; RadGrid1.MasterTableView.DetailTables[0].HierarchyDefaultExpanded = true; foreach (GridTableView tbl in RadGrid1.MasterTableView.DetailTables) { tbl.HierarchyDefaultExpanded = true; //disable paging for the detail grids for the export operation tbl.AllowPaging = false; } }}Hello,
I have a graph containing several "LinesSeries". Each "LinesSeries" contains several points on the X axis but always the same value on Y (different value between the series)
I would like to know if it is possible to display the label of each serie only once and on the first point of each series.
thank you
Hello, I am looking at this product to see if it can meet my needs. What I have is an asp.net web form with C# code behind with 5 asp.net grid views on the page. I have a lot of jquery and css customization including custom colors for the grid rows that I need an ability on an asp:button press event convert my grid to a pdf with the custom row colors.
Is this something your product can handle? Do you have demo tutorial on how to do such? I have looked but have not found it.
| <MasterTableView> |
| <Columns> |
| <telerik:GridBoundColumn UniqueName="Description" DataField="Description" HtmlEncode="true" /> |
| </Columns> |
| </MasterTableView> |
| <ClientSettings> |
| <DataBinding Location="WebService.asmx" SelectMethod="GetData" /> |
| </ClientSettings> |