Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / Silverlight > PersistenceFramework > Saving RadGridView Customizations with an Image Header

Answered Saving RadGridView Customizations with an Image Header

Feed from this thread
  • Posted on Mar 12, 2012 (permalink)

    I'm using the PersistenceFramework (and associated sample code, e.g. GridViewCustomPropertyProvider) to save user customizations made to a RadGridView. The class GridViewCustomPropertyProvider makes an assumption that the contents of column.Header property will be some sort of string value. This is also evidenced by the type for Header in the ColumnProxy, that is, a String. Has anyone seen this as a limitation, and be willing to share what they've used as a workaround?
    Thanks,
    Chuck

    Reply

  • Answer Tina Stancheva Tina Stancheva admin's avatar

    Posted on Mar 15, 2012 (permalink)

    Hi Chuck,

    The GridViewCustomPropertyProvider implementation is simply an example demonstrating how to configure the RadGridView persistence. Basically the RadPersistenceFramework uses the ICustomPropertyProvider implementation to save a set of properties. And creating a custom implementation of that interface allows you to control this set of properties.

    The sample in our demos demonstrates how to save a few Column properties along with the Filter/Sorting and Group settings. And it is based on a sample scenario where the Header of the Columns is a string. But if your scenario uses another type of header, then you can modify the GridViewCustomPropertyProvider class to better fit your needs.

    For that purpose you need to change the type of the Header property in the ColumnProxy class and the ProvideValue() method. If you have any troubles implementing it, you can send us a sample project demonstrating your scenario and we will guide you through it.

    Greetings,
    Tina Stancheva
    the Telerik team
    Sharpen your .NET Ninja skills! Attend Q1 webinar week and get a chance to win a license! Book your seat now >>

    Reply

  • Say Hello to Telerik's PivotGrid for ASP.NET AJAX, Silverlight, WPF and WinForms. Now packed with OLAP support.
  • Posted on Mar 15, 2012 (permalink)

    Tina,
    Thanks for the reply. Yes, I am becoming familiar with the GridViewCustomPropertyProvider! I have modified the Header property to take an Object, and am in the process of making modifications so that it takes an Image, as well.
    Thanks,
    Chuck

    Reply

Back to Top

Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / Silverlight > PersistenceFramework > Saving RadGridView Customizations with an Image Header