Telerik blogs

Latest

  • Web

    Drag and drop items onto RadScheduler for Silverlight

    We all are aware that users tend to look for the easiest and most rational way to do something. That is why developers always strive to create their products' interface as intuitive as possible. Speaking in this context, dragging and dropping helps us improve user experience significantly and make end users happier. In this blog post I will explain how we can use RadDragAndDrop to enable users drag items from a certain control and drop them over RadScheduler, while notifying about that. Of course, the described scenario could be extended to act in many different scenarios. Let us say we will drag items from a listbox to...
  • Web

    RadDrag&Drop with a Canvas twist

    A week or so ago I was giving a small presentation and one of the people in the audience had a great question.  They had this old configuration section on their website for laying out something or other that had a lot of different options which could be dragged and dropped using some client-side javascript, but they are looking to move on up to Silverlight and the RadDragAndDropManager seemed to be the perfect candidate for the job.  The only issue with that is the only examples we have online show moving items to and from collections, but in their case...
    August 18, 2009
  • Web

    Validation support in RadControls for Silverlight

    One of the new data enhancements introduced in Silverlight 3 is the rich validation support. I am proud to announce that with our Service Pack release that is coming soon, RadControls for Silverlight will support all validation utilities introduced in Silverlight 3. Controls that benefit from the validation support in our Q2 Service Pack release are:   RadTimePicker RadDatePicker RadNumericUpDown RadSlider RadMaskedTextBox RadTreeView The binding engine can catch exceptions that occur while updating a value if either the setter function of the source object throws an exception, or the associated type converter. For example the following setter function will throw an exception that will be handled by the...
    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
  • 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...