Telerik blogs

Latest

  • 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
  • Web ASP.NET AJAX

    Create Your Own T4 Item Template with “RadControls for ASP.NET AJAX VS Extensions” - Part 1

    When you add a new page to your Web site, do you often find yourself cutting and pasting from another page to get started? If you're spending more time importing controls and setting up content regions for your master page than actually working on the new page, you might want to look into creating a "RadControls T4 Item Template" in Visual Studio with “RadControls for ASP.NET AJAX VS Extensions” Below is a basic way to get started with a “RadControls for ASP.NET AJAX” T4 Item Templates. To create your own RadControls T4 Item Template: Create a file – (MyTemplate.t4).       2.    Create a file...
    March 23, 2009
  • Web

    Silverlight: RadChart interoperability with ASP.NET

    Now that the RadChart control has officially joined the Silverlight party you are probably considering how to incorporate this jewel in all of your web projects. Probably most of you do not have the luxury to start over from scratch and implement pure Silverlight solutions abandoning all of your ASP.NET knowledge and legacy. With this blog post I will try to provide a simple demonstration how you can take advantage of the RadChart for Silverlight and easily add it to your current ASP.NET web applications. You'll also see how you can update some of the chart properties directly from your ASP.NET...
    March 17, 2009
  • Web

    Working with WCF Web Services in Silverlight, a headache/solution approach

    So if you’re like me, you’re on board with Silverlight and looking to get the most out of your RIA development.  I’ve taken all the advice offered for creating Silverlight apps with WCF services- this video by Tim Heuer has been indispensable, but now we can create a Silverlight Enabled WCF service to avoid the modifications in web.config. When working on an application recently, I was somewhat confused by the error I received after deploying to my local friendly IIS server on the network: HTTP/1.1 500 Internal Server Error Date: Wed, 11 Mar 2009 20:37:29 GMT Server: Microsoft-IIS/6.0 X-Powered-By: ASP.NET X-AspNet-Version: 2.0.50727 Cache-Control: private Content-Type: text/xml; charset=utf-8 Content-Length: 734   Content-Length:...
    March 12, 2009