[ASP.NET AJAX Grid] ItemDataBound and OnRowDataBound events when using Virtualization

1 Answer 117 Views
Ajax Grid
Marko
Top achievements
Rank 1
Marko asked on 26 Sep 2023, 12:42 PM

Greetings,

 

I am using the RadGrid control with advanced data binding, virtualization and infinite scrolling and everything is going well. However, I need to perform some actions on the rows that are data-dependent. For this, I am using the ItemDataBound server-side event and OnRowDataBound client-side event. However, this seems to come with an implementation and maintenance overhead, since I have to basically implement the same behavior twice, in two diferent places and two different languages. Reading through the documentation and other posts, this seems to be a virtualization limitation, and the consequence of the fact that the initial dataset is bound server-side, while subsequently fetched rows are bound client-side? (like this answer would suggest: https://www.telerik.com/forums/radgrid-not-upating-columns-with-virtualization-enabled#4166877 )

I am curious if there would be a way to avoid this duplication - either by somehow manually evaluating OnRowDataBound function for the initial dataset, or perhaps by returning 0 rows in the NeedsDataSource method for initial load, and then triggering a client-side fetch after the "empty" grid is rendered? Even if this would cause an extra http request, it seems like a preferable alternative in my case.

Best regards,

Marko

1 Answer, 1 is accepted

Sort by
0
Doncho
Telerik team
answered on 29 Sep 2023, 06:52 AM

Hi Marko,

Thank you for sharing your idea with us!

We appreciate your input regarding our Virtualization feature in RadGrid. After reviewing your suggestion, I want to inform you that, given the current implementation, the approach you've described is indeed the recommended one.

We value your feedback, as it helps us enhance our products to better meet your needs. If you believe there is room for improvement or have any other ideas, we encourage you to share them on our Feedback portal:

Our development team regularly evaluates suggestions based on several factors, including the potential impact on the product, the complexity of implementation, and the level of interest from our user community through votes and comments.

Your contributions to our community are highly appreciated, and we will continue working to deliver the best possible solutions to you and all our users. If you have any further questions or need assistance with anything else, please don't hesitate to reach out.

Kind regards,
Doncho
Progress Telerik

Stay tuned by visiting our public roadmap and feedback portal pages! Or perhaps, if you are new to our Telerik family, check out our getting started resources
Tags
Ajax Grid
Asked by
Marko
Top achievements
Rank 1
Answers by
Doncho
Telerik team
Share this question
or