This is a migrated thread and some comments may be shown as answers.

Inherited GridView

1 Answer 100 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Manuel
Top achievements
Rank 1
Manuel asked on 25 Apr 2009, 12:42 AM
Hi,
I have a class as follows:

namespace

 

IControls

 

{

 

using System;

 

 

using System.Collections.Generic;

 

 

using System.ComponentModel;

 

 

using System.Linq;

 

 

using System.Windows.Forms;

 

 

using IControls.Configurations;

 

 

using IControls.MessageIntrade;

 

 

using Telerik.WinControls.UI;

 

 

/// <summary>

 

 

/// Clase extendida del RadGridView

 

 

/// </summary>

 

 

public class IGridView : RadGridView

 

{


 

 

/// <summary>

 

 

/// Constructor del control

 

 

/// </summary>

 

 

public IGridView()

 

{

}
}

but this does not work... why?
When I Drag my control, all style is lost..
Any idea?
Thanks!!

1 Answer, 1 is accepted

Sort by
0
Jack
Telerik team
answered on 27 Apr 2009, 07:28 AM
Hello Manuel,

This happens because all themes are registered per control name. You should override the ThemeClassName property in this case. Consider the code snippet below:

public class MyGrid: RadGridView 
    public override string ThemeClassName 
    { 
        get { return typeof(RadGridView).FullName; } 
        set {} 
    } 

I hope this helps. If you have any further questions, don't hesitate to write us.

Sincerely yours,
Jack
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
Tags
GridView
Asked by
Manuel
Top achievements
Rank 1
Answers by
Jack
Telerik team
Share this question
or