Telerik blogs

Latest

  • 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 27, 2021 3 min read
  • Web

    Cannot discover WCF services in your Silverlight application?

    If you try to add service reference in your Silverlight application and you simply cannot discover any services in the solution using the Add Service Reference tool here is the way how to solve it. Note that the issue occurs both in Silverlight 2 and Silverlight 3 Beta.     1. Uninstall your Silverlight tools for Visual Studio      2. Go to C:\Program Files\Microsoft Visual Studio 9.0\Common7\IDE or the place you have installed your Visual Studio environment.     3. Delete the file Microsoft.VisualStudio.ServicesProxy.dll      4. Install again Silverlight tools for Visual Studio and note that your file will be created again. There seems to be something wrong with the installer of Silverlight tools, which...
    May 27, 2021 1 min read
  • Web

    How to show hidden panes in the Silverlight docking control

    Usually, when you use docking manager you want to be able to re-open the closed panes. This looks as simple as setting the IsHidden property of the pane to False. However, this does not cover all the cases. The pane might be in a ToolWindow and this ToolWindow might be closed by its X button. In this case, the pane would not be hidden, but it would not be visible either as it is in the hidden window. Another approach might be closing the last pane in a ToolWindow, thus triggering closing the window, too. In this case the pane will...
    May 27, 2021 3 min read
  • Productivity Testing

    Running WebUI Test Studio tests with MSTest and MSBuild

    Introduction Let’s start with a few words about MSTest and MSBuild. MSTest is a software unit testing framework developed by Microsoft. With MSTest you can manage and run unit tests from within the Visual Studio IDE, as well as externally, from the command line. MSBuild is a Microsoft build platform typically used in conjunction with Visual Studio. MSBuild version 2.0 is part of .NET Framework 2.0 and works together with Visual Studio 2005. Version 3.5 of MSBuild, which is bundled together with .NET 3.5 (and Visual Studio 2008), allows .NET projects to be built for either 2.0, 3.0 or ...
    May 27, 2021 3 min read
  • People

    Saying goodbye&hellip;

    Today marked my last day as a Telerik Evangelist. It is with some regret that I say goodbye because I have really enjoyed my time with Telerik, getting to know both the outstanding products we build, the outstanding people who build them, and the outstanding customers we support. Telerik has been a great (and fun!) company to work for, and I can’t say enough good things about them. I have been impressed with how deeply Telerik cares about their customers and how tirelessly they work to “deliver more than expected” for each and every one of you. Even though I’m...
    May 27, 2021 1 min read
  • Desktop WPF

    Using RadTreeView for WPF

    The video below is from a webinar that I presented on the RadTreeView for WPF.  The webinar covered some of the basic functionality of the RadTreeView and should give you a good understanding of how to get started with the RadTreeView.  While this webinar is focused on the WPF version of the RadTreeView control, the content is also relevant to the Silverlight version as...
    May 27, 2021 1 min read
  • Release

    Telerik Reporting Q1 2009 SP1 is now live

    Once again our constant urge to provide you with the Telerik quality you're used to, resulted in Q1's first service pack of Telerik Reporting. It's needless to say that it contains important bug fixes and improvements of the product and to our new "players" - the Table and HtmlTextBox items. Here is a brief overview: Added support for multi-page view in the Win Report Viewer - although it is not common to include new functionality for a service pack, we decided to push this through instead of making you wait for the Q2 release. This has been long awaited feature for many of you, so do give it a spin. Next thing...
    November 05, 2024 2 min read
  • Desktop WinForms

    Saving/Loading RadGridView settings at design time (WinForms controls)

    I would like to share with you a new feature that we plan to release in Q2 2009:       Well, it is not just the dialog :) In Q2 2009 you will be able to save and load RadGridView’s settings at design time, and there will be a fine-grained control over which settings you want to include/exclude from the generated xml file! Thus if you are using multiple grids, you will be able to use the same settings over and over again. Pretty neat and time saving, isn’t it? The new functionality will be available in the lower left corner of...
    May 27, 2021 1 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...
    May 27, 2021 1 min read
  • Web

    Using IValueConverter to format values in RadControls for Silverlight

    It’s often necessary to modify or format some of the raw data received by your data tier application or other data sources. In Silverlight, you can create your own value converter and introduce your own formatting rules. In this blog post I will create a simple value converter that formats double values, and then use it with a RadComboBox. First, let’s create a class that will represent our data source. The equivalent of this class in more realistic scenario would be a proxy class generated by your data tier application in case you use RIA services.     public class Data : List<Item>       {           public Data()           {               this.Add(new Item() { Name = "Ferrari", Price = 120000 });               this.Add(new Item() { Name = "Mercedes", Price = 100000 });...
    May 27, 2021 3 min read