Telerik Forums
UI for WPF Forum
1 answer
136 views

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

Heiko
Top achievements
Rank 1
Iron
Veteran
 answered on 08 Apr 2016
5 answers
319 views

    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!

Yoan
Telerik team
 answered on 08 Apr 2016
1 answer
91 views

Hi,

I want to trigger the event when completing the Resize operation on a Custom GanttTask.

In the Telerik Document     

 

 

Yana
Telerik team
 answered on 08 Apr 2016
1 answer
157 views
I am working on multiple-series-types-with-chartseriesprovider-and-typepath , I am using RangeBarSeries and lineseries Type. i am getting compile error as below.Please advice the right approach to add mixed series.

Additional information: Unable to cast object of type 'Telerik.Windows.Controls.ChartView.RangeBarSeries' to type 'Telerik.Windows.Controls.ChartView.CategoricalSeries'.
Martin Ivanov
Telerik team
 answered on 08 Apr 2016
2 answers
183 views

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>

Martin Ivanov
Telerik team
 answered on 08 Apr 2016
1 answer
116 views

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. 

Stefan
Telerik team
 answered on 08 Apr 2016
6 answers
756 views

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.

Eugene
Top achievements
Rank 1
 answered on 08 Apr 2016
2 answers
183 views

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:

  1. How do I expand the slider by default? I want it to look like the old zoom slider on Google Maps. On a combobox I could set .IsDropDownOpen = true; But here?
  2. The default expand direction behaviour for the slider appears to be up. Because this Map is inside a dialog which does not occupy the full screen, this means that the MapZoomBar expands up out of the dialog. If I maximise the dialog, there is not enough room and so it expands down - which is nice. How do I make it expand down all the time? This question kind of covers it for a combobox.

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>

Jeremy
Top achievements
Rank 1
 answered on 08 Apr 2016
4 answers
700 views
Hi,
When my ListBox is loaded for the first time, I want it to already have the SelectedItem highlighted, as if it is already clicked. How can I achieve that?

I use the MVVM Light toolkit, and I have a TwoWay binding on the SelectedItem to a property in my ViewModel.

<telerik:RadListBox  ItemsSource="{Binding AllNetworks}" SelectedItem="{Binding SelectedNetwork, Mode=TwoWay}">
...
...
...
</telerik:RadListBox>

I know that the SelectedNetwork property is set correctly when the ViewModel is initialized, but the ListBox does not highlight the selected item.

Regards,
Roar Bjørndal-Rasmussen
Nasko
Telerik team
 answered on 08 Apr 2016
3 answers
246 views

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

Boby
Telerik team
 answered on 08 Apr 2016
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?