Completed
Last Updated: 11 Oct 2022 08:07 by ADMIN
Release R3 2022
Martin
Created on: 29 Jun 2022 09:15
Category: GridView
Type: Feature Request
1
RadGridView: GridViewCellInfoCollection should implement IEnumerable<T>
Class GridViewRowCollection implements IList<T>.

Class GridViewCellInfoCollection does not implement any generic interfaces.
7 comments
ADMIN
Dess | Tech Support Engineer, Principal
Posted on: 11 Oct 2022 08:07

Hello, Martin,

I understand your point and what improvement is exactly requested. I have logged it in our feedback portal by creating a public thread on your behalf. You can track its progress, subscribe for status changes and add your comments on the following link - 

https://feedback.telerik.com/winforms/1582910-radgridview-gridviewcellinfocollection-should-implement-ienumerable-t

We will do our best to introduce this change in the upcoming service pack.

Regards,
Dess | Tech Support Engineer, Principal
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.

Martin
Posted on: 05 Oct 2022 07:44

Hi Dess,

Your examples are not really correct. Before this change, your examples worked exactly the same way. When you use var, object is assumed. Of course the object contains a GridViewCellInfo, but you have to cast it first to use one of its members.

The goal of my suggestion was to prevent unnecessary casts. This change didn't do that.

You said: " However, please have in mind that we are not planning to make any further changes in the collection since it affects all our customers that use RadGridView"

We already had that discussion before in the support ticket 1570683 leading up to this request. I asked you "So if you can find me one software example which will break after implementing IEnumerable<T>, then I will have learned something new today. I would love that :)"

I think that question was the one that changed your mind and you created this feature request.

 

 

ADMIN
Dess | Tech Support Engineer, Principal
Posted on: 22 Sep 2022 08:04

Hi, Martin,

The collection can be enumerated where each item is a GridViewCellInfo now:

I believe that it would fit your scenario. However, please have in mind that we are not planning to make any further changes in the collection since it affects all our customers that use RadGridView.

Thank you for your understanding.

Regards,
Dess | Tech Support Engineer, Principal
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.

Martin
Posted on: 19 Sep 2022 09:01

I have just update my Telerik library to version 2022.3.913.48.

In here it looks like GridViewCellInfoCollection has implemented IEnumerable<T>. But it has been implemented the wrong way:

  • The not-generic IEnumerable should be implemented explicitly.
  • The generic IEnumerable<T> should be implemented implicitly.

Right now it is the other way around. As a result, a foreach(var cell in GridViewCellInfoCollection) will still result in objects, not GridViewCellInfo.


Martin
Posted on: 01 Aug 2022 09:18

Hi Dess,

Thanks again for your fast replies. Of course I understand you will make the final decision based on customers' wishes. Although I cannot imagine any customer who prefers (unnecessary / manual) boxing/casting over generic interfaces. :)

Regards,

Martin

ADMIN
Dess | Tech Support Engineer, Principal
Posted on: 01 Aug 2022 09:10

Hi, Martin,

Thank you for the provided suggestions. We will consider them in the future improvement of the control. However, please have in mind that the final decision is up to our developers according to other customers' demand as well.

We always strive to develop controls that fit the requirements of as many customers as possible.

Regards,
Dess | Tech Support Engineer, Principal
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.

Martin
Posted on: 01 Aug 2022 08:39
As requested in support ticket 1570683, I have made a list of suggestions to implement generic interfaces. I have made this list based on a little piece of software which used reflection to see if there is a relatively good match between your collections and generic interfaces. See attachment.