Telerik blogs
  • Desktop WPF

    How To: WPF declarative binding to LINQ to SQL using ObjectDataProvider

    With ObjectDataProvider you can easily instantiate LINQ to SQL DataContext and request desired ITable using GetTable method: <Window x:Class="WpfObjectProviderWithLinqToSql.Window1" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation" xmlns:local="clr-namespace:WpfObjectProviderWithLinqToSql" Title="How to bind declaratively LINQ to SQL DataContext using ObjectDataProvider" Height="400" Width="500" ResizeMode="NoResize"> <Grid> <Grid.Resources> <ObjectDataProvider x:Key="customers" ObjectType="{x:Type local:NorthwindDataContext}" MethodName="GetTable"> ...
    January 14, 2009
  • Web

    Marketing and Silverlight, configuring cross-domain banners

    I have been part of Telerik’s Silverlight team for almost a year now, and I too well know that our marketing team is just two floors away to say anything bad about marketing.  So I will just say that now having Silverlight 2 in its official version out, marketing mix should adopt one more P in its four P’s concept, Ptechnology. That is why, I will try to explain this topic step by step, so that all marketing guys attracted by the name of this topic can delete the first paragraph and give it to their development teams for consideration....
    December 30, 2008
  • Web

    How To: Strongly typed values for your TextBoxes

    Very often you need to parse/convert TextBox Text property value to some other type however I’ve never seen any universal approach for this so far… and I’m offering you one :) using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.UI.WebControls; public static class TextBoxExtensions { public static T Value<T>(this TextBox textBox) { return (!String.IsNullOrEmpty(textBox.Text))? ChangeType<T>(textBox.Text) : default(T); } public static T ChangeType<T>(object value) { return (T)Convert.ChangeType(value, Nullable.GetUnderlyingType(typeof(T)) ?? typeof(T)); } } It's simple, isn't it? :)...
    December 20, 2008
  • Web ASP.NET AJAX

    HTTP Compression for your ASP.NET AJAX applications

    With our next service pack you will be able to compress your entire AJAX traffic completely codeless with a single web.config setting: ... <httpModules>    <add name="RadCompression" type="Telerik.Web.UI.RadCompression" />  </httpModules>  ...   <!--         The system.webServer section is required for running ASP.NET AJAX under Internet         Information Services 7.0.  It is not necessary for previous version of IIS.     -->    <system.webServer>      <modules>         <add name="RadCompression" type="Telerik.Web.UI.RadCompression" />      </modules>  ... Features: Support for all traditional ajax requests including RadAjaxManager,...
    December 16, 2008
  • Web ASP.NET AJAX

    Optimize your ASP.NET data entry validation

    With RadControls for ASP.NET AJAX Q3 2008 we introduced our brand new component called RadInputManager. You can find more info about this unique control on following articles: Introducing the RadInputManager control for ASP.NET AJAX Using Regular Expression TextBox Using RadInputManager RadInputManager First Look I've made small demo to check how the input manager will perform compared to standard validation approach in ASP.NET and here is the result: - RadInputManager: 200 standard TextBox controls with skins (hover, focus, empty, negative, enabled/disabled, read-only & invalid styles), in-place validation and formatting and many more.   - Standard Validation controls: Huge render size & JavaScript, no in-place validation (only on...
    December 10, 2008