Telerik blogs

Latest

  • 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 ...
    May 27, 2021 2 min read
  • Productivity

    Mocking successive calls of similar type via sequential mocking

    In this post , i show how you can benefit from  sequential mocking feature[In JustMock] for setting up expectations with successive calls of same type.  To start let’s first consider the following dummy database and entity class. public class Person {     public virtual string Name { get; set; }     public virtual int Age { get; set; } } public interface IDataBase {     T Get<T>(); }   Now, our test goal is to return different entity for successive calls on IDataBase.Get<T>(). By default, the behavior in JustMock is override , which is similar to other popular mocking tools. By override it means that the tool will consider always the latest user setup. Therefore, the first example will return the latest entity every-time and...
    May 27, 2021 2 min read
  • People

    Agile and OData at TechEd North America 2010

    Looking forward to heading to New Orleans this weekend and doing an all day Agile pre-con on Sunday with Joel Semeniuk. There is still space to sign up, here is the info to look for: PRC07 | The Agile Methodology Demystified: Implementing Agile in Your Organization Track: Development Practices Wednesday afternoon I will also be presenting a breakout session on OData:. Below is the official write-up, however, I will be showing first how to build an OData service (first via Astoria or *.Data Services, and then with other methods such as SQL Azure, etc) and then how to consume the service via several different technologies including ASP.NET, Silverlight,...
    May 27, 2021 2 min read
  • Desktop WPF

    Building BI Dashboards with Telerik RadControls for Silverlight and WPF Webinar Follow-up

    Despite the initial audio and connectivity issues, the Building BI Dashboards with RadControls for Silverlight and WPF Webinar proceeded well and we got to dive into some of the issues people face in these scenarios as well as how RadControls for Silverlight and RadControls for WPF can help answer those challenges.  This is very close to the presentation that I gave this past weekend at the New England BI Code Camp, except the webinar is a little more focused on Telerik controls.  :) In this presentation, we look at a fictional requirements list for a customer would look like and why Silverlight or WPF can...
    May 27, 2021 2 min read
  • People

    TechEd New Orleans and 2 free passes for DevLink Nashville

    In roughly two weeks we will converge at TechEd New Orleans – arguably the biggest developer event worldwide. With Visual Studio 2010 and Silverlight 4 out the door, it will be very interesting to see if Microsoft will have any developer news for us – I am betting there will be some. Telerik will be at TechEd in full force, both speaking and exhibiting. You will be able to find us at our usual `shiny black booth``.   If you attended DevConnections Las Vegas, then you are familiar with the kind of show we put up at conferences – here are...
    May 27, 2021 2 min read
  • Release

    Upgrading to Service Pack 1 Q1

    Yesterday (the 27th of May) we released the Telerik OpenAccess ORM Service Pack 1 and with it we introduced full support for Visual Studio 2010 as well as integration of the Data Services Wizard into the product and a beta provider for the RIA services (you can read more in the release notes). There are however some things we need to note. There were some installation-related problems reported already by some of our customers. In some of the cases the Domain Model template was not available in the Add New Item dialog. In others after finishing the Add New Item Wizard the new items...
    May 27, 2021 1 min read
  • Release

    Telerik OpenAccess SP1 Available

    Telerik has released Service Pack 1 of OpenAccess ORM, available now for download. There are a lot of new features (and of course bug fixes) but the three most important are: The new LINQ implementation works fully with Visual Studio 2010 The Data Services Wizard is now fully integrated with the product, no separate install A beta of RIA Services support I will be doing a blog post on each of these in the coming weeks (expect some delays with TechEd US in the way.) One more thing to mention is that the Data Services Wizard now generates a Silverlight client and will give you the ability to automatically style...
    May 27, 2021 1 min read
  • 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> ...
    May 27, 2021 1 min read
  • 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...
    May 27, 2021 3 min read
  • Productivity Testing

    Is your test method self-validating ?

    Writing state of art unit tests that can validate your every part of the framework is challenging and interesting at the same time; it's like becoming a samurai. One of the key concept in this is to keep our test synced all the time as underlying code changes and thus breaking them to the furthest unit as possible.
    May 27, 2021 2 min read