My ItemsSource is a list of records with a Properties bag, rather than having convenient top-level properties
Attempts to define the relationship like this do not work (see error below). Is there some other mechanism?
var p = new FieldDescriptorNamePair
{
ParentFieldDescriptorName = "Properties[\"OrderId\"].Value",
ChildFieldDescriptorName = "Properties[\"ParentOrderId\"].Value"
};
----------------------------------------------------------------------------------
Object reference not set to an instance of an object.
--- Stack Trace
at
Telerik.Windows.Data.HierarchyFilter`1.<>c__DisplayClass6.<CreateFilterLambda>b__4(TElement
r1)
at
Telerik.Windows.Data.HierarchyFilter`1.CompareValues(TElement record)
at
Telerik.Windows.Data.HierarchyFilter`1.<FilteredData>b__8(TElement d)
at
System.Linq.Enumerable.WhereEnumerableIterator`1.MoveNext()
With Q2 2015 SP1 data binding ObservableCollection of a simple POCO class speed is about 25,000 per minute. Is this normal or should it be faster? It feels very slow...
With stopwatches I established that the database operation, object creation and adding to ObservableCollection takes under one second so there is no bottleneck there, it's the data binding that is slow.
The grid does display the collection items quickly and is responsive but only a subset of the items is shown and it keeps loading items and DataLoaded event keeps getting fired for each item in the collection but not as the item is added to the Observable collection, at that point the ObservableCollection is already fully populated it is firing for each item as data binding occurs apparently.
I am using ICollectionView and binding to that instead of binding directly to ObservableCollection which is speeding up the things considerably as it gets even slower when I bind directly to ObservableCollection.
As for performance degradation factors listed at http://docs.telerik.com/devtools/silverlight/controls/radgridview/troubleshooting/performance.html I do use RowStyle because I need a fixed height row and RowHeight property of the RadGridView itself is apparently only a hint because the row height gets bigger depending on the content unless MaxHeight row property is used which can't be set on the RadGridView itself and that was the only way to set the row background to transparent.
<Style x:Key="FixedHeightRgvRow" TargetType="t:GridViewRow" BasedOn={StaticResource GridViewRowStyle}">
<Setter Property="Background" Value="Transparent"/>
<Setter Property="Height" Value="24"/>
<Setter Property="MaxHeight" Value="24"/> </Style>
However, even if I don't use that style the speed is the same.
My POCO class:
public class Log { public int Id { get; private set; } public DateTime Date { get; private set; } public string ThreadName { get; private set; } public string Level { get; private set; } public string Logger { get; private set; } public string Message { get; private set; } public string Exception { get; private set; } public Log(int id, DateTime date, string tName, string level, string logger, string msg, string ex) { Id = id; Date = date; ThreadName = tName; Level = level; Logger = logger; Message = msg; Exception = ex; } }
So, it's just a simple POCO class, no property change notification or anything like that...
Please advise...
Hi,
we are using c# and TelerikRadControls for wpf. Now we try to create a BarcodeDesigner by using "RichTextBox" + RadBarcode39 + MailMerge.
Is it possible to merge the value of the RadBarcode on a RichTextBox?
Thanks a lot
Best Regards
Rene
Telerik provides a rich set of controls and features, but obviously we're only using a subset of all those controls. I wonder if it is possible to create a Visual Studio project to build a single assembly that contains all controls and themes that we're actually using and leaving out all non-needed controls. And doing so, would this be compliant to Telerik's license agreement?
Regards
Michael
Hello, i need to do background regions for BarSeries, i just made a visualization(in attachment)
My code in this moment looks like:
<
telerik:RadCartesianChart
BorderThickness
=
"1"
>
<
telerik:RadCartesianChart.Grid
>
<
telerik:CartesianChartGrid
MajorLinesVisibility
=
"Y"
/>
</
telerik:RadCartesianChart.Grid
>
<
telerik:RadCartesianChart.Behaviors
>
<
telerik:ChartPanAndZoomBehavior
/>
</
telerik:RadCartesianChart.Behaviors
>
<
telerik:RadCartesianChart.HorizontalAxis
>
<
telerik:DateTimeCategoricalAxis
GapLength
=
"0.2"
x:Name
=
"HorizontalAxis"
LabelFitMode
=
"MultiLine"
LabelFormat
=
"dd-MM-yyyy HH:mm"
/>
</
telerik:RadCartesianChart.HorizontalAxis
>
<
telerik:RadCartesianChart.VerticalAxis
>
<
telerik:LinearAxis
/>
</
telerik:RadCartesianChart.VerticalAxis
>
<
telerik:RadCartesianChart.Series
>
<
telerik:BarSeries
ValueBinding
=
"Glucose"
CategoryBinding
=
"Date"
ItemsSource
=
"{Binding BloodGlucoseList}"
>
<
telerik:BarSeries.PointTemplate
>
<
DataTemplate
>
<
Rectangle
Fill
=
"{Binding DataItem.ChartColor}"
MaxWidth
=
"100"
/>
</
DataTemplate
>
</
telerik:BarSeries.PointTemplate
>
</
telerik:BarSeries
>
</
telerik:RadCartesianChart.Series
>
</
telerik:RadCartesianChart
>
How can i archive my goal?
Hello,
I would like to show a busyindicator inside a documenthost, which I can show when loading the document.
I am using PRISM and the ShellDockingPanesFactory (from the Docking-ShellPrism example) to add my panes to the DocumentHost.
Ho can I implement this functionality without blocking my other documents or other panes?
The code below will block my whole Docking control.
<
telerik:RadBusyIndicator
DockPanel.Dock
=
"Top"
IsBusy
=
"{Binding IsBusy}"
IsIndeterminate
=
"{Binding IsIndeterminate}"
ProgressValue
=
"{Binding ProgressValue}"
BusyContent
=
"{Binding BusyContent}"
DisplayAfter
=
"{Binding DisplayAfter}"
>
<!-- Document tabs -->
<
telerik:RadDocking
x:Name
=
"radDocking"
prism:RegionManager.RegionName
=
"WorkspaceRegion"
Background
=
"LightGray"
BorderThickness
=
"0"
>
<
telerik:RadDocking.DockingPanesFactory
>
<
docking:ShellDockingPanesFactory
/>
</
telerik:RadDocking.DockingPanesFactory
>
<!-- Behaviour for catching close command in viewmodel -->
<
telerik:EventToCommandBehavior.EventBindings
>
<
telerik:EventBinding
Command
=
"{Binding CloseCommand}"
EventName
=
"Close"
PassEventArgsToCommand
=
"True"
/>
</
telerik:EventToCommandBehavior.EventBindings
>
<
telerik:RadSplitContainer
Height
=
"200"
Name
=
"BottomContainer"
InitialPosition
=
"DockedBottom"
>
<
telerik:RadPaneGroup
x:Name
=
"BottomPaneGroup"
/>
</
telerik:RadSplitContainer
>
</
telerik:RadDocking
>
</
telerik:RadBusyIndicator
>
Please advice.
Marcel