Git Product home page Git Product logo

Comments (5)

David-Moreira avatar David-Moreira commented on May 27, 2024

Hello,

I'm not understanding how to reproduce,

  1. https://blazorise.com/docs/extensions/datagrid/features/editing
  2. First Grid, change to EditMode.Cell
  3. Click Wilkinson Cell
  4. Click the cell with the number 3, it will be selected but not editable, as the cell is not marked as editable
  5. Click any other cell?

When I get to 5, when I click any other cell it is editable as expected?

from blazorise.

mtbayley avatar mtbayley commented on May 27, 2024

I'm looking at the selected row (the row that is highlighted). Editing is working as expected.
The only way to select it is to click on a cell that is not editable (# in this case).

Also, when I'm editing a cell in the selected row, I can't see which row I have selected.

Perhaps this gif adds more context
msedge_nq2vSEPEYb

from blazorise.

David-Moreira avatar David-Moreira commented on May 27, 2024

Hmm I see, so your point is that cell clicks aren't triggering row selection, this kind of is by design.
If you use the command column to trigger a row edit, same thing happens, the row is in edit mode even though it's not selected.

Now the thing here, is that you are explicitly clicking on something inside the row, so it's argueable whether it should select the row or not.
But the thing is that this is "cell mode", so imagining that we do trigger RowClick & Selection Changed here, does it really make sense?

The DataGrid always worked like this where the row being edited does not show the "selection look".

@stsrki any opinion on this?

from blazorise.

stsrki avatar stsrki commented on May 27, 2024

I think selecting the row by the last focused cell makes the most sense. Be it in read or edit mode.

from blazorise.

David-Moreira avatar David-Moreira commented on May 27, 2024

In that case let's treat this as a bug indeed. It will be fixed in v1.5.
(The part where focusing the cell, selects the row)


The part about not noticing a cell is selected when the row is on edit mode has always been like that as far as I know. Although you can argue it's a bug, it's been like that for so long, at least as long as I remember, that I would not change it in a patch, but would consider it in a separate issue and making sure it doesn't interfere with how the user is able to edit the row, and make it part of a release instead.

from blazorise.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.