Telerik blogs

Latest

  • 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...
  • Web

    Read only classes and fields

    If a table or a view is mapped where the user does not have the rights to change data, it is not helpful that the exception is thrown during commit. Sometimes it is hard to find the place where the write access is done. Those exceptions can now be enforced to be thrown during the write operation itself. The attribute can be set at class level but the wizard does not contain it. In the Q2 release you have to do it by hand, the Q2 Sp1 will contain the UI. The settings on class level are: "readwrite": The default, everything is...
    July 15, 2009
  • Web ASP.NET AJAX

    Visual Style Builder for ASP.NET AJAX: A Heavy Update

    Too much stuff! Must click little link: to the Style Builder! What's new? RadMenu, RadComboBox and RadInput get their share of styling goodness updated to the new-and-shiny 2009.Q2 release (featuring the real mode of RadColorPicker) the sought-after "base color" in Colorization is available I hope that you will like the UI. We revised it a few times before settling for this. The position of the "Apply" button was way off into nowhere (and, honestly speaking, it still is in the advanced edit). A note about colorization While the 'colorize' mode is indeed more useful (and probably sufficient in most scenarios), the old 'shift colors' algorithm has its...