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

CreateRow Not Call after some added rows

1 Answer 68 Views
GridView
This is a migrated thread and some comments may be shown as answers.
SAIED
Top achievements
Rank 1
SAIED asked on 22 May 2017, 05:07 AM
Hello
Using the Event Line Create Row in one of the cells in the grid code is written Grid View then called event data taken from the database. If the number of records about the event call will not be more than 25

1 Answer, 1 is accepted

Sort by
0
Hristo
Telerik team
answered on 22 May 2017, 07:38 AM
Hello ,

Thank you for writing.

The CreateRow event is exposed to allow the creation of custom rows and it should not be used for performing database queries. Furthermore, RadGridView is virtualized and the event will be raised whenever a new visual row element needs to be created. Additional information on the UI virtualization is available here: http://docs.telerik.com/devtools/winforms/gridview/fundamentals/ui-virtualization.

Please consider moving the logic for accessing the database elsewhere. If it fits your local setup you can consider handling the Load event of the form.

I hope this helps. Should you have further questions please do not hesitate to write back.

Regards,
Hristo
Telerik by Progress
Try our brand new, jQuery-free Angular 2 components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
Tags
GridView
Asked by
SAIED
Top achievements
Rank 1
Answers by
Hristo
Telerik team
Share this question
or