Telerik blogs

Latest

  • Web ASP.NET MVC

    The Grid in Microsoft ASP.NET MVC Beta

    As you know this week Microsoft released ASP.NET MVC Beta and I've updated my last grid example to the latest ASP.NET MVC version. I needed to change only two things: - Ajax.Form changed to Ajax.BeginForm/Ajax.EndForm - Html.SubmitButton changed to plain <input type="submit" /> and everything worked instantly! [Live | Download]...
    May 27, 2021 1 min read
  • Productivity

    LINQ: Sequence contains no elements. Extension methods to the rescue.

    When you start playing with LINQ queries over sequences of elements (e.g. getting min / max value for enumerable source) sooner or later you will come across this one -- the InvalidOperationException (“Sequence contains no elements”). The problem occurs as by default queries like IEnumerable<T>.Min(…) and IEnumerable<T>.Max(…) do not play nicely if you try to execute them on an empty sequence and just throw the exception described above. Unfortunately these methods do not have a corresponding counterpart like Single(…) / SingleOrDefault(…) that is smart enough to query the sequence if it is not empty or alternatively use the default value without raising...
    May 27, 2021 2 min read
  • Release

    Telerik.Charting in RadControls for ASP.NET AJAX Q3 2008

    There is no Telerik.Charting.dll anymore. It is now merged into Telerik.Web.UI. You will no more have to worry about its version and its registration in Web.config or replacing it in GAC when new version is out. Here are the steps you need to take when upgrading your applications from RadControls for ASP.NET AJAX version prior to Q3 2008 to RadControls for ASP.NET AJAX Q3 2008 and later: · If you have Telerik.Charting installed in GAC (this used to be the default RadControls installer action) replace the following Register directive <% Register Assembly="Telerik.Charting, Version=2.0.5.0, Culture=neutral, PublicKeyToken=d14f3dcc8e3e8763" Namespace="Telerik.Charting" TagPrefix="telerik" %>   with this one: <%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Charting" TagPrefix="telerik" %> You will also need to remove...
    May 27, 2021 2 min read
  • Release

    RadScheduler for ASP.NET AJAX - Q3 Beta

    The days are getting longer here, at Telerik Central, as we are working hard to bring you the next top-notch release. Much attention is directed at RadScheduler and we have some good stuff coming down the pipeline. The beta is due today, so we have decided that it is about time to spill the beans. Looks count, really. That is why we have decided to add a touch of class to RadScheduler and make it a stylish part of your even more stylish applications. The changes are more than skin deep. The markup and the CSS were simplified and reduced in size for...
    May 27, 2021 2 min read
  • Web ASP.NET AJAX

    RadCombobox with disabled javascript

    Hi, all. We have a couple of requests from customers to do something and make RadComboBox working when javascript is disabled. And we did it. We implemented a new AccessibilityMode property which will render noscript tag containing a select html element. This will make the combobox control usable even if the javascript of the browser is disabled. Yes, it will be displayed like an usual drop down list but still it will be RadComboBox on the server. The following RadComboBox definition : <telerik:RadComboBox ID="RadComboBox1" runat="server" Width="250px" ForeColor="Green" AccessibilityMode="True" OnSelectedIndexChanged="RadComboBox1_SelectedIndexChanged" AutoPostBack="True"> <Items> <telerik:RadComboBoxItem runat="server" Text="RadComboBoxItem1" Value="RadComboBoxItem1" ForeColor="green"/> <telerik:RadComboBoxItem...
    May 27, 2021 1 min read
  • Desktop WPF

    WPF: Debugging Expression Blend Exceptions with Visual Studio

     Although Expression Blend and Visual Studio can work on the same solution / project files, they remain two separate IDEs and it is not uncommon for certain functionality to work correctly in the Visual Studio design-time environment and throw an error in the Expression Blend one. The Blend error output does not always help much with identifying the reason for the erroneous behavior:    This clearly does not give us enough information to track the problem down. Fortunately there is an easier way to detect the problem instead of wandering around the code in a manual “debugging” session – the Visual Studio...
    May 27, 2021 1 min read
  • Release

    Telerik OpenAccess ORM licensing and pricing

    Immediately after word got out that we acquired Vanatec, customers started asking us what are our plans for the tool, how much it is going to cost and whether they would get it for free or they would have to upgrade. While we will be releasing information about our future plans for OpenAccess and will publish the ORM roadmap in the weeks to come, I wanted to make a quick note about licensing. The good news for customers with an all-inclusive subscription is that they will get the tool free of charge, as well as any updates that are out during their subscription....
    May 27, 2021 1 min read
  • Web

    RadControls for Silverlight 2 - Drag and Drop Basics

    Who would not like to implement a sleek drag and drop in minutes? I definitely would. This is why I find the new RadDragAndDrop a welcome addition to the controls. Straight to the point then: How to implement a simple drag/drop? To answer this question I will walk you through the DragDrop example that is available here: http://demos.telerik.com/silverlight/#Examples/DragAndDrop/FirstLook This example shows that the DragDrop can be used with any controls/objects, not just the Telerik RadControls. DragDrop 101 Few simple things to remember: Every object that will be dragged must have AllowDrag property to true, it is an attached property and in xaml it can be set the following way:   <Rectangle...
    May 27, 2021 7 min read
  • Release

    RadControls for Silverlight 2 - RTW update

    Today Microsoft released Silverlight2 RTW. See more info on this here. Following this great news, we released an update of our RadControls for Silverlight2 suite that is compatible with this latest plugin. The update is now available for download from your client.net account.   With this update, we expanded the suite with two bright new controls - RadContextMenu and RadCoverFlow, and we added support for custom Themes!   There are also a couple of new examples: RadTreeView > Checked Nodes RadTreeView > Expand Mode RadTreeView > Lines Support RadTreeView > HtmlApi RadTreeView > Themes RadTabControl > Drag Over Tab RadTabControl > Drag Reorder RadUpload > ImageGallery sample RadUpload > Events RadUpload > Working with Custom Parameters   In the following days we will upload several...
    May 27, 2021 1 min read
  • Web ASP.NET AJAX

    Optimized Rendering and Skins for RadCalendar for ASP.NET AJAX

    I have the pleasure to announce that RadCalendar for ASP.NET AJAX has undergone a considerable HTML and CSS optimization. As a result, the HTML output generated by the following RadCalendar declaration has dropped from 5,916 bytes to 3,905 bytes, or by...
    May 27, 2021 1 min read