Yup, awkward creatures but they do exist! :) To be honest I came across these only recently and decided to share this (potentially) valuable information as well -- you cannot use it if you do not know it's there. Why do we need read-only dependency properties? There is a certain brand of dependency properties within the WPF framework that are used primarily for state determination. Often multiple conditions affect certain control state thus calculating and setting the state value directly is not feasible and generally leads to unpredictable and inconsistent results. Here is an example -- the UIElement.IsMouseOver dependency property (a common property...
If you are doing serious software development you probably have automated builds (via TeamBuild or some other tool) which build all the build configurations you have, run all your unit tests, run code analysis rules, run source analysis rules and more. While writing code you probably want to have all those extra tools and checks turned off because they will drag your productivity down. When you are about to check-in, however, you will need to make sure your solution builds without errors in different build configurations as well as run all tests to make sure you are not about to...
In this tutorial I will show you how to edit the ControlTemplate of one of our controls – the slider. Before you begin you need to cover the prerequisites bellow. You have to download the Telerik Controls for Silverlight as well as the project that contains all the controls and their ControlTemplates. Telerik Controls for Silverlight Project with all the ControlTemplates – this project is created in such way that allows you easily to edit the control templates. This means that all the control templates are copied in the resources of each Silverlight page. If you are missing any of...
Often I can look at one of our RadControls and know right away why using it offers a greater benefit than one of the built-in ASP.NET controls. The RadAjaxPanel is no different, but often I hear of confusion from developers as to the benefit of using this control over the built-in UpdatePanel. Well, it certainly offers the same kind of functionality as an UpdatePanel, but there's more available to you if you dig a little deeper. Basic Ajax Functionality For starters, it's important to understand how the RadAjaxPanel is meant to be used. The typical use-case scenario is when a developer has a...
Do you wonder if there are any keys to get easy test automation over the RadControls components? I’ve seen people asking about how to get a simple (at a first glance) task done through this or that test automation tool and we generally find the specific resolution with the exact tool in use. However, in most cases the things are quite similar no matter which tool you prefer. Instead of posting particular solutions though, with this post I’m sharing some of the trickiest moments one may came across while working on tests automation of RadControls for ASP.NET (AJAX) and the ...
My colleague Todd Anglin has already written a post about how to create a rotator control dynamically - you can read it here - How to Create RadRotator Programmatically. Unfortunately, this code in that post is for the old RadRotator control and if you try to use it in the new ASP.NET AJAX version, you will notice that it will not compile. Fortunately, you can quickly fix that. Here is what you need to change: FrameTemplate - this property has been replaced with ItemTemplate RadRotatorFrame - this object has been replaced with RadRotatorItem
After you update the above names, you should be able...
In celebration of the fact that the weekend is upon us, I'd like to leave you all with another exciting RadTips episode. This episode covers yet another client-side databinding technique: sorting. Client-side databinding is an advanced feature of the RadGrid, and something only found in the latest and greatest bits from the RadControls for ASP.NET AJAX suite. This episode walks you through how to implement sorting when using this new feature. The demo users other cool ASP.NET features like LINQ to XML and Page Methods, so be sure to check it out. As always, the video is available in WMV...
Today I was profiling the initialization time of RadTreeView for ASP.NET Ajax and found out that the biggest bottleneck was traversing the DOM tree. The code looks something like this: //get_childListElement() returns an HTML element var childNodes = parent.get_childListElement().childNodes; for (var i = 0, length = childNodes.length; i < length; i++) { var childNode = childNodes[i]; //Perform additional initialization } I tested with 10000 elements and in IE7 I got about 25000ms whilst in FireFox the total time was around 33ms (Core 2 Duo @ 2.33GHz). Quite a difference if you ask me. I thought that there may be some IE specific method/property which could perform better and I dug into MSDN. And a few minutes later I found the children property!!! Apparently the children collection contains only HTML elements (whilst childNodes is full of...
ASP.NET Dynamic Data has just gone official with the SP1 release of Visual Studio 2008 and .NET 3.5. We have just released updated version of our Dynamic Data bits which is tested against the official release and has few minor improvements (such as implementation of the DataControl property). Get it from here....
I've made small example how to perform paging, sorting and filtering directly on the data-base sever using LINQ to SQL and RadGridView for WPF. The data-base is not included however you can use the same code with any data-base with following modifications: - change the connection string in the app.config file - change the table name in BindGrid() method: IQueryable queryable = new DataClasses1DataContext().[Your Table].AsQueryable(); - define desired total number of items per page and total page count - change the filter expression in the filter button click event handler to desired (currently Contains for Name...