Telerik blogs
  • Web

    RadChart – How to customize databound and auto-generated items?

    Imagine you have a databound RadChart and you need to customize the item labels, say you need to combine the values of two fields into a single item label. All you need to do is wire the ItemDataBound event, retrieve the ChartSeriesItem and customize it as per your requirements. You may use the actual data for this, here is an example:   protected void RadChart1_ItemDataBound(object sender, ChartItemDataBoundEventArgs e)     {         ChartSeriesItem item = e.SeriesItem;         DataRowView dataItem = (DataRowView)e.DataItem;         item.Label.TextBlock.Text = dataItem["FirstName"].ToString() + " " + dataItem["LastName"].ToString();     }   That was simple, but what about auto-generated axis items? OK, let’s start with some background – RadChart allows you to modify it at any stage of the page lifecycle, including events fired as...
    October 02, 2008
  • Web ASP.NET MVC

    Telerik RadControls in Microsoft ASP.NET MVC

    To continue with my previous blog post about RadGrid for ASP.NET AJAX in Microsoft ASP.NET MVC, I've made another example how to use RadControls for ASP.NET AJAX as pure client-side components in this environment. The biggest challenge here is the ScriptManager and scripts registration in general. By default the creation of client-side components is so tightly coupled with the ajax functionality (PageRequestManager) that the only way to enable this is to inherit from ScriptManager (or RadScriptManager) and build everything manually: protected override void Render(HtmlTextWriter writer) {      foreach (RegisteredScript script in GetRegisteredClientScriptBlocks())      {          if (Page.Items[script.Key] == null)          {              Page.Items[script.Key] =...
    October 02, 2008
  • Web

    Loading Images in Silverlight2 Applications

    One question we receive very often from our customers, is how to load an image, from different relative folders in Silverlight. This is a little bit tricky and it is different from the way it is working in HTML. I found this great article, from the Katrien's MSDN blog, about all the possible scenarios that you may have. Here is the reference: http://blogs.msdn.com/katriend/archive/2008/04/27/different-ways-for-loading-images-and-files-in-silverlight-2-applications.aspx   Enjoy!...
    October 02, 2008
  • People

    HDC Follow-Up

    I just arrived back home from the Heartland Developer's Conference in Minneapolis, MN. Besides a stomach bug I caught on day two and the near-death experience on the flight home, I had a great time. HDC was packed with 30 sessions over two days and was attended by more than 200 developers, most of whom were locals. There were a lot of great talks and it was fun to rub shoulders with the .NET developers of the Twin Cities. I also really enjoyed meeting some great Telerik customers and hearing all the things you are doing with our controls. All-in-all, I'd...
    October 02, 2008
  • Release

    RadControls for Silverlight 2 RC0

    The latest RadControls for Silverlight 2 have been uploaded to the Telerik site. The files can be downloaded form the Client.Net accounts. This version is entirely compatible against MS Silverlight 2 RC0 that was launched a few days ago.   Still to come in the following days: Detailed release notes, all the breaking changes, what's new in the suite.
    October 01, 2008
  • Web

    RadChart – How to customize databound and auto-generated items?

    Imagine you have a databound RadChart and you need to customize the item labels, say you need to combine the values of two fields into a single item label. All you need to do is wire the ItemDataBound event, retrieve the ChartSeriesItem and customize it as per your requirements. You may use the actual data for this, here is an example:   protected void RadChart1_ItemDataBound(object sender, ChartItemDataBoundEventArgs e)     {         ChartSeriesItem item = e.SeriesItem;         DataRowView dataItem = (DataRowView)e.DataItem;         item.Label.TextBlock.Text = dataItem["FirstName"].ToString() + " " + dataItem["LastName"].ToString();     }   That was simple, but what about auto-generated axis items? OK, let’s start with some background – RadChart allows you to modify it at any stage of the page lifecycle, including events fired as...
    October 02, 2008
  • Web ASP.NET MVC

    Telerik RadControls in Microsoft ASP.NET MVC

    To continue with my previous blog post about RadGrid for ASP.NET AJAX in Microsoft ASP.NET MVC, I've made another example how to use RadControls for ASP.NET AJAX as pure client-side components in this environment. The biggest challenge here is the ScriptManager and scripts registration in general. By default the creation of client-side components is so tightly coupled with the ajax functionality (PageRequestManager) that the only way to enable this is to inherit from ScriptManager (or RadScriptManager) and build everything manually: protected override void Render(HtmlTextWriter writer) {      foreach (RegisteredScript script in GetRegisteredClientScriptBlocks())      {          if (Page.Items[script.Key] == null)          {              Page.Items[script.Key] =...
    October 02, 2008
  • Web

    Loading Images in Silverlight2 Applications

    One question we receive very often from our customers, is how to load an image, from different relative folders in Silverlight. This is a little bit tricky and it is different from the way it is working in HTML. I found this great article, from the Katrien's MSDN blog, about all the possible scenarios that you may have. Here is the reference: http://blogs.msdn.com/katriend/archive/2008/04/27/different-ways-for-loading-images-and-files-in-silverlight-2-applications.aspx   Enjoy!...
    October 02, 2008
  • People

    HDC Follow-Up

    I just arrived back home from the Heartland Developer's Conference in Minneapolis, MN. Besides a stomach bug I caught on day two and the near-death experience on the flight home, I had a great time. HDC was packed with 30 sessions over two days and was attended by more than 200 developers, most of whom were locals. There were a lot of great talks and it was fun to rub shoulders with the .NET developers of the Twin Cities. I also really enjoyed meeting some great Telerik customers and hearing all the things you are doing with our controls. All-in-all, I'd...
    October 02, 2008
  • Release

    RadControls for Silverlight 2 RC0

    The latest RadControls for Silverlight 2 have been uploaded to the Telerik site. The files can be downloaded form the Client.Net accounts. This version is entirely compatible against MS Silverlight 2 RC0 that was launched a few days ago.   Still to come in the following days: Detailed release notes, all the breaking changes, what's new in the suite.
    October 01, 2008