Telerik blogs

Latest

  • Web ASP.NET AJAX

    Telerik, AJAX UI controls and Mono support

    Had I posted the big news yesterday, many people would've probably thought that it's an April Fools' Day joke. Luckily, it's not a prank and we are very excited to announce that RadControls for ASP.NET AJAX works on the latest distribution of Mono.    Telerik customers have been asking us for Mono support since 2006 and we have been quietly working with Novell to make it happen. After many rounds of feedback and fixes, we are very happy that our collaboration yielded great results - now customers can make their ASP.NET applications truly cross-platform. It's a good time to say a BIG...
    April 02, 2009
  • Web ASP.NET MVC

    ASP.NET MVC - Passing JSON to controller actions and populating controls on demand

    As you probably know some of our controls support web service load on demand (a.k.a. client-side databinding). Also in ASP.NET MVC we can call controller actions via Ajax. In this blog post I will show you how to populate RadComboBox and RadTreeView on demand by using a controller action which returns JsonResult. Let's start with RadComboBox: Configure RadComboBox for Load on Demand I have added the RadComboBox control to the default Index.aspx view and configured it like this: <telerik:RadComboBox runat="server" ID="RadComboBox1" EnableLoadOnDemand="true" ShowMoreResultsBox="true" EmptyMessage="Type here ..." Height="200px"> <WebServiceSettings Path="Home" Method="LoadItems" /></telerik:RadComboBox> .csharpcode, .csharpcode pre { font-size: small; color: black; font-family: consolas, "Courier New", courier, monospace; background-color: #ffffff; /*white-space: pre;*/ } .csharpcode pre { margin: 0em; } .csharpcode .rem { color: #008000; } .csharpcode .kwrd { color: #0000ff; } .csharpcode .str { color: #006080; } .csharpcode .op { color: #0000c0; } .csharpcode .preproc { color: #cc6633; } .csharpcode .asp { background-color: #ffff00; } .csharpcode .html { color: #800000; } .csharpcode .attr { color: #ff0000; } .csharpcode .alt { background-color: #f4f4f4; width: 100%; margin: 0em; } .csharpcode .lnum { color: #606060; } The important thing here is that RadComboBox is configured as if it were using a web service...
    April 01, 2009
  • Web ASP.NET MVC ASP.NET AJAX

    ASP.NET Ajax Controls in ASP.NET MVC - MVC Forum Updated

    We have updated our MVC Forum sample application to use the official ASP.NET MVC 1.0, RadControls for ASP.NET Ajax Q1 2009 and the latest installment of Telerik OpenAccess ORM. Online demo | Download...
    April 01, 2009
  • Web

    XML DataSource - General information

    The XmlDataSource control is a data source control that presents XML data to data-bound controls. The XmlDataSource control can be used by data-bound controls to display both hierarchical and tabular data. The XmlDataSource control is typically used to display hierarchical XML data in read-only scenarios. Because the XmlDataSource control extends the HierarchicalDataSourceControl class, it works with hierarchical data. The XmlDataSource control also implements the IDataSource interface and works with tabular, or list-style, data.  Page developers use the XmlDataSource control to display XML data using data-bound controls. The XmlDataSource typically loads XML data from an XML file, which is specified by the DataFile property. XML data can also be stored directly...
    March 26, 2009
  • Web

    JavaScript - Variables and Types Basics

    This article is taken from JavaScript @ Wikibooks. JavaScript is a loosely typed language, this means that you don’t have to worry about setting the type of variable and you can change at will in runtime. But when you code, you have to make sure that you are getting the right type at the right time. Variable declaration Variables are commonly explicitly declared the var statement, as shown below: var c; .csharpcode, .csharpcode pre { font-size: small; color: black; font-family: consolas, "Courier New", courier, monospace; background-color: #ffffff; /*white-space: pre;*/ } .csharpcode pre { margin: 0em; } .csharpcode .rem { color: #008000; } .csharpcode .kwrd { color: #0000ff; } .csharpcode .str { color: #006080; } .csharpcode .op { color: #0000c0; } .csharpcode .preproc { color: #cc6633; } .csharpcode .asp { background-color: #ffff00; } .csharpcode .html { color: #800000; } .csharpcode .attr { color: #ff0000; } .csharpcode .alt { background-color: #f4f4f4; width: 100%; margin: 0em; } .csharpcode .lnum { color: #606060; } The above variable is created, but has the default value of undefined. To be of value, the variable needs to be initialized: var c = 0; Variables can also be created by assigning directly to them,...
    March 24, 2009