Unplanned
Last Updated: 14 Feb 2025 11:18 by ADMIN
Martin Ivanov
Created on: 15 Nov 2023 12:26
Category: VirtualGrid
Type: Bug Report
2
VirtualGrid: Wrong column is filtered when a new ItemPropertyInfo is inserted in the DataProvider at runtime
The FilteringControl of a column filters a wrong column when an ItemPropertyInfo is inserted at runtime. The newly inserted property info should create a column placed between other columns (not at the end of the view). The new column filtering is wrong.
4 comments
ADMIN
Martin Ivanov
Posted on: 14 Feb 2025 11:18

Hello John,

Thank you for the project. I've updated the description of the internal item in the backlog with your scenario. You can work this around using the suggestion from the internal ticket where this was discussed with a colleague of mine. I am posting the solution here, in order to help someone else that hit the same issue. Basically, you can reset the DataProvider property of RadVirtualGrid. This will force the DataMemberNeeded to be called for each column again and you can execute the proper logic. The downside of this approach is that you should re-execute the data member setup for all columns, instead of only the inserted one.

this.virtualGrid.InsertNewColumnAtIndex(3);

// reset the provider
var dataProvider = this.virtualGrid.DataProvider;
this.virtualGrid.DataProvider = null;
this.virtualGrid.DataProvider = dataProvider;

Regards,
Martin Ivanov
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.

John
Posted on: 07 Feb 2025 23:17
Here is the test project that prompted this ticket

When inserting a column the DataMemberNeeded  DataMemberEventArgs.ColumnIndex is the last column instead of the index column inserted.

In essence InsertNewColumnAtIndex is basically useless
Attached Files:
ADMIN
Martin Ivanov
Posted on: 05 Feb 2025 08:22

Hello John,

Thank you for the extra information. We will take this into account when implementing a solution.

As for the fix, this item is not included in the current planning sprint. I would suggest you to follow the item in order to get notified when its status changes.

Also, I can recommend you to open a new support ticket and attach a project showing your setup and the problem. This will allow investigating the new case and checking for possible workarounds.

Regards,
Martin Ivanov
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.

John
Posted on: 31 Jan 2025 17:34
This issue impacts other areas of the code.
One example is after you add the column, DataMemberNeeded is called for the last column instead of the column you inserted

This is blocking me from releasing my application. I hope it can be resolved quickly