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
2745
Disable Row Selection
posted

Hello!

I would like to disable some rows (depending on its values) and make them not selectable or clickable.

I have tried to set e.row.activation = activation.disabled in the InitializeRow event of the grid.

It works more or less, the row looks disabled but it can still be selected and if it is clicked, the click events fire.

 

Is there a way to accomplish this?

 

I have used the same approach when using a UltraCombo, and that works exactly as I want. Each row looks disabled, and it cannot be selected.

 

/Henrik

 

Parents
  • 469350
    Offline posted

    Hi Henrik,

    You are saying you can click on a disabled row and select it? That sounds like a bug to me. A disabled row should not be selectable.

    I tried this out and I can't get the behavior you describe. Clicking on a disabled row does not select that row, and I am also unable to select or activate that row via the keyboard.

    As far as the mouse events go, I think they will still fire and that's correct - they should fire.

Reply Children