Just starting out and trying to work through some of the learning curve struggles, but this one has me stumped.
I'm trying to set a default theme for my grids inside a resource dictionary, I've tried the app.xaml file but also without success.
Here's my code:
<ResourceDictionary
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation">
<!-- Resource dictionary entries should be defined here. -->
<Style TargetType="{x:Type telerik:RadGridView}">
<Style.BasedOn>
<Style TargetType="{x:Type telerik:RadGridView}">
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="{x:Type telerik:RadGridView}">
<AdornerDecorator>
<telerik:Theming.Theme>
<telerik:TelerikTheme/>
</telerik:Theming.Theme>
</AdornerDecorator>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
</Style.BasedOn>
</Style>
</ResourceDictionary>
I started with an edit template and stripped out everything else. When I run my application the grid is blank, actually it is blank in the designer as well as the Properties window. If I add a x:Key value, the grid will reappear. So it is applying my style in some fashion. What am I missing?
Thanks,
-Sid Meyers.
| public class CallItem |
| { |
| private DateTime callDateTime; |
| public DateTime CallDateTime |
| { |
| get { return callDateTime; } |
| set { callDateTime = value; } |
| } |
| private String calledNumber; |
| public String CalledNumber |
| { |
| get { return calledNumber; } |
| set { calledNumber = value; } |
| } |
| private String logicCall; |
| public String LogicCall |
| { |
| get { return logicCall; } |
| set { logicCall = value; } |
| } |
| private Int64 callDuration; |
| public Int64 CallDuration |
| { |
| get { return callDuration; } |
| set { callDuration = value; } |
| } |
| private Double costWithTaxes; |
| public Double CostWithTaxes |
| { |
| get { return costWithTaxes; } |
| set { costWithTaxes = value; } |
| } |
| private Double costWithDiscount; |
| public Double CostWithDiscount |
| { |
| get { return costWithDiscount; } |
| set { costWithDiscount = value; } |
| } |
| private String abonentNumber; |
| public String AbonentNumber |
| { |
| get { return abonentNumber; } |
| set { abonentNumber = value; } |
| } |
| public CallItem(String abonentNumber, DateTime callDateTime, Int64 callDuration, String calledNumber, Double costWithDiscount, Double costWithTaxes, String logicCall) |
| { |
| this.abonentNumber = abonentNumber; |
| this.callDateTime = callDateTime; |
| this.callDuration = callDuration; |
| this.calledNumber = calledNumber; |
| this.costWithDiscount = costWithDiscount; |
| this.costWithTaxes = costWithTaxes; |
| this.logicCall = logicCall; |
| } |
| } |
| List<CallItem> items = GetAllItems(); |
| dataGridView.ItemsSource = items; |
| dataGridView.CreateFilterDescriptions(); |
And when I (or user) drag and dropping column (for example AbonentNumber) on grouping panel I need to waiting about 35 seconds.
if I heed to waiting about 35 seconds when I need grouping 1500 records then how long I need to waiting if I must grouping about 15000 records or 150000 records?
How i can increase performance of grouping in GridView? Or may be for my task I dont need to use GridView and grouping?