VirtualGrid checkbox cell when adding new row

1 Answer 39 Views
VirtualGrid
Emanuele
Top achievements
Rank 1
Iron
Emanuele asked on 29 May 2024, 09:04 AM

Hi,

is there a way to show a checkbox cell also when the user add a new row in a Virtual Grid?

The screenshot are taken from your code example, I only changed AllowAddNewRow to true.

 

Also, is there a way to set default values like the DefaultValueNeeded event of RadGridView?

 

Thank you!

1 Answer, 1 is accepted

Sort by
1
Nadya | Tech Support Engineer
Telerik team
answered on 31 May 2024, 01:15 PM

Hello, Emanuele,

By default, when a new row functionality is enabled (AllowAddNewRow=true), the cell uses a VirtualGridTextBoxEditor. If you wan to show a checkbox you should consider creating a custom  VirtualGridNewCellElement and adding a check box into it. The following article about creating custom cells will be quite useful on this topic: Creating custom cells - RadVirtualGrid - Telerik UI for WinForms

Currently, RadVirtualGrid does not offer a DefaultValueNeeded event for filling the cells in the new row with default values. 

Please let me know if you have any other questions.

Regards,
Nadya | Tech Support Engineer
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.

Tags
VirtualGrid
Asked by
Emanuele
Top achievements
Rank 1
Iron
Answers by
Nadya | Tech Support Engineer
Telerik team
Share this question
or