Telerik blogs
  • 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]...
    October 17, 2008
  • 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...
    October 17, 2008
  • 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...
    October 17, 2008
  • 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...
    October 17, 2008
  • 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...
    October 16, 2008
  • 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]...
    October 17, 2008
  • 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...
    October 17, 2008
  • 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...
    October 17, 2008
  • 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...
    October 17, 2008
  • 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...
    October 16, 2008