Telerik blogs
  • Web ASP.NET AJAX

    Accessing RadControls for ASP.NET Ajax items with WatiN(by using only the html elements)

    Are you curious how to deal with the complicated rendering of RadControls and WatiN? If so, I will shed some light on this. Here is an example how to print the text of the specific node of RadTreeView and how to expand it: [STAThread] static void Main(string[] args) { IE ie = new IE("http://demos.telerik.com/aspnet/prometheus/TreeView/Examples/Programming/DataBinding/DefaultCS.aspx"); Element ulElement = ie.Element("UL", Find.ByClass("rtUL rtLines")); Element firstLiElement = ulElement.DomContainer.Element("LI", Find.ByIndex(1)); Span textSpanElement = (Span) firstLiElement.DomContainer.Div(Find.ByClass("rtTop")).DomContainer.Span(Find.ByClass("rtIn")); Console.WriteLine(textSpanElement.Text); Span plusSpanElement = (Span)textSpanElement.PreviousSibling; plusSpanElement.Click(); }   Yet another example how to click on a ...
    October 18, 2008
  • Web ASP.NET AJAX

    Beta for Q3 2008 - RadControls ASP.NET AJAX is now available!

    We are very excited to announce the Beta of Q3 2008 for RadControls ASP.NET AJAX. These are the key areas in which we have been working in the past couple of months: Improved Performance Client-Side Features Improving Data Access MVC Support jQuery integration Right-to-Left Support Merging charting into the Telerik.Web.UI.dll Full details and download instructions are available in this forum thread. Enjoy the new bits and send us any feedback you have!
    October 17, 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
  • Web ASP.NET AJAX

    Accessing RadControls for ASP.NET Ajax items with WatiN(by using only the html elements)

    Are you curious how to deal with the complicated rendering of RadControls and WatiN? If so, I will shed some light on this. Here is an example how to print the text of the specific node of RadTreeView and how to expand it: [STAThread] static void Main(string[] args) { IE ie = new IE("http://demos.telerik.com/aspnet/prometheus/TreeView/Examples/Programming/DataBinding/DefaultCS.aspx"); Element ulElement = ie.Element("UL", Find.ByClass("rtUL rtLines")); Element firstLiElement = ulElement.DomContainer.Element("LI", Find.ByIndex(1)); Span textSpanElement = (Span) firstLiElement.DomContainer.Div(Find.ByClass("rtTop")).DomContainer.Span(Find.ByClass("rtIn")); Console.WriteLine(textSpanElement.Text); Span plusSpanElement = (Span)textSpanElement.PreviousSibling; plusSpanElement.Click(); }   Yet another example how to click on a ...
    October 18, 2008
  • Web ASP.NET AJAX

    Beta for Q3 2008 - RadControls ASP.NET AJAX is now available!

    We are very excited to announce the Beta of Q3 2008 for RadControls ASP.NET AJAX. These are the key areas in which we have been working in the past couple of months: Improved Performance Client-Side Features Improving Data Access MVC Support jQuery integration Right-to-Left Support Merging charting into the Telerik.Web.UI.dll Full details and download instructions are available in this forum thread. Enjoy the new bits and send us any feedback you have!
    October 17, 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