Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
80
Checkbox to check (toggle) only when clicked in the check box not in the cell
posted

I have a column in the grid whose style is set to checkbox. Currently it does not matter if the user clicks on the checkbox or anywhere in the cell,  the state of the checkbox is toggled. I want the state to toggle only when the user clicks inside the box, otherwise simple select the cell / row.

Parents
  • 35
    posted

    Hi,

    I'm having this exact problem with a checkbox in a grid. I tried playing around with the option suggested on this post but what I find is that no matter where in the cell the user clicks (on the checkbox or outside), the UIElement type is an "Infragistics.Win.UltraWinGrid.UltraGridColumn" so I'm seemingly not able to distinguish between the empty space and the checkbox in the cell. 

    I wonder if asancheti or anyone else has found an elegant (or otherwise) solution? Or perhaps someone more experienced than me knows what type I should check for on the checkbox in the grid once I have it in an UIElement (I tried Checkbox and Infragistics.Win.CheckBoxUIElement so far...)

    Thanks,
    hamanta

Reply Children