I am developing an application and I used LayoutControl , I noticed that the window persist in memory when I close it , even if I use GC.Collect() to wake up garbage collector, there is a memory leaks concerning LayoutControl.
Otherwise, if I put any other telerik component like RadGridView or RadMenu the window object is removed from the memory after closing .
Please help because I use LayoutControl in 120 interfaces.
I use ANTS Memory Profiler 8 , Telerik UI for WPF R3 2017 SP1 , win7 sp1 x64 , visual studio 2013.
Demo application : https://drive.google.com/open?id=1jzyLK9w6YMURHIIF4dkDUxUbzJrBWWPU

Hello
I need change some PropertyDefinition's IsEnabled on run time,my solution is change PropertyDefinition's IsReadonly
public virtual void SetEnabled()
{
var squidProperties = this.FindChildByType<RadPropertyGrid>() as RadPropertyGrid;
if (squidProperties == null)
return;
foreach (var item in squidProperties.PropertyDefinitions)
{
item.IsReadOnly = !_enable;
if (item.HasNestedProperties)
{
foreach (var subItem in item.NestedProperties)
{
subItem.IsReadOnly = !_enable;
}
}
}
}
when the PropertyDefinition has EditorTemplate, when the EditorTemplate is single control as the following code it is works right
<telerik:PropertyDefinition.EditorTemplate>
<DataTemplate>
<telerik:RadWatermarkTextBox
IsReadOnly="{Binding IsReadOnly, RelativeSource={RelativeSource AncestorType=telerik:PropertyGridField}}"
Text="{Binding Filter}" />
</DataTemplate>
</telerik:PropertyDefinition.EditorTemplate>
but when the EditorTemplate is nested controls as the following code, it is works wrong
<telerik:PropertyDefinition.EditorTemplate>
<DataTemplate>
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="*" />
<ColumnDefinition Width="auto" />
</Grid.ColumnDefinitions>
<telerik:RadWatermarkTextBox Grid.Column="0"
IsReadOnly="{Binding IsReadOnly, RelativeSource={RelativeSource AncestorType=telerik:PropertyGridField}}"
Text="{Binding Filter}" />
<telerik:RadButton />
</Grid>
</DataTemplate>
</telerik:PropertyDefinition.EditorTemplate>
the RadWatermarkTextBox status is not readonly, when set the PropertyDefinition isreadonly true
what is the reason for this?

Hello,
I have been digging through the documentation and I am unable to find any information on the ability to include the header/row values when copying the cells from a pivot grid. The actual values copy in to excel just fine, but I would like to include the header/row values.
Would someone be able to point me in the right direction? Thank you.

Hey guys,
since i dont get it to work since 3 hours now i registered here in the hope you have a solution.
I have a GridView in my View:
<tel:RadGridView ItemsSource="{Binding CompareTablesResultView, Mode=OneWay}" ColumnWidth="Auto" x:Name="grdComparedData" IsFilteringAllowed="False" CanUserReorderColumns="False" CanUserFreezeColumns="False" CanUserSortColumns="False" CanUserDeleteRows="False" CanUserInsertRows="False" ShowGroupPanel="False" tel:StyleManager.Theme="Windows7" DataLoaded="grdComparedData_DataLoaded"> </tel:RadGridView> <tel:RadDataPager x:Name="DataPager" Source="{Binding Items, ElementName=grdComparedData}" PageSize="30" Grid.Row="1" tel:StyleManager.Theme="Windows7"/>The GridView Itemssource is bound to a DataView Property in my ViewModel.
The DataView is simply the .DefaultView of the Datatable i want to display.
With the data in my datatable i did some validation. In my validation i receive information which cells are invalid (rownumber and columnnumber/columnname).
Now my target is to set the style for the cells that are invalid (foreground color to red). But i cant get it working to get the GridViewCell based on the infos if have.
In some forum posts i saw code like MyGridView.Rows(index).Cells(anotherIndex) but the RadGridView dont have an accessable Row property for me.
I also tried some other things to get the cell like to get access the .Items Property or some attempts with the .ChildrenOfType<> method but nothing worked for me.
Is there any way to set the Cell-Style for a specific cell when bound to a DataTable or DataView? I cant use a cellstyle selector cause its not the value of the cell itself that is invalid, its only invalid in the context of row and column. The same value can be valid in another row or in another column.
You guys have any ideas?
Could i mark the DataView Cell in any way that i could react from a cellstyle selector on it or something like that?

Sirs,
I'm using RadVirtualGrid with a Custom DataProvider and I would like to format its columns where some columns would fit their width to their content, others to their cells' content, some columns would have their cells aligned to left, others to right, and so on.
I mean I want to apply a different style to each column in my RadVirtualGrid, however I don't know how to handle these styles.
Thanks in advance,
