RadDatagrid, missing rows

1 Answer 117 Views
GridView
Troy
Top achievements
Rank 3
Bronze
Iron
Iron
Troy asked on 26 Sep 2022, 11:10 PM | edited on 26 Sep 2022, 11:15 PM

So, this is weird and I'm sure my fault, but I'm having a problem.

This is an unbound grid.

I have 26 rows that should be added to the grid.  So I iterate through all of the rows to add them to the grid, all appears well.  Checking the row count, there are 26 rows. But when viewing the grid, there are only 24 rows displayed.  The last two rows that should be there, do not appear.

However, if I enable the default row filtering and filter on one of the missing rows, I can find them and they are displayed as expected.

Pagination is disabled (I enabled it just to see if they were appearing on the next page, they are not).

There are no filters applied to this grid (except as the above test with the default filter row displayed)

I have no idea what I'm doing wrong, so any help to point me in the right direction would be great.

Again, to be clear, its not a data problem, the rows are there in the grid.  Its a display problem.

Thanks for any suggestions!

1 Answer, 1 is accepted

Sort by
0
Dess | Tech Support Engineer, Principal
Telerik team
answered on 27 Sep 2022, 10:37 AM
Hello, Troy, 

RadGridView exposes two collections that contain data rows:
- Rows - contains all data rows that belong to RadGridView. Data operations such as grouping, sorting, filtering, etc. do not change the content of the collection or the order in which the row objects exist in the collection.

- ChildRows - returns the data rows that are currently represented by RadGridView in the order in which they appear. The collection is modified every time a data operation (grouping, sorting, filtering) occurs. 

Hence, if you see less rows than the added number of records, I suspect that some filtering is applied. Could you please check whether the FilterDescriptors collection contains anything?

It would be greatly appreciated if you can provide a sample code snippet demonstrating how to replicate the undesired behavior that you are facing. Thus, we would be able to make an adequate analysis of the precise case and provide further assistance. 

I hope this information helps. If you need any further assistance please don't hesitate to contact me. 

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.

Troy
Top achievements
Rank 3
Bronze
Iron
Iron
commented on 27 Sep 2022, 05:55 PM

Dess,

Thanks for the reply.  I was able to create a sample project that replicates the issue.  I created a ticket (1581380) on it so I could attach the example code (as it includes a theme).

Short version is, when my theme is applied, the issue happens.  When I comment out loading the theme, the issue goes away.  I'm not sure what would cause it (and am pretty sure I did it, whatever I did), so thanks for your help!

Dess | Tech Support Engineer, Principal
Telerik team
commented on 30 Sep 2022, 06:31 AM

Hi, Troy,

I have replied to the support ticket you have opened on the same topic. I believe that the suggested solution would be suitable for your case.

Tags
GridView
Asked by
Troy
Top achievements
Rank 3
Bronze
Iron
Iron
Answers by
Dess | Tech Support Engineer, Principal
Telerik team
Share this question
or