PART II [example: Conditional formatting of cells in RadGridView for WPF and Silverlight] Lets say we have a list of products and we need to mark higher prices (>15.00) with a red color. Something like : First lets try it with RadGridView for WPF : We have to create a small IValueConverter. It will take care to convert the value of the price to the appropriate color: 1: public class PriceToColorConverter : IValueConverter 2: { 3: public object Convert(object value, Type targetType, object parameter, System.Globalization.CultureInfo...
So a customer emailed into our office yesterday asking about whether RadChart for Silverlight supported a Step chart type. Well, while we do have a boatload of chart types already, Step is currently not one of them. But a Step chart is really just a Line chart with a bit of extra work, right? With the help of our chart wizard Manol, we were able to show that the LineSeriesDefinition could, in fact, replicate a Step chart. But that was with setting all points manually and took a bit of thinking to make sure all the steps looked right. So...
A few weeks ago, someone asked me if the RadChart supported dragging the series items around. The simple answer to this question is no, there is no out-of-the-box support for this feature in the RadChart. I was curious though, so I decided to try my hand at making this concept into a reality. What follows is the code I came up with to do it.
Figure 1. The Final Result Fields and Constructor In the constructor I am basically generating a bunch of random values to use in the chart. As you can see, I am actually using two series. The ...
PART I [example: Adding an ‘Insert new row’ button to RadGridView ] Certain scenarios require adding additional behaviors and/or visuals to RadGridView. Implementing these as integrated features in RadGridView is not always appropriate as they may serve quite specific client scenarios or may require customization beyond the power of a common integrated feature. According to the canons of WPF and Silverlight such tasks should be easily achieved by modifying the default control template and adding the necessary visuals (e.g. user controls with some additional logic included). My experience with clients shows that such approach is sometimes kind-of frustrating as it often involves...
It is quite often that different customers eventually face the need to use a master-detail hierarchical representation of their data. However most customers are not aware that this is extremely easily achievable using Telerik OpenAccess ORM together with our RadGrid. Furthermore it is achieved without writing ANY code in the code behind file of your project. Now let’s get to the job! What will be needed is just one RadGrid and two OpenAccessDataSource controls. The two data source controls will be used to query data from the master and detail tables. In our case we used the Company and Employee tables(one company has many...
Join Todd Anglin, Telerik Chief Evangelist and Microsoft MVP, for the free “RadGrid for ASP.NET AJAX Optimization: Part 1” webinar that will take place on Thursday, October 1st from 11:00 am until 12:00 pm EDT. In this week’s webinar, we will look at how you can optimize the performance of the RadGrid for ASP.NET AJAX for data operations over the web. The following five categories will be discussed: Viewstate management
Column editor optimization
Conditional rendering
Ajaxification
Resource management.
There are, of course, many other optimization strategies, and...
Just coming back from Mainz, Germany where Basta 2009 took place this week. It was a great conference where Telerik provided Silver Sponsorship and very nice lanyards to the approximately 700 attendees. Stephen Forte enjoyed speaking at a German conference for the first time. Check out his post about how to write a WCF service and then call it from Silverlight asynchronously. Telerik OpenAccess ORM expert Jan Blessenohl also gave a presentation on ORM and RIA Services. You can see a photo from our booth on the evening before the show - as usual Telerik was early and well prepared. Many professional developers stopped...
As most of you probably know, OQL was the main object-oriented query language that was supported by Telerik OpenAcess ORM before Linq was introduced in .NET. Even though Linq is now the de facto standard for querying data, support for OQL is still there and I would state that it still is pretty convenient to use in some scenarios. We will use this post to share some tips on querying data using the Object Query Language. Consider the following query: IQueryResult projection = scope.GetOqlQuery("SELECT pr.ProductName, cat.CategoryName " + "FROM CategoryExtent AS cat,cat.Products AS pr").Execute(); This query makes...
As some of you may already know the Q2 release of RadGridView for WPF ships with a brand new “data engine” entirely based on LINQ. This means that all data operations including sorting, filtering, grouping, aggregating and paging will be pushed down to the IQueryProvider when RadGridView is bound to an IQueryable. For example if you are using LinqToSql, LinqToEntities or OpenAccess ORM all gird operations are executed on the SQL server using the magic of LINQ providers. Staying on the cutting edge I decide to try out PLINQ (Parallel LINQ) and enable RadGridView to execute its data operations on all available CPU cores. PLINQ...
It has been several months since we have started actively using the Visual Studio Extensions to make the life of Telerik customers easier. We have been regularly introducing enhancements in the extensions and we’d love to hear your feedback on how helpful these are. Please take this survey to help us drive our efforts in the right direction. (500 Telerik points will be added to your account!)
For those of you who have been using RadControls for ASP.NET AJAX and have not tried the features of the VS extensions package please do so now: Read More or Watch a ...