I have a GridView which is bound to a QueryableCollectionView. The QCV has some filterdescriptors added when created (like filtering on Customer_Id), but it is also possible to add more filter conditions through the UI of the GridView. My customer asked me to add a "Clear all filters" button which should clear all filters added via the UI on GridView. I wrote the following code to clear these filters (VehicleList is the QCV):
01.
using
(
this
.VehicleList.DeferRefresh())
02.
{
03.
// get all filters added to the GridView and remove them
04.
var columnFilterList =
this
.VehicleList.FilterDescriptors.OfType<MemberColumnFilterDescriptor>().ToList();
05.
if
(columnFilterList.Any())
06.
{
07.
foreach
(MemberColumnFilterDescriptor filterCondition
in
columnFilterList)
08.
{
09.
this
.VehicleList.FilterDescriptors.Remove(filterCondition);
10.
}
11.
}
12.
}
The result: all filter-icons on the GridView return to inactive. However, the checkboxes inside the filter-dropdown that have been used to declare the filter condition are still checked! How can I delete all filter conditions via code (it HAS to be done inside a ViewModel, I can not use the GridView directly) and have all checkboxes inside the filter-dropdown unselected??
Regards
Heiko
Hey Telerik!
So, for now I just need two custom features for the filter control (filter row mode):
- first is a bit complex: I need to deferred filter at the very moment the user first clicks on the funnel filter icon. The second times he clicks it, it should display the default filter popup. So basically: user types on filter, nothing happens -> user clicks on the icon, it filters -> user click it once more, opens the popup
- now second is: I need to reduce the amount of information from inside that popup for a more friendly GUI of it
if you have an answer for either of those, please let me know asap, as my trial period is about to end!
Thank you, I am really enjoying telerik support so far!
Hi,
I want to trigger the event when completing the Resize operation on a Custom GanttTask.
In the Telerik Document
I am trying set selected point color using triggers.But it is not working.Is there anyway to access to IsSelected property ?
Or Do we need to go for point template(Working here)?
<
telerik:PointSeries.DefaultVisualStyle
>
<
Style
TargetType
=
"Path"
>
<
Setter
Property
=
"Fill"
Value
=
"YellowGreen"
/>
<
Setter
Property
=
"Stroke"
Value
=
"Red"
/>
<
Setter
Property
=
"StrokeThickness"
Value
=
"1"
/>
<
Style.Triggers
>
<
DataTrigger
Binding
=
"{Binding DataPoint.IsSelected}"
Value
=
"True"
>
<
Setter
Property
=
"Fill"
Value
=
"Red"
/>
</
DataTrigger
>
</
Style.Triggers
>
</
Style
>
</
telerik:PointSeries.DefaultVisualStyle
>
Hello,
I'm pretty new at telerik and I'm trying to get something like in the picture but I have no idea how to do that because RadGrid doesn't support Content. I have a RadGrid (let's call it Main RadGrid) which will only have one row. This Row should be expandable and shoud contain Tabs (see picture). Each of these tabs should have their own RadGrid with predefinded columns. And you should be able to Click on the + Tab above and add your own tab with RagGrid in it. The calculations from these Tabs should be trasfered into Main RadGrid (with one row) and populate it. It doesn't matter for now how the calculations are made it is only the visual thing. The first thing I don't know how to do is to create RadGrid which has one empty Row on initialisation. Then how to make this row expandable to cointain Tabs. etc...When I try to put something into RadGridView (other object) it says it doesn't support content. Thank you for your help.
Hi! I try to use RadGridView in my WPF MVVM project. I use it at first time and face with a little problem. This problem is that I want to set main header for RadGridView but I don't know how to do it. The picture with my RadGridView is in radGridView.PNG attached file. Below is XAML in the View where I define RadGridView:
<telerik:RadGridView Grid.Row="1" Grid.Column="0" HorizontalAlignment="Center" Margin="8,5,0,0" VerticalAlignment="Top" AutoGenerateColumns="False"
ItemsSource="{Binding Path=DeviceRecords}">
<telerik:RadGridView.Columns>
<telerik:GridViewDataColumn DataMemberBinding="{Binding DeviceName}" Header="Name"/>
<telerik:GridViewDataColumn DataMemberBinding="{Binding SerialNumber}" Header="Serial Number"/>
<telerik:GridViewDataColumn DataMemberBinding="{Binding NamePlaceDeviceInstallation}" Header="Location"/>
<telerik:GridViewDataColumn DataMemberBinding="{Binding CompanyOwnerOfDevice}" Header="Owner"/>
</telerik:RadGridView.Columns>
</telerik:RadGridView>
As you can see from attached file, now "Drag column header and drop it here to group by that column" string on the top of RadGreedViewid is displayed. But I want that, for example, "Existing Device Specifications" string as main header of RadGridView is displayed on the top of RadGreedView instead of "Drag column header and drop it here to group by that column" string. How to do that? Please help.
I am following the example in the documentation for an external MapZoomBar at the bottom of this page which allows me to move the MapZoomBar to the top right.
2 questions:
XAML:
<
Grid
>
<
Telerik:RadMap
x:Name
=
"RadMap1"
ZoomLevel
=
"{Binding Path=ZoomLevel, Mode=TwoWay}"
Center
=
"{Binding Path=ViewCentroid, Mode=TwoWay}"
CommandBarVisibility
=
"Collapsed"
MiniMapExpanderVisibility
=
"Collapsed"
NavigationVisibility
=
"Collapsed"
ZoomBarPresetsVisibility
=
"Collapsed"
ZoomBarVisibility
=
"Collapsed"
ScaleVisibility
=
"Collapsed"
>
</
Telerik:RadMap
>
<
Telerik:MapZoomBar
MapControl
=
"{Binding ElementName=RadMap1}"
VerticalAlignment
=
"Top"
HorizontalAlignment
=
"Right"
Margin
=
"0 10 10 0"
/>
</
Grid
>
<
telerik:RadListBox
ItemsSource
=
"{Binding AllNetworks}"
SelectedItem
=
"{Binding SelectedNetwork, Mode=TwoWay}"
>
...
...
...
</
telerik:RadListBox
>
Hi,
We're using version 2015.2.728.45 of Telerik UI for WPF and we have discovered a potential memory leak using JustTrace memory profiler (see attached document).
Could you please tell me if there is a known issue that could explain this behaviour of the Telerik.Windows.Documents.DocumentPosition retaining RadRichTextBox controls?
Thanks for your help,
Sébastien