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

GridGroupFooterItem find Uniquename

3 Answers 113 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Andrew
Top achievements
Rank 1
Andrew asked on 03 Feb 2009, 11:43 PM
Hi,

I have tried searching for this issue, but not found a relevant post, so here is my question/problem.

Using 2008 Q3 RadGrid (Ajax), Dot net 3.5

The GridGroupFooterItem does not allow reference to a column by UniqueName, this contrasts with GridDataItem and GridFooterItem.

Basically, in the ItemDataBound event, if e.Item is a GridDataItem or a GridFooterItem, it is possible to reference a partiucular column by the column UniqueName using CType(e.Item, GridDataItem)("UniqueName").Text or CType(e.Item, GridFooterItem)("UniqueName").Text.

Unfortunately, when e.Item is a GridGroupFooterItem, this technique no longer works (Get an error about no default property). I would guess that since GroupFooters were a recent addition, the particular feature was just forgotten.

Of course I don't want to use numeric indexes CType(e.Item, GridGroupFooterItem).Cells(xx) since that breaks the column independence idea of UniqueNames.

How can I dynamically discover the cell (or the cell index) from the unique name?

3 Answers, 1 is accepted

Sort by
0
Accepted
Tsvetoslav
Telerik team
answered on 06 Feb 2009, 05:10 PM
Hello Andrew,

Indeed, the only work-around for this problem is to use the Cells collection of the GridGroupFooterItem object since the latter doesn't support indexing by unique column names.


Regards,
Tsvetoslav
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Andrew
Top achievements
Rank 1
answered on 08 Feb 2009, 12:59 PM
Hi Tsvetoslav

Thanks for confirming the issue. Is there any chance this might get rectified in a future release/bug fix?
0
Tsvetoslav
Telerik team
answered on 09 Feb 2009, 10:47 AM
Hi Andrew,

Yes, we will investigate this possibility and consider its implementation for one of the coming releases.

Best regards,
Tsvetoslav
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
Grid
Asked by
Andrew
Top achievements
Rank 1
Answers by
Tsvetoslav
Telerik team
Andrew
Top achievements
Rank 1
Share this question
or