Telerik blogs

Latest

  • Web

    Using Object Container to transport persistent objects between multiple pages

    We have talked already what are the best ways to handle the object scope instance in stateless environments like the Web in previous blog posts. We will build up on this and demonstrate additional web techniques, starting with using the same persistent objects on different pages (state sharing). Who needs that? Well let me explain a rather simplified scenario (but a valid one) – web-based wizard. Wizards usually have a workflow, which is produced by connecting web pages in a meaningful way. Every page is responsible for gathering data and providing navigation to the previous and next pages. This means...
    July 10, 2009
  • Web

    Today is the day - see the light? Silverlight 3 is finally out!

    In fact you can download almost everything even now! Despite all breaking changes between the beta and RTW (System.Windows.Controls.Data => System.ComponentModel = > System.Windows.Data) as always Telerik will follow the good traditions and next week we will release RadControls for Silverlight 3. Stay tuned – more will come!...
  • Web ASP.NET AJAX

    Z-index demystified

    In this blog post I will try to explain how CSS z-index works and a how to avoid a few common mistakes. First of all the z-index is used to control the z-order of positioned HTML elements. Simply put it controls the stacking order of HTML elements. To set it set the "z-index" CSS attribute of your element to some integer value. Z-index works only for positioned elements. Positioned elements are elements whose "position" CSS attribute is set to "relative", "absolute" or "fixed". The default "position" is "static" which means that by default setting z-index has no effect. Z-index is NOT measured in...
  • Web

    RadioButton and CheckBox Menu Items with RadMenu for Silverlight

    RadMenu for Silverlight supports simple checkable items, but still does not support radio button items. This feature is scheduled for development and most probably will come with Q3 2009, but until then you have to code it by yourself. Fortunately, this is relatively easy with a proper ViewModel, that contains the radio-button logic: The CommandItem class contains the properties and the logic for a RadMenuItem. It implements INotifyPropertyChanged and its most important property is IsChecked: public bool IsChecked { get { return this.isChecked; } set ...
    June 19, 2009
  • Web

    Scrollable Menu – Workaround with a Multi-Column Menu and RadControls for Silverlight

    RadMenu and RadContextMenu for Silverlight cannot automatically scroll their items if their height exceeds a certain height. We are planning to implement this feature in the near future, but at the moment there are two workarounds for the developers: override the RadMenu control template and add ScrollViewer controls around the ItemsPresenters, or customize the ItemsPanel of the RadMenuItem controls, so the sub-items are displayed in columns. The second option is much easier and looks good enough: The main idea is to replace the RadMenuItem ItemsPanel, that is a StackPanel by default, with a WrapPanel. To set the ItemsPanel property of all...
    June 19, 2009