Telerik blogs

Latest

  • Web ASP.NET MVC

    Using T4MVC strongly-typed helpers with Telerik Extensions for ASP.NET MVC

        If you want fast and strongly-typed access to your controller actions, the T4 helpers by David Ebbo are a real treasure. Since we couldn’t provide an support for them out-of the box (after all, the helper classes are generated), here is a small extension method that allows their usage as shown in the screenshot above.   using System.Web.Mvc; using Telerik.Web.Mvc; using Telerik.Web.Mvc.Infrastructure; using Telerik.Web.Mvc.UI; public static class NavigationItemBuilderExtensions { public static NavigationItemBuilder<TItem, TBuilder> Action<TItem, TBuilder> (this NavigationItemBuilder<TItem, TBuilder> instance, ActionResult action) where TItem : NavigationItem<TItem> where TBuilder : NavigationItemBuilder<TItem , TBuilder>, IHideObjectMembers { ...
    November 03, 2009
  • Web ASP.NET AJAX

    New content providers for the RadEditor and RadFileExplorer controls

    The default content provider, that ships with the editor and file explorer controls will only work with files in the current web application. Naturally, there are scenarios where you wish to show files that are not physically in the application folder. The provider model allows you to do just that - you can either customize the existing provider (FileSystemContentProvider) or write a completely new one (FileBrowserContentProvider). We recently went through the forums and noted what custom providers are most frequently used with the RadEditor and RadFileExplorer controls. After that we created sample providers for those scenarios and posted them as support...
    October 30, 2009
  • Web

    Virtualized Telerik ComboBox for Silverlight

    In some scenarios it is required to load thousands of items in a ComboBox. Since by default the control creates RadComboBoxItem containers for each data item, it might take some time to open the drop-down. To resolve the problem you only need to change the RadComboBox ItemsPanel with VirtualizingStackPanel: <telerikInput:RadComboBox> <telerikInput:RadComboBox.ItemsPanel> <ItemsPanelTemplate> <VirtualizingStackPanel /> </ItemsPanelTemplate> </telerikInput:RadComboBox.ItemsPanel> </telerikInput:RadComboBox> .csharpcode, .csharpcode pre { font-size: small; color: black; font-family: consolas, "Courier New", courier, monospace; background-color: #ffffff; /*white-space: pre;*/ } .csharpcode pre { margin: 0em; } .csharpcode .rem { color: #008000; } .csharpcode .kwrd { color: #0000ff; } .csharpcode .str { color: #006080; } .csharpcode .op { color: #0000c0; } .csharpcode .preproc { color: #cc6633; } .csharpcode .asp { background-color: #ffff00; } .csharpcode .html { color: #800000; } .csharpcode .attr { color: #ff0000; } .csharpcode .alt { background-color: #f4f4f4; width: 100%; margin: 0em; } .csharpcode .lnum { color: #606060; }   thus making the drop-down to open instantly. Attached is a simple application that loads 1000 items in two RadComboBox controls, one virtualized, the other – not virtualized. The difference between the two controls is visible and becomes much larger if you create 100,000 items! VirtualizingComboBox I hope this helps....
    October 28, 2009
  • Web ASP.NET AJAX

    Choose your preferred data layout with RadListView for ASP.NET AJAX

    Did you hear the bells and whistles which accompanied the public Q3 2009 Beta release of RadControls for ASP.NET AJAX? If not, I think it is time to explore it and get acquainted with the new controls/features that we will be introducing for the official Q3 2009 release expected in the first week of November. One of the new controls that I encourage you to play with is RadListView for ASP.NET AJAX. If you allow me to quote one of our clients who already gave the Q3 2009 Beta a spin, it is "something like a rotator on steroids" which allows you...
    October 27, 2009
  • Web

    How to display data from different tables using one data source

    In many cases our customers that use Telerik OpenAccess ORM face the need to rapidly change the source table from which they are displaying data. For example you can have a RadGrid filled with customers on the start of your application and whenever a certain customer is selected you can change the displayed data in the grid with the Orders for the given customer (note that in such case the data will be taken from two different tables – Customers and Orders). But do you need two datasource controls to do this? The simple answer is NO. You can achieve this...
    October 26, 2009