Hi
I have a RadPivotTable with a RadHTMLChart. I need the chart to show the value in percentage in a Pie format.
For example I have values is 500, 250 and 250 and the total of the pivot row is 1000. I want to see the percentage in the pie : 50%, 25%, 25%.
Is this possible?
<
telerik:RadPivotGrid
ID
=
"grdTotalTimings"
runat
=
"server"
AllowPaging
=
"true"
PageSize
=
"10"
Skin
=
"WebBlue"
Width
=
"30em"
ShowDataHeaderZone
=
"false"
ShowRowHeaderZone
=
"false"
ShowColumnHeaderZone
=
"false"
OnNeedDataSource
=
"grdTotalTimings_NeedDataSource"
OnCellDataBound
=
"grdTotalTimings_CellDataBound"
>
<
Fields
>
<
telerik:PivotGridReportFilterField
DataField
=
"Period"
></
telerik:PivotGridReportFilterField
>
<
telerik:PivotGridRowField
DataField
=
"AreaName"
></
telerik:PivotGridRowField
>
<
telerik:PivotGridAggregateField
DataField
=
"Amount"
Aggregate
=
"Sum"
DataFormatString
=
"{0:N0}"
></
telerik:PivotGridAggregateField
>
<
telerik:PivotGridAggregateField
DataField
=
"Value"
Aggregate
=
"Sum"
DataFormatString
=
"{0:C}"
></
telerik:PivotGridAggregateField
>
</
Fields
>
</
telerik:RadPivotGrid
>
<
telerik:RadHtmlChart
ID
=
"chrTotalTimings"
runat
=
"server"
Transitions
=
"true"
>
<
PlotArea
>
<
Series
>
<
telerik:PieSeries
StartAngle
=
"90"
>
<
LabelsAppearance
Position
=
"Center"
DataFormatString
=
"[0] %"
></
LabelsAppearance
>
<
TooltipsAppearance
Color
=
"White"
DataFormatString
=
"[0] %"
></
TooltipsAppearance
>
</
telerik:PieSeries
>
</
Series
>
</
PlotArea
>
</
telerik:RadHtmlChart
>
the content of the pie is filled in CellDataBound at this moment (simular like in this demo : http://demos.telerik.com/aspnet-ajax/pivotgrid/examples/applicationscenarios/chartintegration/defaultcs.aspx )
Thanks for any help
Suzy
I have a nested grid & need to show a few footers. The child footers show correctly, but the parent footers do not. Only 1 of the 2 parent footers displays & it displays under the wrong column.
I've attached a screenshot of my grid, showing the footers.
Here is my code
<
telerik:RadGrid
ID
=
"RadGrid1"
runat
=
"server"
ShowStatusBar
=
"false"
AutoGenerateColumns
=
"False"
AllowSorting
=
"True"
AllowMultiRowSelection
=
"true"
AllowPaging
=
"false"
GridLines
=
"none"
ShowFooter
=
"true"
OnNeedDataSource
=
"RadGrid1_NeedDataSource"
OnDetailTableDataBind
=
"RadGrid1_DetailTableDataBind"
ClientSettings-Scrolling-AllowScroll
=
"true"
ClientSettings-Scrolling-UseStaticHeaders
=
"true"
OnDataBound
=
"RadGrid1_DataBound"
>
<
MasterTableView
DataKeyNames
=
"ProjectID"
AllowMultiColumnSorting
=
"false"
HierarchyLoadMode
=
"Conditional"
Name
=
"ParentGrid"
ShowFooter
=
"true"
>
<
DetailTables
>
<
telerik:GridTableView
DataKeyNames
=
"DataElementID"
Name
=
"DataElementID"
Width
=
"100%"
>
<%-- Child --%>
<
HeaderStyle
Font-Bold
=
"true"
/>
<
Columns
>
<
telerik:GridClientSelectColumn
UniqueName
=
"deSelectColumn"
HeaderStyle-Width
=
"5%"
></
telerik:GridClientSelectColumn
>
<
telerik:GridTemplateColumn
UniqueName
=
"first"
HeaderText
=
"1st"
HeaderStyle-Width
=
"5%"
>
<
ItemTemplate
>
<
asp:CheckBox
ID
=
"CheckBox1"
runat
=
"server"
/>
</
ItemTemplate
>
</
telerik:GridTemplateColumn
>
<
telerik:GridBoundColumn
DataField
=
"DataElementID"
UniqueName
=
"DataElementID"
HeaderText
=
"Data Element ID"
DataType
=
"System.Int16"
Display
=
"false"
/>
<
telerik:GridBoundColumn
DataField
=
"ProjectAreaDescription"
UniqueName
=
"ProjectAreaDescription"
HeaderText
=
"Project Area Description"
DataType
=
"System.String"
HeaderStyle-Width
=
"50%"
Aggregate
=
"Count"
FooterText
=
"Total Count: "
/>
<
telerik:GridBoundColumn
DataField
=
"ProjectDataType"
UniqueName
=
"ProjectDataType"
HeaderText
=
"Project Data Type"
DataType
=
"System.String"
HeaderStyle-Width
=
"40%"
Aggregate
=
"Custom"
FooterText
=
"Total Selected: 0"
/>
</
Columns
>
</
telerik:GridTableView
>
</
DetailTables
>
<%-- Parent --%>
<
HeaderStyle
Font-Bold
=
"true"
/>
<
Columns
>
<
telerik:GridBoundColumn
DataField
=
"ProjectID"
UniqueName
=
"ProjectID"
HeaderText
=
"Project ID"
DataType
=
"System.Int16"
Groupable
=
"true"
Display
=
"false"
/>
<
telerik:GridBoundColumn
DataField
=
"ProjectNumber"
UniqueName
=
"ProjectNumber"
HeaderText
=
"Project Number"
DataType
=
"System.String"
HeaderStyle-Width
=
"20%"
Aggregate
=
"Count"
FooterText
=
"Total Number of Distict Projects: "
/>
<
telerik:GridBoundColumn
DataField
=
"ContractNumber"
UniqueName
=
"ContractNumber"
HeaderText
=
"Contract Number"
DataType
=
"System.String"
HeaderStyle-Width
=
"20%"
/>
<
telerik:GridBoundColumn
DataField
=
"ProjectName"
UniqueName
=
"ProjectName"
HeaderText
=
"Project Name"
DataType
=
"System.String"
HeaderStyle-Width
=
"60%"
Aggregate
=
"Custom"
FooterText
=
"Total # Selected: "
/>
</
Columns
>
</
MasterTableView
>
<
ClientSettings
>
<
Scrolling
AllowScroll
=
"true"
UseStaticHeaders
=
"true"
/>
<
Resizing
AllowColumnResize
=
"false"
/>
<
Selecting
AllowRowSelect
=
"True"
UseClientSelectColumnOnly
=
"true"
/>
</
ClientSettings
>
</
telerik:RadGrid
>
As shown in the attached, the footer for ProjectNumber is not displaying at all & the footer for ProjectName is showing under Contract Number (which doesn't have a footer). The ProjectName footer is a custom aggregate & is being properly set in the RadGrid1_DataBound function. So I have a grasp of how this is done, but I don't understand why one is displaying & the other is displaying in the wrong area.
Can someone please explain?
Thanks!
Tonya
Hello, I created radbuttons (CheckBox) dynamically, but I need to get the value of each. Design I have appointed the button with the name "chkParameterType".
My code generates eight buttons and want to know which one has been selected.
Please Help Me
<asp:Panel ID="ListViewPanel1" runat="server">
<telerik:RadListView ID="RadListView1" DataSourceID="SqlDataSource1" runat="server"
ItemPlaceholderID="CandidatosContainer" DataKeyNames="NOMBRE" AllowPaging="true"
AllowMultiItemSelection="false" >
<LayoutTemplate>
<table cellpadding="0" cellspacing="0" width="100%">
<tr>
<td>
<telerik:RadDataPager ID="RadDataPager1" runat="server" PagedControlID="RadListView1"
PageSize="20" CssClass="pagerStyle" Visible="false">
<Fields>
<telerik:RadDataPagerButtonField FieldType="FirstPrev"></telerik:RadDataPagerButtonField>
<telerik:RadDataPagerButtonField FieldType="Numeric" PageButtonCount="6"></telerik:RadDataPagerButtonField>
<telerik:RadDataPagerButtonField FieldType="NextLast"></telerik:RadDataPagerButtonField>
<telerik:RadDataPagerPageSizeField PageSizeComboWidth="60" PageSizeText="Page size: "></telerik:RadDataPagerPageSizeField>
<telerik:RadDataPagerGoToPageField CurrentPageText="Page: " TotalPageText="of" SubmitButtonText="Go"
TextBoxWidth="25"></telerik:RadDataPagerGoToPageField>
</Fields>
</telerik:RadDataPager>
</td>
</tr>
</table>
<div class="RadListView RadListView_<%# Container.Skin %>">
<asp:PlaceHolder ID="CandidatosContainer" runat="server"></asp:PlaceHolder>
</div>
<div class="clearFix">
</div>
</LayoutTemplate>
<ItemTemplate>
<fieldset class="fieldset">
<legend>
Candidato: <%# Eval("COD_POSTULACION") %>
</legend>
<table class="dataTable">
<tr class="rlvI">
<td>
<table class="itemTable">
<tr>
<td>
<table class="innerItemTable">
<tr>
<td class="itemCellLabel">
Nombre:
</td>
<td class="itemCellInfo">
<%#Eval("NOMBRE")%>
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
<td class="image">
<telerik:RadBinaryImage ID="RadBinaryImage1" runat="server" AlternateText="FOTO"
ToolTip="Contact Photo" Width="90px" Height="110px" ResizeMode="Fit" DataValue='<%# Eval("FOTO") == DBNull.Value? new System.Byte[0]: Eval("FOTO") %>'></telerik:RadBinaryImage>
</td>
</tr>
<tr>
<telerik:RadButton ToggleType="CheckBox"
ButtonType="StandardButton"
runat="server"
ID="chkParameterType"
AutoPostBack="False">
<ToggleStates>
<telerik:RadButtonToggleState Text="Seleccionado" PrimaryIconCssClass="rbToggleCheckboxChecked"/>
<telerik:RadButtonToggleState Text="Sin Seleccionar" PrimaryIconCssClass="rbToggleCheckbox" />
</ToggleStates>
</telerik:RadButton>
</tr>
</table>
</fieldset>
</ItemTemplate>
<EmptyDataTemplate>
<fieldset class="noRecordsFieldset">
<legend>Customers</legend>No records for customers available.
</fieldset>
</EmptyDataTemplate>
</telerik:RadListView>
</asp:Panel>​
When working with the Mobile part of radgrid the text values of the header and the sorting area as shown in the attached files cannot be changed ;
-Sort Ascending , Sort Descending , Clear Sorting , Group By , Filter , Columns , Show/ Hide Cloumns and Drag the Icon To Reorder , Columns display
Is there any possible why to change the text values to these elements ?
Thank you
Hello,
Im getting stuck with drag&drop in a RadGrid. Here is my grid structure :
-Category 1
---Item 1
---Item 2
---Item 3
-Category 2
---Item 1
-Category 3
---EMPTY
I already achieved re-ordering in a category and re-ordering of category. However, I can't achieve to drag an Item inside another category.
What I what to do is, when I drag Item 1 from category 1 to category 3, I need to retrieve the column "A10_ID" of Category 3 to process my changes in DB.
How can I access it ?
Thank's
Hello,
I use the following code to hide the resize arrow for the editors:
$telerik.$(
".reResizeCell"
).hide();
This works very well when I want to hide the arrow on all editors on a page. However, how would I go about hiding them only for certain editors on the screen?
I am using the default context menus that show Edit and Delete when you right click on an event. All works fine except when you click Edit or Delete, nothing happens. No postback, nothing. However, if I load the calendar and switch views clicking on either the Day, Week or Month, even if clicking the same view we are currently on, then doing a right click on an event works fine. Thoughts? What am I not setting on page load that gets set when clicking one of the view buttons?
My binding on page load is:
RadScheduler1.SelectedDate = DateTime.Now;
RadScheduler1.SelectedView = SchedulerViewType.MonthView;
RadScheduler1.DataSource = GetCalendarEvents(); // loads ​my list .. List<Telerik.Web.UI.Appointment>
I have a few questions on implementation. I haven't figured out approach yet. Basically, the scenario is that this is on a admin site, and that certain steps would load pending upon the roles the user has.
If I had the steps written explicitly and then have the removed from the server side, the fields in the removed steps would still technically be available on the on finish event, just not editable by the user, ​correct?
If I were to put them in user controls and add them dynamically from the codebehind, then with each one I would have to use a save button and use event bubbling described here: http://www.telerik.com/forums/refresh-wizard-from-usercontrol , correct?
If I had only one step on, it would determine that is the final step and hide the previous button, correct?