Telerik Forums
UI for WPF Forum
8 answers
704 views

I’m currently in the process of evaluating the RadGrid.

If I add aggregates to the radgrid can I get the aggregate output to display at the bottom of the row as opposed to along side the grouping label. At the very least can I get the information to go above the row that’s being aggregated.

For example in the samples you have a table with a column called quantity, I want to sum the quantity column by adding an aggregate (which is simple to do) and I want to display the sum value below all the quantity values for the grouping, how ever its currently being displayed beside the label.

Thanks  

gao
Top achievements
Rank 1
 answered on 25 Jul 2011
3 answers
140 views
I would like to sort my GridView so that the selected items appear at the top.

It appears that there is no ColumnSortDescriptor type for WPF (however after reading documentation it appears that this type exists for the Silverlight GridView control)....maybe I'm just not looking in the right namespace (it's not in the Telerik.Windows.Data namespace)

Anyways, I would love it if some could explain how I could accomplish this.


Thank you.
Dimitrina
Telerik team
 answered on 25 Jul 2011
1 answer
123 views
Hello!
In my application I am trying to sort columns of grouped dynamic objects (e.g. implementing IDynamicMetaObjectProvider). It works fine until I try to sort a column of a grouped list, throwing a null exception in private static IEnumerable<PropertyDescriptor> GetPropertyDescriptorsForDynamicType(QueryableCollectionView collectionView) in ItemPropertyInfoHelper.cs:

Telerik.Windows.Data.dll!Telerik.Windows.Data.ItemPropertyInfoHelper.GetPropertyDescriptorsForDynamicType(Telerik.Windows.Data.QueryableCollectionView collectionView) Line 184 + 0x30 bytes    C#
Telerik.Windows.Data.dll!Telerik.Windows.Data.ItemPropertyInfoHelper.GetPropertyDescriptors(Telerik.Windows.Data.QueryableCollectionView collectionView) Line 86 + 0x1a bytes    C#
Telerik.Windows.Data.dll!Telerik.Windows.Data.ItemPropertyInfoHelper.CreateItemProperties(Telerik.Windows.Data.QueryableCollectionView collectionView) Line 41 + 0xa bytes    C#
Telerik.Windows.Data.dll!Telerik.Windows.Data.QueryableCollectionView.GetItemProperties() Line 38 + 0xa bytes    C#
Telerik.Windows.Data.dll!Telerik.Windows.Data.QueryableCollectionView.ItemProperties.get() Line 29 + 0x14 bytes    C#
Telerik.Windows.Data.dll!Telerik.Windows.Data.DataItemCollection.ItemPropertiesAreDifferent(Telerik.Windows.Data.QueryableCollectionView newCollectionView, Telerik.Windows.Data.QueryableCollectionView oldCollectionView) Line 216 + 0x35 bytes    C#
Telerik.Windows.Data.dll!Telerik.Windows.Data.DataItemCollection.CollectionView.set(Telerik.Windows.Data.QueryableCollectionView value) Line 103 + 0x16 bytes    C#
Telerik.Windows.Data.dll!Telerik.Windows.Data.DataItemCollection.CreateAndSetCollectionView(System.Collections.IEnumerable source) Line 932 + 0x3a bytes    C#
Telerik.Windows.Data.dll!Telerik.Windows.Data.DataItemCollection.SetItemsSource(System.Collections.IEnumerable source) Line 713    C#
Telerik.Windows.Controls.GridView.dll!Telerik.Windows.Controls.GridView.GridViewDataControl.Bind.AnonymousMethod__17() Line 3646    C#
Telerik.Windows.Controls.dll!Telerik.Windows.Controls.CursorManager.PerformTimeConsumingOperation(System.Windows.FrameworkElement frameworkElement, System.Action action) Line 16 + 0xf bytes    C#
Telerik.Windows.Controls.GridView.dll!Telerik.Windows.Controls.GridView.GridViewDataControl.Bind(object newValue) Line 3675    C#
Telerik.Windows.Controls.GridView.dll!Telerik.Windows.Controls.GridView.GridViewDataControl.OnItemsSourceChanged(object oldValue, object newValue) Line 3267 + 0x15 bytes    C#
Telerik.Windows.Data.dll!Telerik.Windows.Controls.DataControl.OnItemsSourcePropertyChanged(System.Windows.DependencyObject origin, System.Windows.DependencyPropertyChangedEventArgs args) Line 144    C#

The problem is that GetPropertyDescriptorsForDynamicType accesses the first element in the collectionview and tries to cast it to an IDynamicMetaObjectProvider:

var dynamicObject = collectionView.ElementAt(0) as System.Dynamic.IDynamicMetaObjectProvider;
var metaObject = dynamicObject.GetMetaObject(System.Linq.Expressions.Expression.Constant(dynamicObject));

When grouping the first element is of type AggregateFunctionsGroup and not of Type ElementType (which made the code branch into this function in the first place). To get the correct dynamic object, the line would have to be changed to get the first element of the first group that has elements but no children (or something similiar)..

I could use an ITypedList in order to not branch into GetPropertyDescriptorsForDynamicType, but it should work this way as well.
I have tried the latest internal build, but the problem remains.
Can you reproduce this problem?
Kind Regards,
Karin Huber

Dimitrina
Telerik team
 answered on 25 Jul 2011
2 answers
156 views
I have installed RadControls_for_WPF40_2011_2_0712_Dev
I have then upgrade with the vs extenstion to the latest hotfix.
The latest hotfix gets not listed when trying to upgrade the projects to the latest version.

I see: C:\Users\Harry\AppData\Roaming\Telerik\Updates\01248RadControls_for_WPF_35_2011_1_0502_DEV_hotfix_LIB
So this is the WPF 3.5 hotfix. I do not have Telerik WPF 3.5 installed.

There is no WPF 4.0 hot fix in this directory...

Any ideas?

Cheers Harry
Iwhp
Top achievements
Rank 1
 answered on 22 Jul 2011
1 answer
332 views
Hello,
I've done a new template and style to a RadComboBox, but now I can't find where to style the SelectionBox(Item).
I don't want the behavior that is generated by the office theme.

Where can i edit those properties?

Thank you!
Dani
Telerik team
 answered on 22 Jul 2011
1 answer
106 views
Hello guys,
we're getting an "InvalidOperationException" in RadGridView that can be reproduced in your WPF 2011 Q2 Demo.

- please start "RadControls for WPF Q2 2011 Demos"
- select Highlights --> GridView
- select the first row by clicking with the mouse (Nancy)
- press "enter" two times --> all ok
- sort the list clicking on a column heading, i.e. "Phone"
- press "enter" --> Exception !!!!

If necessary I could send you a stack trace from the same exception we're experiencing in our application.

Best regards
Oliver
Yordanka
Telerik team
 answered on 22 Jul 2011
4 answers
193 views
How to bind HTML to a viewmodel property?
Iva Toteva
Telerik team
 answered on 22 Jul 2011
4 answers
375 views
Hi,

is there a way to implement the Count and Average Functions only for selected Rows?

Regards,
Thomas
Thomas
Top achievements
Rank 1
 answered on 22 Jul 2011
1 answer
145 views
Hi,

My application has a requirement to limit the symbols that can be inserted into the RichTextBox control.  How do I customize the Insert Symbol dialog to achieve that?  In addition, I have similar requirements for the FontPropertiesDialog to limit the font family selection.

Thanks,

Paul
Ivailo Karamanolev
Telerik team
 answered on 22 Jul 2011
12 answers
697 views

Hi,

I would like to run a storyboard which will effect the border when a user enters a cell. I presume this can be achieved through a trigger.
Alternately / also I would like show a different control template, when the enters the cell and leaves the cell

My problem is that I do not which property to attach the trigger to.

for my column style I am using this ControlTemplate.

 

 

 

 

 

<ControlTemplate x:Key="DataBoundColumnCustom" TargetType="{x:Type telerik:GridViewCell}">

 

 

 

 

 

 

<ControlTemplate.Triggers>

 

 

 

 

 

 

<Trigger>

 

 

 

 

 

 

 

</Trigger>

 

 

 

 

 

 

</ControlTemplate.Triggers>

 

 

 

 

 

 

<Border CornerRadius="2,2,2,2" Background="Cornsilk" Opacity="50" >

 

 

 

 

 

 


</
Border>

 

 

 

</ControlTemplate>

 

 

 

 

 

 

Maya
Telerik team
 answered on 22 Jul 2011
Narrow your results
Selected tags
Tags
GridView
General Discussions
Chart
RichTextBox
Docking
ScheduleView
ChartView
TreeView
Diagram
Map
ComboBox
TreeListView
Window
RibbonView and RibbonWindow
PropertyGrid
DragAndDrop
TabControl
TileView
Carousel
DataForm
PDFViewer
MaskedInput (Numeric, DateTime, Text, Currency)
AutoCompleteBox
DatePicker
Buttons
ListBox
GanttView
PivotGrid
Spreadsheet
Gauges
NumericUpDown
PanelBar
DateTimePicker
DataFilter
Menu
ContextMenu
TimeLine
Calendar
Installer and Visual Studio Extensions
ImageEditor
BusyIndicator
Expander
Slider
TileList
PersistenceFramework
DataPager
Styling
TimeBar
OutlookBar
TransitionControl
FileDialogs
Book
ToolBar
ColorPicker
TimePicker
MultiColumnComboBox
SyntaxEditor
VirtualGrid
Wizard
ExpressionEditor
NavigationView (Hamburger Menu)
WatermarkTextBox
DesktopAlert
BarCode
SpellChecker
DataServiceDataSource
EntityFrameworkDataSource
RadialMenu
ChartView3D
Data Virtualization
BreadCrumb
LayoutControl
ProgressBar
Sparkline
TabbedWindow
ToolTip
CloudUpload
ColorEditor
TreeMap and PivotMap
EntityFrameworkCoreDataSource (.Net Core)
HeatMap
Chat (Conversational UI)
VirtualizingWrapPanel
Calculator
NotifyIcon
TaskBoard
TimeSpanPicker
BulletGraph
Licensing
WebCam
CardView
DataBar
FilePathPicker
PasswordBox
SplashScreen
Callout
Rating
Accessibility
CollectionNavigator
Localization
AutoSuggestBox
Security
VirtualKeyboard
HighlightTextBlock
TouchManager
StepProgressBar
Badge
OfficeNavigationBar
ExpressionParser
CircularProgressBar
SvgImage
PipsPager
SlideView
AI Coding Assistant
+? more
Top users last month
Bohdan
Top achievements
Rank 3
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Elliot
Top achievements
Rank 1
Iron
Iron
Iron
Sunil
Top achievements
Rank 1
Cynthia
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Bohdan
Top achievements
Rank 3
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Elliot
Top achievements
Rank 1
Iron
Iron
Iron
Sunil
Top achievements
Rank 1
Cynthia
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?