gustavnavar / Grid.Blazor

Grid component with CRUD for Blazor (client-side and server-side) and ASP.NET Core MVC
GNU Lesser General Public License v2.1
692 stars 133 forks source link

Header checkbox disabled? #180

Open DSBhogal opened 4 years ago

DSBhogal commented 4 years ago

Description

On all areas of my application where I use Grid.Blazor with a checkbox column the header checkbox appears disabled. When i initially click the checkbox nothing happens. If i persistently attempt to select the header checkbox it will intermittently work. I am using v1.6.9 of Grid.Blazor.

Screenshots

Application Running image

Code image

gustavnavar commented 4 years ago

The header checkbox is never disabled. When it has a grey background is when the grid has rows checked and unchecked at the same time. Maybe the grey background is misleading.

If all the rows that are shown on the screen are unchecked and the header checkbx has a grey background, there must be a checked row on any other page.

DSBhogal commented 4 years ago

When you say on any other page do you mean on the pagination of the grid? because I perform a query when getting my grid rows to check for checked rows and that returns nothing. If you mean if rows on other grids on separate pages are checked/unchecked then how does one stop that from happening?

DSBhogal commented 4 years ago

I don't think this is an checked/unchecked issue, after fiddling with the CSS on the header checkbox if i remove:

  1. opacity from .grid-header-checkbox-input within gridblazor.min.css
  2. <span class="null-checkbox"></span>

The header checkbox works perfectly