Telerik Forums
UI for WPF Forum
4 answers
479 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
127 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
96 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
95 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
133 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
121 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
268 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
255 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
75 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
3 answers
163 views
I love the examples you have showing how you can group by a category.  Is it possible to add multiple categories to an appointment and group by it?  For example, lets say using your TV Schedule example, a show might be Sports and Documentary.   So when Grouping, I would like to see the Appointment come up in both Sports and Documentary.   Obviously, I have to be able to select multiple categories.  But how to group by them as well?  Would be a HUGE Help if you could give me some direction.
Rosi
Telerik team
 answered on 24 Mar 2014
Narrow your results
Selected tags
Tags
GridView
General Discussions
Chart
RichTextBox
Docking
ScheduleView
ChartView
TreeView
Diagram
Map
ComboBox
TreeListView
Window
RibbonView and RibbonWindow
PropertyGrid
DragAndDrop
TabControl
TileView
Carousel
DataForm
PDFViewer
MaskedInput (Numeric, DateTime, Text, Currency)
AutoCompleteBox
DatePicker
Buttons
ListBox
GanttView
PivotGrid
Spreadsheet
Gauges
NumericUpDown
PanelBar
DateTimePicker
DataFilter
Menu
ContextMenu
TimeLine
Calendar
Installer and Visual Studio Extensions
ImageEditor
BusyIndicator
Expander
Slider
TileList
DataPager
PersistenceFramework
Styling
TimeBar
OutlookBar
TransitionControl
FileDialogs
Book
ToolBar
ColorPicker
TimePicker
MultiColumnComboBox
SyntaxEditor
VirtualGrid
Wizard
ExpressionEditor
NavigationView (Hamburger Menu)
WatermarkTextBox
DesktopAlert
BarCode
SpellChecker
DataServiceDataSource
EntityFrameworkDataSource
RadialMenu
ChartView3D
Data Virtualization
BreadCrumb
LayoutControl
ProgressBar
Sparkline
TabbedWindow
ToolTip
CloudUpload
ColorEditor
TreeMap and PivotMap
EntityFrameworkCoreDataSource (.Net Core)
HeatMap
Chat (Conversational UI)
VirtualizingWrapPanel
Calculator
NotifyIcon
TaskBoard
TimeSpanPicker
BulletGraph
Licensing
WebCam
CardView
DataBar
FilePathPicker
PasswordBox
SplashScreen
Callout
Rating
Accessibility
CollectionNavigator
Localization
AutoSuggestBox
Security
VirtualKeyboard
HighlightTextBlock
TouchManager
StepProgressBar
Badge
OfficeNavigationBar
ExpressionParser
CircularProgressBar
SvgImage
PipsPager
SlideView
AI Coding Assistant
+? more
Top users last month
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?