• .NET

    Virtualized Telerik ComboBox for Silverlight

    October 28, 2009 Share
    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....
  • .NET

    Quick and painless Byte Array to Image converter for RadGridView for Silverlight

    October 07, 2009 Share
    We received a question today in regards to a binding issue with RadGridView, or rather an issue with an Image in a custom cell template that the customer was trying to bind to a custom value.  They had the basic setup right: <DataTemplate>    <Image Source="{Binding ImageData}" /> </DataTemplate> But something wasn't quite working right.  After doing a little digging, we found that they weren't sending a URI to the Image but rather a byte array.  Unfortunately, the Image control in Silverlight doesn't quite know how to pick up on this so you need to convince it- with a converter. With a little bit of coding...
  • .NET

    Making a Step chart in RadChart for Silverlight and WPF

    October 02, 2009 Share
    So a customer emailed into our office yesterday asking about whether RadChart for Silverlight supported a Step chart type.  Well, while we do have a boatload of chart types already, Step is currently not one of them.  But a Step chart is really just a Line chart with a bit of extra work, right?  With the help of our chart wizard Manol, we were able to show that the LineSeriesDefinition could, in fact, replicate a Step chart.  But that was with setting all points manually and took a bit of thinking to make sure all the steps looked right.  So...
  • .NET

    API changes introduced by the new CoverFlow control

    September 14, 2009 Share
    If you missed the buzz, the Telerik team plans to distribute a beta release introducing new controls that will be officially included in the Q3 2009 release scheduled for November 2009. For those of you that didn’t have the opportunity to get familiar with what the new CoverFlow offers, take a look at my previous blog post here.   One of the new pieces that will be part of the pack is the new CoverFlow control. It is important to note that from Q3 2009 all previous versions of the control will be replaced with this one, which is specifically built for...
  • .NET

    RadScheduler for Silverlight learning series, part 3: Add, Edit, and Delete Appointments

    September 08, 2009 Share
    If you've been along for the ride so far with this series, you already know that we've hooked a SQL database up to RIA Services using an ADO.Net Entity Data Model and a DomainDataService data context.  If you've missed it, check out the prior two posts (or search RadScheduler for Silverlight learning series in the Telerik Blogs site).  Now that we're here, we have three more events to handle and we've got a fully-functional RadScheduler for Silverlight hooked up to RIA services. First up, the two easy events- AppointmentAdded and AppointmentDeleted. AppointmentAdded Event This event is pretty straightforward and does not require very...