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

Can not enter text in filter row

2 Answers 68 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Chris Kirkman
Top achievements
Rank 1
Chris Kirkman asked on 01 Jul 2010, 04:23 PM
I have a RadGridView where I have one column already defined (in the designer).  At runtime, additional columns are added to the Grid.

I can type on the filter row for the pre-existing column; however for any new column added I can not.  I try to mouse click where I'd typically start typing my filter text and nothing happens. 

What's up?

The new columns are added this way.

m_grd.Columns.Add(new Telerik.WinControls.UI.GridViewDataColumn("Name", "Name"));

2 Answers, 1 is accepted

Sort by
0
Chris Kirkman
Top achievements
Rank 1
answered on 01 Jul 2010, 04:36 PM
I should post more often.

When I added the new column I should have added it as a text column instead of a data column.

m_grd.Columns.Add(new Telerik.WinControls.UI.GridViewTextBoxColumn("Name", "Name"));
0
Svett
Telerik team
answered on 05 Jul 2010, 09:08 AM
Hi Chris Kirkman,

Yes, you are right.

When you create an additional column manually, you should not use GridViewDataColumn. This class is the base class for all defined data columns (ex. GridViewTextBoxColumn). We have already considered this issue in our framework, therefore we will mark this class as abstract, so one would not be able to instantiate columns of this type.

All the best,
Svett
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
GridView
Asked by
Chris Kirkman
Top achievements
Rank 1
Answers by
Chris Kirkman
Top achievements
Rank 1
Svett
Telerik team
Share this question
or