Telerik blogs
  • Release

    Meet the Visual Style Builder CTP

    It's alive. Before anything else, it's a preview, so it may burn you. You've been warned! Colorization Surprise, surprise! I hope you didn't see that one coming. I've had a hard time keeping the secret... Every color that you may desire. By moving a humble slider that rotates the color wheel. Simple as that. And if you don't know what you're looking for, there's a "surprise me!" "randomize" button, just to make your life easier.
    May 19, 2009 2 min read
  • Web

    Executing JavaScript function from server-side code

    This is a pretty common scenario when working with WebForms. There are many ways to achieve the desired result, but they have one thing in common – you should make sure that the controls are fully loaded in the page before trying to get a reference to them and use them in your JavaScript code. In ASP.NET it is pretty straightforward to do that. For example you could use a label: ASPX <head runat="server">     <title>Untitled Page</title>     <script type="text/javascript">     function calledFn()     {         alert("code fired");      }     </script> </head> <body>     <form id="form1" runat="server">         <asp:Button ID="Button1" runat="server" Text="Run JavaScript Code" OnClick="Button1_Click" />         <asp:Label ID="Label1" runat="server"></asp:Label>    ...
    May 05, 2009 3 min read
  • Web ASP.NET AJAX

    Integrating RadEditor for ASP.NET AJAX with the WIRIS family of products

    We have received several requests to integrate a formula editor for RadEditor or allow editing of MathML. The wonderful guys at WIRIS(http://www.wiris.com/) have the right tools for this job so we decided to post an example of the WIRIS formula editor and CAS working as RadEditor dialogs.   A couple of words about the formula editor - it uses a Java applet so be sure to have the Java plugin installed in your browser. We used the basic ASPX demo that WIRIS offers as a base for our integration example. The demo can be seen here - http://www.wiris.eu/demo-aspx/pluginwiris/generic/. There are two editors...
    April 30, 2009 1 min read
  • 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 1 min read
  • 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 5 min read