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

Is Checkbox visible / enabled

3 Answers 86 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Shaun
Top achievements
Rank 1
Shaun asked on 16 May 2016, 04:21 AM

Hi,

I have a CheckBoxColum who's visibility is set within ViewCellFormatting.

I also have a check box in the header to select all.

When the header is checked all rows are updates, visible or not.

On the menu command I loop through all checked rows and output to Excel.

Is there a way to test is a cell is visible and checked within the ContextMenuOpening event?

Cheers

Shaun.

 

 

 

3 Answers, 1 is accepted

Sort by
0
Dimitar
Telerik team
answered on 17 May 2016, 07:58 AM
Hi Shaun,

Thank you for writing.

Please note that the ViewCellFormating is only fired for the currently visible cells. In you case there must be a way to determine if a cell should be visible or not. In this case, you can iterate all grid cells and set their Tag property to a specific value. Later you can check the Tag in the ViewCellFormating and when you are executing your menu action.

I hope this helps. Should you have any other questions do not hesitate to ask.

Regards,
Dimitar
Telerik
Do you need help with upgrading your AJAX, WPF or WinForms project? Check the Telerik API Analyzer and share your thoughts.
0
Shaun
Top achievements
Rank 1
answered on 18 May 2016, 03:26 AM

Hi Dimitar,

Thanks for getting back to me, great idea, nice and simple.

What I'm noticing now is the grid / application freezes when clicking on the header checkbox.

I've got around 3000 rows, when I filter on a column then click the checkbox in another column header the screen freezes for a few minutes. Any ideas?

Cheers

Shaun

0
Dimitar
Telerik team
answered on 18 May 2016, 09:54 AM
Hello Shaun,

Thank you for writing back.

I am not sure why there is a delay on your side. This is why I have attached my test project. Could you please check it and let me know what I need to change in orde to reproduce this?

I am looking forward to your reply.

Regards,
Dimitar
Telerik
Do you need help with upgrading your AJAX, WPF or WinForms project? Check the Telerik API Analyzer and share your thoughts.
Tags
GridView
Asked by
Shaun
Top achievements
Rank 1
Answers by
Dimitar
Telerik team
Shaun
Top achievements
Rank 1
Share this question
or