• Company News

    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...
  • .NET Mobile

    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...
  • .NET Mobile

    JavaScript Timing Events

    This article is taken from W3Schools.   With JavaScript, it is possible to execute some code NOT immediately after a function is called, but after a specified time interval. This is called timing events. It's very easy to time events in JavaScript. The two key methods that are used are: setTimeout() - executes a code some time in the future clearTimeout() - cancels the setTimeout() setTimeout() Syntax var t=setTimeout("javascript statement",milliseconds);  The setTimeout() method returns a value - In the statement above, the value is stored in a variable called t. If you want to cancel this setTimeout(), you can refer to it using the variable name. The first parameter of setTimeout() is a...
    January 30, 2009
  • .NET Mobile

    RadControls for ASP.NET AJAX are now compatible with DotNetNuke 5.0.0

    At the very end of 2008, the DotNetNuke Corporation released a new major version of their web application framework - DNN 5.0.0. Our modules and skinobject PAs were not compatible with the new release because of a change in DotNetNuke's handling of files and subfolders in the PA archive. With the new RadControls for ASP.NET AJAX service pack release (2008.3.1314), we updated our DNN resources to be compatible with the 5.0.0 installer. The new build of the RadControls modules and skinobjects for DotNetNuke can be used in version 5 and 4 as well. If you find an issue with the...
    January 20, 2009
  • .NET Mobile

    How do I pause execution in JavaScript?

    The current article is taken from javascript.faqts Contributors: ha mo, Daniel LaLiberte, Brent Boyer, Martin Honnen, mercury rising,   There is no true wait, sleep, or similar function in either the core JavaScript language or in client side JavaScript. Client side JavaScript however provides     setTimeout('js code here', delayInMilliseconds) which allows you to schedule execution of piece of script and setInterval('js code here', intervalInMilliseconds) which allows you to periodically execute a piece of script. So if you wanted (pseudo code) statement1;  wait (someDelay);  statement2;  you would stuff the code into functions: function statement1 () {      // your code here  }  function statement2 () {      // your code here  }    and call statement1();  setTimeout('statement2()', someDelay);      If you wanted (pseudo...
    December 19, 2008