Is Checkbox visible / enabled

4 posts, 0 answers
  1. Shaun
    Shaun avatar
    37 posts
    Member since:
    Sep 2012

    Posted 15 May Link to this post

    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.

     

     

     

  2. Dimitar
    Admin
    Dimitar avatar
    1414 posts

    Posted 17 May Link to this post

    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.
  3. UI for WinForms is Visual Studio 2017 Ready
  4. Shaun
    Shaun avatar
    37 posts
    Member since:
    Sep 2012

    Posted 17 May in reply to Dimitar Link to this post

    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

  5. Dimitar
    Admin
    Dimitar avatar
    1414 posts

    Posted 18 May Link to this post

    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.
Back to Top