This question is locked. New answers and comments are not allowed.
Hi,
Is it possible to change displaying of header label of integer type, which is currently displayed by 100 interval as default? For example we would need it for displaying age. The 100 interval can be seen in column headers for example on picture here:
http://www.telerik.com/help/silverlight/radpivotgrid-features-filtering.html
Thank you,
Jiri
Is it possible to change displaying of header label of integer type, which is currently displayed by 100 interval as default? For example we would need it for displaying age. The 100 interval can be seen in column headers for example on picture here:
http://www.telerik.com/help/silverlight/radpivotgrid-features-filtering.html
Thank you,
Jiri
5 Answers, 1 is accepted
0
Hello Jiri,
In order to change the shown range you would need to set the Step property of the DoubleGroupDescription as needed. Check the following code snippet:
Hope this helps.
Regards,
Kalin
Telerik
In order to change the shown range you would need to set the Step property of the DoubleGroupDescription as needed. Check the following code snippet:
<
pivot:DoubleGroupDescription
PropertyName
=
"Quantity"
Step
=
"5"
/>
Hope this helps.
Regards,
Kalin
Telerik
Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.
0

Jiri
Top achievements
Rank 1
answered on 14 Oct 2014, 07:51 AM
Hi Kalin,
Thank you, for your answer, but our scenario is kind of different in that we use RadPivotFieldList so in advance we don't know what fields user will select, so we cannot declare it as you suggest, right?
Do you have any recommendation in this case? Something like change default range of integers to not be 100? Or is it possible for user to declare it in in the RadPivotFieldList herself somehow?
Thank you,
Jiri
Thank you, for your answer, but our scenario is kind of different in that we use RadPivotFieldList so in advance we don't know what fields user will select, so we cannot declare it as you suggest, right?
Do you have any recommendation in this case? Something like change default range of integers to not be 100? Or is it possible for user to declare it in in the RadPivotFieldList herself somehow?
Thank you,
Jiri
0
Accepted
Hi Jiri,
I understand your concern. However you would be able to manage the step at run time by hooking to the PrepareDescriptionForField event of the DataProvider. The event is raised whenever the user adds a description to RadPivotFieldList, so you would be able to check whether this is DoubleGroupDescription from the needed property and set the wanted step. Please check the following code snippet:
For more details about the event of the DataProviders you can check the following article from our online help documentation:
http://www.telerik.com/help/silverlight/radpivotgrid-events-overview.html
Hope this will help you achieve the desired.
Regards,
Kalin
Telerik
I understand your concern. However you would be able to manage the step at run time by hooking to the PrepareDescriptionForField event of the DataProvider. The event is raised whenever the user adds a description to RadPivotFieldList, so you would be able to check whether this is DoubleGroupDescription from the needed property and set the wanted step. Please check the following code snippet:
private
void
LocalDataSourceProvider_PrepareDescriptionForField(
object
sender, Telerik.Pivot.Core.PrepareDescriptionForFieldEventArgs e)
{
var doubleGroupDescription = e.Description
as
DoubleGroupDescription;
if
(doubleGroupDescription !=
null
&& doubleGroupDescription.PropertyName ==
"Quantity"
)
{
doubleGroupDescription.Step = 5;
}
}
For more details about the event of the DataProviders you can check the following article from our online help documentation:
http://www.telerik.com/help/silverlight/radpivotgrid-events-overview.html
Hope this will help you achieve the desired.
Regards,
Kalin
Telerik
Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.
0

Jiri
Top achievements
Rank 1
answered on 14 Oct 2014, 12:31 PM
Hi Kevin,
Thank you, this is good enough for us.
Maybe even nicer would be to let the user to declare it in RadPivotFieldList, so this could be an idea for improvement. ;-)
Regards,
Jiri
Thank you, this is good enough for us.
Maybe even nicer would be to let the user to declare it in RadPivotFieldList, so this could be an idea for improvement. ;-)
Regards,
Jiri
0
Hi Jiri,
I would like to thank you for your feedback - we will definitely consider the suggestion for the future versions of the PivotGrid. Meanwhile you can check the following example from our XAML SDK repository which demonstrates how to implement custom ContextMenuBehavior that includes the desired feature - option to change the step at run time from the FieldList:
https://github.com/telerik/xaml-sdk/tree/master/PivotGrid/CustomContextMenuBehavior
Hope this helps.
Regards,
Kalin
Telerik
I would like to thank you for your feedback - we will definitely consider the suggestion for the future versions of the PivotGrid. Meanwhile you can check the following example from our XAML SDK repository which demonstrates how to implement custom ContextMenuBehavior that includes the desired feature - option to change the step at run time from the FieldList:
https://github.com/telerik/xaml-sdk/tree/master/PivotGrid/CustomContextMenuBehavior
Hope this helps.
Regards,
Kalin
Telerik
Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.