This article is taken from How jQuery Works. jQuery uses an interesting concept called a "Builder" to make its code short and simple. The Builder pattern is an object-oriented programming design pattern that has been gaining popularity. In a nutshell: Every method within jQuery returns the query object itself, allowing you to 'chain' upon it, for example: $("a")
.filter(".clickme")
.click(function(){
alert("You are now leaving the site.");
})
.end()
.filter(".hideme")
.click(function(){
$(this).hide();
...
One of the cool things about Telerik Reporting is that you can bind it to just about any kind of data source. Regardless of whether your data is stored in a SQL Server database, an XML document, or a simple text file, if you can read it into one of the supported data source types then you can bind it to your report. Since XML is a often used to store data, I thought it might be helpful to demonstrate how to bind your report to the data in an XML file using LINQ to XML. To get started, create a class...
Did you know that there over 25 localized versions of RadSpell's dictionaries (30, to be exact)? Did you know there are over 10 localizations of RadEditor? When you're building a global site, you often need to support a number of languages, and thanks to Telerik's outstanding community, we are able to offer a huge range of localizations for the RadControls- especially those controls which depend heavily on localized strings. Not all controls require localizations- a RadSlider or ColorPicker, for example, communicate their UI without any built-in strings. Even controls like RadGrid don't have much need for localization. Other controls- like...
I’m happy to announce another episode of RadTips, a series of screencasts offering tips and tricks for using Telerik's RadControls. If you've missed previous episodes, be sure to check them out. Each is only a few minutes long and covers a specific feature of the RadControls. Here is a list of the last few episodes... Customizing Appointments with Resources in the RadScheduler for ASP.NET AJAX Customizing Templates in the RadScheduler for ASP.NET AJAX Spell-Checking with the RadSpell for ASP.NET AJAX Add an 'Export to PDF' Button to the RadEditor for ASP.NET AJAX Customizing the Look of the RadAjaxLoadingPanel for ASP.NET AJAX If you’re interested...
While reviewing the daily portion of blog posts today one article at Delay’s blog here caught my attention – customizing the MS chart control via re-templating and the MVVM design pattern in order to achieve different colorization of the bar series items in a single series. We have discussed similar functionality some time ago but it seemed like a very non-mainstream scenario and based on our experience with the ASP.NET / WinForms chart it was rarely requested feature so we decided we can go without it for the time being. However, once I read the article I started thinking what it would...
As a component vendor we need to be extra cautious about the quality of the code we ship. Design, presentation, performance etc. are all very important for us. One item that is often overlooked in the .NET community is memory leaks. It is a quite a precarious issue, because most people believe that in the managed world it is not possible to have a memory leak. Well, if you thought so you are in for a surprise. The idea of the blog post is not to explain what memory leaks are, how the garbage collector works and so on. These things...
If you have a need for calendaring capabilities in your WPF application, look no further. The RadScheduler brings you a number of capabilities with minimal effort. I am going to discuss some of the core features that you get with the RadScheduler for WPF without implementing any code. I thought a quick preview of what the control offers out of the box, might give you some ideas of how you leverage it in your applications. To get started create a new WPF application and drop a RadScheduler onto the Window. <Window x:Class="WPFRadSchedule.Window1" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" Title="Window1" Height="600" Width="800 " xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation"> <Grid> <telerik:RadScheduler Margin="12" Name="radScheduler1" /> </Grid> </Window> The XAML above is a preview of what I...
With the Windows Presentation Foundation a new type of events were introduced - the Routed Events. They have provided the developer with an entirely new approach to the eventing and the event handling. Basically, Routed Events traverse the logical tree upwards or downwards, depending on their Routing Strategy – Bubble and Tunnel respectively. To get deeper with what the routed events are and how RadControls for Silverlight uses them we prepared this comprehensive training session. Before launching the video session you might check the Hristo Hristov's blog on Routed Events in Silverlight 2 and our dedicated page on support for routed events at: http://www.telerik.com/products/silverlight/resources/routed-events-framework.aspx. ...
Download I will show you how easy is to integrate OpenAccess with RadGridView for Silverlight. I get the example from my colleague Dimitur and make it work with our RadGridView. If you are interested how to make OpenAccess to work with ADO.NET Data Services please read his blog series. To allow inserting new rows in RadGridView we should attach to AddingNewDataItem event. <telerik:RadGridView x:Name="gridView" Grid.Row="1" AddingNewDataItem="GridViewAddingNewDataItem" /> And provide the newly created object in it. private void GridViewAddingNewDataItem(object sender, GridViewAddingNewEventArgs e)
{
e.NewObject = new Supplier();
} Now we can insert new objects. Next steps is to save changes to the database. We should attach to GridViewRow.EditEndedEvent. this.gridView.AddHandler(GridViewRow.EditEndedEvent, new...
Presenting data in a grid is common in many applications, but it doesn't have to look like a bunch or columns and rows. With WPF you have freedom to make the data look totally different. In this post, I am going to demonstrate using a custom row layout with the RadGridView for WPF. To get started, I have setup a new window with a RadGridView. I will be using the Northwind database Employees table for this example. I would like to point out that if you are going to recreate this example, you will need to add the Window.Resources section...