Telerik blogs
  • Desktop WPF

    Major changes in RadNumericUpDown for Silverlight and WPF

    With our Service Pack release coming soon, we introduce a complete change set for RadNumericUpDown both in Silverlight 3 and WPF that should resolve most of the little issues the Q2 version has. Even though we have introduced several minor breaking changes that are inevitable, we have taken a decision to include all these changes in our Service Pack release due to the increased demand for easy and simple input control. The credit for most of this fine-tuning should go to our great customers who constantly share their experience and are always willing to suggest new and innovative features.   What is new? One...
    July 31, 2009
  • Web

    How To: Display Hierarchical Data with Row Details (RadGridView for Silverlight)

    The main goal of the Row Details feature is to let you present additional information about a row. This makes row details the perfect candidate for presenting hierarchical data. My sample uses two kinds of business objects – a football club and its players. As you might expect each club has some players. The master grid will show our clubs and when the user wants to see some additional information about a club he will be presented with the row details. Our first goal is to define what will these details look like. We would like to see some general information...
    July 30, 2009
  • Productivity

    LINQ Tip of the week: A quick peek behind the curtains

    In our previous post in this series we had a look at how to optimize query execution with the help of parameterized queries. Today we will briefly look at what actually happens ‘behind the curtains’ when a LINQ query is executed and you get back  the results.   As you already know LINQ can be used to query various data sources like in-memory objects, XML or databases,which is of particular interest to us. Consider the following example where we query for all employees who are born in the same month as today i.e.  in the month of July.   var employees = from e in scope.Extent<Employee>()                           where e.BirthDate.Month == DateTime.Now.Month                           select e;   As you can...
    July 30, 2009
  • Productivity

    Using the DragDropService in RadDock

    Overview The new docking framework introduces service-based semantic, which allows for granular and pluggable functionality per RadDock. Entire drag-and-drop functionality is handled by the registered DragDropService instance, which simply receives drag requests and instantiates the appropriate operation. The service is responsible for drop target hit-testing, displaying docking guides and docking hints as well as for processing user input while dragging is in progress. On the screen above, toolWindow3 instance is being dragged. The service has hit-tested the MainDocumentContainer as a drop anchor and the appropriate docking guide is displayed. The “Left” docking position is selected and the service “hints” the user...
    July 30, 2009
  • Web

    How To: Easy printing with Telerik RadGridView for Silverlight

    Using export to HTML feature you can print the grid very easily just by adding following JavaScript to the export output: <script type=""text/javascript"">print();</script> You can use WebClient to save the output as file on the server: Silverlight client side: Uri uri = new Uri(HtmlPage.Document.DocumentUri, String.Format("PrintHandler.aspx?FileName={0}", fileName)); WebClient client = new WebClient(); client.UploadStringCompleted += new UploadStringCompletedEventHandler(client_UploadStringCompleted); client.UploadStringAsync(uri, String.Format("{0}{1}", RadGridView1.ToHtml(), printScript)); ASP.NET server side: protected void Page_Load(object sender, EventArgs e) { if (Request.QueryString["FileName"] != null) { File.WriteAllText(Server.MapPath(Request.QueryString["FileName"]), new StreamReader(Request.InputStream).ReadToEnd(), Encoding.UTF8); } } and request this file when upload...
  • Desktop WPF

    Major changes in RadNumericUpDown for Silverlight and WPF

    With our Service Pack release coming soon, we introduce a complete change set for RadNumericUpDown both in Silverlight 3 and WPF that should resolve most of the little issues the Q2 version has. Even though we have introduced several minor breaking changes that are inevitable, we have taken a decision to include all these changes in our Service Pack release due to the increased demand for easy and simple input control. The credit for most of this fine-tuning should go to our great customers who constantly share their experience and are always willing to suggest new and innovative features.   What is new? One...
    July 31, 2009
  • Web

    How To: Display Hierarchical Data with Row Details (RadGridView for Silverlight)

    The main goal of the Row Details feature is to let you present additional information about a row. This makes row details the perfect candidate for presenting hierarchical data. My sample uses two kinds of business objects – a football club and its players. As you might expect each club has some players. The master grid will show our clubs and when the user wants to see some additional information about a club he will be presented with the row details. Our first goal is to define what will these details look like. We would like to see some general information...
    July 30, 2009
  • Productivity

    LINQ Tip of the week: A quick peek behind the curtains

    In our previous post in this series we had a look at how to optimize query execution with the help of parameterized queries. Today we will briefly look at what actually happens ‘behind the curtains’ when a LINQ query is executed and you get back  the results.   As you already know LINQ can be used to query various data sources like in-memory objects, XML or databases,which is of particular interest to us. Consider the following example where we query for all employees who are born in the same month as today i.e.  in the month of July.   var employees = from e in scope.Extent<Employee>()                           where e.BirthDate.Month == DateTime.Now.Month                           select e;   As you can...
    July 30, 2009
  • Productivity

    Using the DragDropService in RadDock

    Overview The new docking framework introduces service-based semantic, which allows for granular and pluggable functionality per RadDock. Entire drag-and-drop functionality is handled by the registered DragDropService instance, which simply receives drag requests and instantiates the appropriate operation. The service is responsible for drop target hit-testing, displaying docking guides and docking hints as well as for processing user input while dragging is in progress. On the screen above, toolWindow3 instance is being dragged. The service has hit-tested the MainDocumentContainer as a drop anchor and the appropriate docking guide is displayed. The “Left” docking position is selected and the service “hints” the user...
    July 30, 2009
  • Web

    How To: Easy printing with Telerik RadGridView for Silverlight

    Using export to HTML feature you can print the grid very easily just by adding following JavaScript to the export output: <script type=""text/javascript"">print();</script> You can use WebClient to save the output as file on the server: Silverlight client side: Uri uri = new Uri(HtmlPage.Document.DocumentUri, String.Format("PrintHandler.aspx?FileName={0}", fileName)); WebClient client = new WebClient(); client.UploadStringCompleted += new UploadStringCompletedEventHandler(client_UploadStringCompleted); client.UploadStringAsync(uri, String.Format("{0}{1}", RadGridView1.ToHtml(), printScript)); ASP.NET server side: protected void Page_Load(object sender, EventArgs e) { if (Request.QueryString["FileName"] != null) { File.WriteAllText(Server.MapPath(Request.QueryString["FileName"]), new StreamReader(Request.InputStream).ReadToEnd(), Encoding.UTF8); } } and request this file when upload...