Telerik Forums
UI for WPF Forum
1 answer
99 views
Hi,

From what have seen it's easy to apply this kind of filter to a RadGridView (Country and Capital are the columns):
Country.Contains("France") AND (Capital.Contains("Paris") OR Capital.Contains("London")) -> this will give us 1 row (France, Paris)

What about if I want to do:
Country.Contains("France") OR (Capital.Contains("Paris") OR Capital.Contains("London")) -> so I would get 2 row (France, Paris; England, London)

I read the below pages but I couldn't find a solution for this. Can I do it in some how?
http://www.telerik.com/help/wpf/radgridview-filtering-icolumn-filter-descriptors.html
http://www.telerik.com/help/wpf/gridview-filtering-programmatic.html

Thanks
Dimitrina
Telerik team
 answered on 25 Mar 2014
4 answers
415 views
I'm using an MVVM approach to an application.  My Window has a textbox, a button, and a grid.  When i click the button, i would like it to filter the grid based on the text inputted in the textbox.  I realize the grid has built in filtering, but its more than likely too complicated for our end users.

    <Grid> 
        <Grid.DataContext> 
            <Binding Source="{StaticResource MyDataContext}" Mode="OneWay"  /> 
        </Grid.DataContext> 
            <telerik:RadGridView  Margin="12,55,12,58" AutoGenerateColumns="True"    Name="RadGridView1" > 
              
            <telerik:RadGridView.ItemsSource> 
                <Binding Path="Records" Mode="TwoWay" /> 
            </telerik:RadGridView.ItemsSource>      
        </telerik:RadGridView> 
        <TextBox Height="23" HorizontalAlignment="Left" Margin="16,14,0,0" Text="{Binding SearchText}" Name="TextBox1" VerticalAlignment="Top" Width="120" /> 
        <Button Height="23" HorizontalAlignment="Right" Margin="0,14,61,0" Command="{Binding SearchCommand}" Name="Button1" VerticalAlignment="Top" Width="75">Button</Button> 
    </Grid> 

Is there any way to expose the FilterDescriptors Collection via  a binding property so i can add to it and apply the filter, since i don't have access to RadGridView1.FilterDescriptors in my code? This would be similar to how the textbox exposes it's text property.

Is there a way to expose the ColumnCollection or SortDescriptors?
Saykor
Top achievements
Rank 2
 answered on 25 Mar 2014
1 answer
106 views
Hello, I'm binding 2 TreeView controls to one source, and only 1 TreeView has data, the other is empty.
Here's my code.

radTreeview1.ItemsSource = MyClass.Children;
radTreeview2.ItemsSource = MyClass.Children;

radTreeview1 is blank. If I comment out radTreeview2, radTreeview1 displays with data, so it looks like the last item to bind will work.

Can I not use the same class to bind to 2 different controls?

Thanks,
Scott


Boris
Telerik team
 answered on 25 Mar 2014
2 answers
81 views
Hi!

Snapshots from Snagit, Adobe and other softwares does not work.
Picture does not show up.

As well available as a Jing (.swf) file:

Issue-with-pasting-snapshot-from-acrobat.swf
https://skydrive.live.com/redir?resid=18C7014863ADA2A9!554&authkey=!ANaslUjBUZIPeG8

Is there a fix for this problem?

Thanks/Anders
Anders
Top achievements
Rank 1
 answered on 25 Mar 2014
3 answers
76 views
I am generating 2 to 4 area series dynamically by referring below link from telerik documentation:

http://www.telerik.com/help/wpf/radchartview-features-chartseriesprovider.html

But these dynamic area series are showing default colors.

Is there a property I could use to control the color of dynamically generated Area series? My application is using MVVM pattern. 
Boris
Telerik team
 answered on 25 Mar 2014
1 answer
114 views
Hi there,

I need that "ESC" key has the same behavior as "Ctrl+Z" Key... In case it is not possible, disable the Undo function for creating an Undo function own.

Thank you

Best Regards. 
Petar Mladenov
Telerik team
 answered on 25 Mar 2014
2 answers
101 views
Hi.

Is there any solution to avoid heaviest redraw and flickering during form resize operations in cases when charting control placed on form?
I noticed this strange behaviour only on chart control.  Issues easily reproduced on your demo sample (zoom.zip). Launch it and try to resize form with mouse. 
You can notice here not painted background appears on new form rectangle till the moment when chart drawn. This is very noticeable even if to use core i7 with 32Gb ram and video card with 1gb ram, and that effect had very bad impact on presentation charts when intensive using it. 

I hope that there is some solution to avoid that behaviour. Please help to find solution. 
Thank you in advance. 
Alex.
Peshito
Telerik team
 answered on 25 Mar 2014
4 answers
210 views
I am getting binding errors in the debug log when I use GroupRenderMode="Flat" with styles that depend on the ItemsSource item values. It looks as if each row is trying to bind to the RadGridView's DataContext in addition to the actual items. The style is applying correctly, the only difference I can see is the new errors in the debug log.

Below is a small example showing the problem. Note the binding error for every line in the grid:

System.Windows.Data Error: 40 : BindingExpression path error: 'IsComplete' property not found on 'object' ''MainWindow' (Name='')'. BindingExpression:Path=IsComplete; DataItem='MainWindow' (Name=''); target element is 'GridViewRow' (Name=''); target property is 'NoTarget' (type 'Object')

which does not occur if GroupRenderMode="Nested". It's trying to bind to MainWindow object instead of an Item.

Is this a bug or have I done something wrong somewhere?

Thanks,
Louis


<telerik:RadGridView ItemsSource="{Binding Path=Items}" AutoGenerateColumns="False" GroupRenderMode="Flat">
    <telerik:RadGridView.Resources>
        <Style TargetType="{x:Type telerik:GridViewRow}">
            <Style.Triggers>
                <DataTrigger Binding="{Binding Path=IsComplete}" Value="False">
                    <Setter Property="Background" Value="Red"/>
                </DataTrigger>
            </Style.Triggers>
        </Style>
    </telerik:RadGridView.Resources>
    <telerik:RadGridView.Columns>
        <telerik:GridViewDataColumn Header="ItemName" DataMemberBinding="{Binding Path=ItemName}" Width="*" />
    </telerik:RadGridView.Columns>
</telerik:RadGridView>

public class Item
{
    public string ItemName { get; set; }
    public bool IsComplete { get; set; }
}
public partial class MainWindow : Window
{
    public ObservableCollection<Item> Items { get; set; }
    public MainWindow()
    {
        InitializeComponent();
        Items = new ObservableCollection<Item>();
        for (int i = 0; i < 5; i++)
            Items.Add(new Item()
            {
                ItemName = "Object " + i,
                IsComplete = (i % 2 == 1 ? true : false)
            });
        DataContext = this;
    }
}
Yoan
Telerik team
 answered on 25 Mar 2014
7 answers
204 views
I am using the Arrow5Filled and Arrow5 SourceCapType's to differentiate between 2 different join types in my diagram. When a user double clicks the join line I throw up a popup and allow them to enter/edit information about the join. The problem I am facing is that the Arrow5 SourceCapType is not clickable unless you get right on the line (very fiddly), opposed to the Arrow5Filled which is clickable anywhere in the shape. How can I make the Arrow5 SourceCapType to have the same behavior as the Arrow5Filled SourceCapType?
Zarko
Telerik team
 answered on 24 Mar 2014
1 answer
59 views
I understand you are not supporting WPF 3.5 officially,  but if I buy a license, can I still get a hold of the latest WPF .NET 3.5 build without support?  I'm in a bind here, and I know from experience that Telerik is the best thing out there.  Our company can only develop with .NET 3.5 for customer deployment reasons with various clients.  Currently I'm stuck modifying the plain vanilla .NET 3.5 WPFToolkit DataGrid and open source codeplex files such as TreeViewEx.  Although they do the job, I don't completely trust them as much as I trust a third party tool such as Telerik, and have already run into hurdles with them that are eating up my time fixing them.

best,

-Mike Gold
Dimitrina
Telerik team
 answered on 24 Mar 2014
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?