WPF Telerik RadGridView disappeared when i applied global style.
<
ResourceDictionary
xmlns
=
"http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:telerik
=
"http://schemas.telerik.com/2008/xaml/presentation"
xmlns:fw
=
"clr-namespace:SSMS.Framework;assembly=SSMS.Framework"
>
<
Style
TargetType
=
"telerik:RadGridView"
>
<
Setter
Property
=
"ShowGroupPanel"
Value
=
"False"
/>
<
Setter
Property
=
"AutoGenerateColumns"
Value
=
"False"
/>
<
Setter
Property
=
"RowIndicatorVisibility"
Value
=
"Collapsed"
/>
<
Setter
Property
=
"CanUserFreezeColumns"
Value
=
"False"
/>
<
Setter
Property
=
"IsReadOnly"
Value
=
"True"
/>
<
Setter
Property
=
"BorderThickness"
Value
=
"1,1,1,0"
/>
</
Style
>
<
Style
x:Key
=
"BoldStyle"
TargetType
=
"telerik:GridViewRow"
BasedOn
=
"{StaticResource GridViewRowStyle}"
>
<
Setter
Property
=
"FontWeight"
Value
=
"Bold"
/>
</
Style
>
...........................etc
If i remove the below part from GridViewStyle.xaml, the grid appearing fine, but i want to configure those settings globally.
<
Style
TargetType
=
"telerik:RadGridView"
>
<
Setter
Property
=
"ShowGroupPanel"
Value
=
"False"
/>
<
Setter
Property
=
"AutoGenerateColumns"
Value
=
"False"
/>
<
Setter
Property
=
"RowIndicatorVisibility"
Value
=
"Collapsed"
/>
<
Setter
Property
=
"CanUserFreezeColumns"
Value
=
"False"
/>
<
Setter
Property
=
"IsReadOnly"
Value
=
"True"
/>
<
Setter
Property
=
"BorderThickness"
Value
=
"1,1,1,0"
/>
</
Style
>
I am using Interaction triggers to Data bind the Data filter event to Relay commands in view model, I can do this for FilterOperatorsLoading event that is directly in DataFilter but i need to listen to 2 other events that are in FilterDescriptors.
This event works:
<i:EventTrigger EventName="FilterOperatorsLoading">
<cmd:EventToCommand Command="{Binding FilterOperatorsLoadingCommand}" PassEventArgsToCommand="True" />
</i:EventTrigger>
How can do that same for RadDataFilter.FilterDescriptors.CollectionChanged and RadDataFilter.FilterDescriptors.ItemChanged event
Thanks
vikas mittal
Good afternoon,
In each page of our WPF application we have a few user controls from the Telerik library. We're running the Visual Studio profiler and noticed that for each UC from Telerik, all the themes are being parsed at runtime, as it can be seen from the screenshot attached or at this link.
The theme is being explicitly set at the beginning of the app and we haven't been able to find any help/documentation on this matter.
We would like to prevent this additional render time for each control to achieve the most fluid UI we can.
Any help would be appreciated.
Thanks in advance,
Diogo
Hi to all,
I have this problem in design-time, sometimes it appears this error when I show a GridView.
My XAML is this:
<
Window
xmlns:telerik
=
"http://schemas.telerik.com/2008/xaml/presentation"
mc:Ignorable
=
"d"
x:Class
=
"TelerikCustomGridView.MainWindow"
Title
=
"MainWindow"
Height
=
"350"
Width
=
"525"
>
<
Grid
>
<
telerik:RadGridView
ItemsSource
=
"{Binding Clienti}"
GroupRenderMode
=
"Flat"
AutoExpandGroups
=
"True"
>
<
telerik:RadGridView.GroupDescriptors
>
<
telerik:GroupDescriptor
Member
=
"NAZIONE"
SortDirection
=
"Ascending"
/>
<
telerik:GroupDescriptor
Member
=
"PROVINCIA"
SortDirection
=
"Ascending"
/>
</
telerik:RadGridView.GroupDescriptors
>
<
telerik:RadGridView.FilterDescriptors
>
<
telerik:FilterDescriptor
Member
=
"PROVINCIA"
Operator
=
"IsNotNull"
/>
</
telerik:RadGridView.FilterDescriptors
>
</
telerik:RadGridView
>
</
Grid
>
</
Window
>
Hi!
Is there any fast/easy way to change the expander image of RadExpander like expander of TreeListView?
Thanks!
Hi,
We are using RadGridView to display data from the DataTable. In one of the column we have selected "StartsWith" has the filter. After setting the filter if we close and re open the view, we are getting the following error and the application crashes. This is once we load the layout even before Data is loaded.
System.NotImplementedException: The method or operation is not implemented.
at Telerik.Windows.Data.Expressions.FilterOperatorExpressionBuilderBase.GenerateStartsWith(Expression left, Expression right)
at Telerik.Windows.Data.Expressions.OperatorValueFilterDescriptorExpressionBuilderBase.CreateBodyExpression()
at Telerik.Windows.Data.Expressions.FilterDescriptorCollectionExpressionBuilder.CreateBodyExpression()
at Telerik.Windows.Data.Expressions.FilterDescriptorCollectionExpressionBuilder.CreateBodyExpression()
at Telerik.Windows.Data.Expressions.FilterDescriptorCollectionExpressionBuilder.CreateBodyExpression()
at Telerik.Windows.Data.ICompositeFilterDescriptorExtensions.GetFilterFunction(ICompositeFilterDescriptor filterDescriptors, Type itemType)
at Telerik.Windows.Data.QueryableCollectionView.InitializeInternalList(IQueryable view)
at Telerik.Windows.Data.QueryableCollectionView.CreateInternalList()
at Telerik.Windows.Data.QueryableCollectionView.get_InternalList()
at Telerik.Windows.Data.QueryableCollectionView.GetEnumerator()
at System.Linq.Enumerable.<OfTypeIterator>d__aa`1.MoveNext()
at System.Collections.Generic.List`1..ctor(IEnumerable`1 collection)
at System.Linq.Enumerable.ToList[TSource](IEnumerable`1 source)
After digging through the column properties, I found out that FilterMemberType was null. Once I set the property to string type. Its not throwing error anymore.
Please let me know is it the right way to do it or if you have any better solution.
Thanks and regards,
Alex
Hello Telerik,
So far I could get my Grid cells styles to be dynamically changed based on my own roles, using this tutorial
http://docs.telerik.com/devtools/wpf/controls/radgridview/style-selectors/cell-style-selector.html
but there are two things left to be done regarding this issue.
still following the given approach, I want to:
- set an image to a checkbox, whether it is true or false.
- and also set that style in a separate file, so that it may be reused. inside a resourcedictionary file.
My point is, I will have several grids through my application using the same set of styles in their cells. based on each own role.
Please help me to achieve that!
Hi All,
I am using the RadGridView and added custom filter's successfully, the default sort functionality works when user hits on the header column and filter works when cuser clicks on filter icon. how can i make filter popup to be opened when i click on header column instead of the filter icon and how can i make the default filter to work as sorting.
During loading data collection occurs rendering them on a graph. Use DateTimeContinuousAxis. Until no gaps occur rendering the data correctly. Figure 1. But as soon as there are gaps in the data rendering deteriorate. Figure 2.
When using DateTimeCategoricalAxis painting is fine, but there are delays when working in real time :(
How to solve this problem?
<telerik:RadCartesianChart x:Name="chart" Grid.Column="0" >
<telerik:RadCartesianChart.Behaviors>
<telerik:ChartCrosshairBehavior/>
<telerik:ChartPanAndZoomBehavior DragToZoomThreshold="0" MouseWheelMode="Zoom" DragMode="Pan" ZoomMode="Both" PanMode="Both"/>
</telerik:RadCartesianChart.Behaviors>
<telerik:RadCartesianChart.HorizontalAxis>
<telerik:DateTimeCategoricalAxis x:Name="MainHA" LabelFormat="HH:mm" LabelFitMode="Rotate" SmartLabelsMode="SmartStep" PlotMode="OnTicks">
</telerik:DateTimeCategoricalAxis>
</telerik:RadCartesianChart.HorizontalAxis>
<telerik:RadCartesianChart.VerticalAxis>
<telerik:LinearAxis />
</telerik:RadCartesianChart.VerticalAxis>
<telerik:RadCartesianChart.Series>
<telerik:CandlestickSeries ItemsSource="{Binding Candls}" CategoryBinding="Date" CloseBinding="Close" HighBinding="High" LowBinding="Low" OpenBinding="Open" />
</telerik:RadCartesianChart.Series>
</telerik:RadCartesianChart>