Telerik blogs

Latest

  • Web

    Touch scrolling in RadGridView for Silverlight

    A popular feature that is often requested is multi-touch scrolling in the RadGridView control. This is easily achievable in WPF, because of the new yummy System.Windows.Input.Manipulations namespace introduced in .NET 4.0. However, Silverlight has yet to receive such a high-level touch API. The only tool we have at our disposal is the System.Windows.Input.Touch class with its one member, the FrameReported event. Nevertheless, it gives us a lot of control when it comes to handling touch events. I used it to make a little behavior that enables touch scrolling. You can also scroll horizontally and by dragging the mouse (both options controlled...
    June 17, 2010
  • Web

    Manage all Resources and Appointments data for RadScheduler for Silverlight using RIA Services.

    This blog post could be helpful for those who seek a way to store and retrieve all appointments information like Resources, TimeMarkers, Categories. It also provides a handy way to handle recurrence exceptions without any additional code. 1. Database design (This step can be avoided if a DataModel is initially created and then a database is generated from it). The key points that need to be taken into consideration when planning the database are: Where to save appointments Where to save recurrent appointments’ exceptions Where to save resources and how to relate them with appointments Here is the database schema used in...
  • 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 ...
  • 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> ...
  • Web ASP.NET AJAX

    Scroll And Slider ToolTip Extenders for RadGrid for ASP.NET AJAX

    ASP.NET Extender Controls are cool. They allow you to add rich client capabilities to other server controls. The ASP.NET AJAX Control Toolkit is a wonderful example of unleashing the power of extenders to give regular ASP.NET server controls rich client capabilities. We tried this approach to further enrich RadGrid's otherwise quite solid set of client functionalities. The result is even richer. The sample project attached contains 2 custom extender controls that can be used with RadGrid. The two are similar in purpose, but different in usage. GridSliderToolTipExtender The GridSliderToolTipExtender is used with RadGrid's Slider pager. It provides you with a handy tooltip that is dynamically loaded over the RadSlider when you slide...