• .NET Web

    Data Virtualization for your Silverlight and WPF Applications

    I’m happy to announce that with our Q3 2010 Release of RadControls for Silverlight and WPF you will be able to load records on demand using our brand new VirtualQueryableCollectionView: The collection will load records only when needed and you can check it in action on our beta demos: http://demos.telerik.com/silverlight/beta/#DataVirtualization/FirstLook I’ve attached also two applications to illustrate how to use VirtualQueryableCollectionView in different scenarios: - Directly with IQueryable in WPF Download - Using ItemsLoading event / Load() method in Silverlight Download Enjoy! ...

  • .NET Web

    Fast real-time data update for your Silverlight and WPF applications

    I’ve made small example to illustrate how to use NotifyCollectionChangedAction.Replace in order to provide very fast real-time data update with RadGridView for Silverlight and WPF.    While Binding in both Silverlight and WPF will react immediately to any property change of INotifyPropertyChanged object and will update RadGridView cell values sometimes it is important to refresh the grid in order to update a sorting, filtering, grouping, etc. after some value change. To achieve your goal in such situation you have two options:   - listen for PropertyChanged of every item in the collection and raise NotifyCollectionChangedAction.Reset for the collection in order to tell the...

  • .NET Web

    Hierarchy Load On Demand With RadGridView for Silverlight, MVVM and OData

    September 28, 2010 Share
    Similar to this post, I’ve made small example on how to load on demand RadGridView for Silverlight three level hierarchy using MVVM and OData service:   XAML <telerik:RadGridView ItemsSource="{Binding CustomersCollection}" AutoGenerateColumns="False"> <telerik:RadGridView.Columns> … </telerik:RadGridView.Columns> <telerik:RadGridView.ChildTableDefinitions> <telerik:GridViewTableDefinition /> </telerik:RadGridView.ChildTableDefinitions> <telerik:RadGridView.HierarchyChildTemplate> <DataTemplate> <telerik:RadGridView ItemsSource="{Binding OrdersCollection}" AutoGenerateColumns="False"> ...

  • .NET Web

    How To: Synchronize your UI selected items with your data context using MVVM and Blend behaviors for Silverlight and WPF

    Very often you need “two-way” binding between some UI component with multiple selection and a data context property for selected items – let’s say RadGridView and the following model: XAML <telerik:RadGridView ItemsSource="{Binding Data}" SelectionMode="Extended" SelectedItem="{Binding SelectedItem, Mode=TwoWay}"> … C# public class MyDataContext : INotifyPropertyChanged { ... ObservableCollection<MyObject> _SelectedItems; public ObservableCollection<MyObject> SelectedItems { get ...

  • .NET Web

    How To: Column chooser for RadGridView for Silverlight and WPF

    I’ve made small demo on how to create column chooser for any RadGridView in few very simple steps:   1. Add new ChildWindow:   2. Define following XAML for the child window: <Grid x:Name="LayoutRoot" Margin="2"> <Grid.RowDefinitions> <RowDefinition Height="Auto" /> <RowDefinition /> </Grid.RowDefinitions> <TextBlock Text="Available columns:" /> <ListBox ItemsSource="{Binding Columns}" Grid.Row="1"> <ListBox.ItemTemplate> <DataTemplate> ...