Telerik blogs

Latest

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

    Using jQuery to customize RadScheduler

    Telerik RadControls' for ASP.NET AJAX rendering is quite jQuery friendly. This is because almost all important html elements are tagged by a css class and therefore can be easily accessed using jQuery. In this blog post I have collected various cases from our forums and ticketing system on using jQuery to customize RadScheduler.  Special thanks to all customers or visitors who raised those questions. Q:  “I have a scheduler in timeline view showing six weeks of information.  Is it possible to change the header row background for the first two weeks?” A: The first step in finding a solution is to examine...
    July 14, 2009