Giter Site home page Giter Site logo

Feature requests about blazorgrid HOT 9 OPEN

akinzekeel avatar akinzekeel commented on May 23, 2024
Feature requests

from blazorgrid.

Comments (9)

Akinzekeel avatar Akinzekeel commented on May 23, 2024

Thank you for your suggestions. I will evaluate those for future versions.

What do mean by "button columns"? Do you have an example?

from blazorgrid.

elylv avatar elylv commented on May 23, 2024

What do mean by "button columns"? Do you have an example?

The ability to have a column that contains buttons, and if you click the button, an event can fire with the parameter as the item that the row represents. For example, a "delete" button, which we can have fire a DeleteListItem(object listItem), so we can add a button to delete an item in the grid, and it will pass that item in its event.

from blazorgrid.

Akinzekeel avatar Akinzekeel commented on May 23, 2024

This should already be possible. For example, you could define a button column like so:

<StaticGridCol FitToContent="true" AlignRight="true">
    <button class="button" @onclick:stopPropagation="true" @onclick="() => DeleteListItem(context)">Delete</button>
</StaticGridCol>

Update: I've added an example to the docs, please have a look https://blazorgrid.z6.web.core.windows.net/examples/buttons

from blazorgrid.

NessfertIndia avatar NessfertIndia commented on May 23, 2024
  • Paging - virtualization is great, but sometimes a pager is preferable

Definitely this feature will makes this component much better and more user friendly

I would like to add one more feature request if possible

Ability to Select /Deselect a Row / Multiple rows [ Either by checkbox or by different CSS for selected rows ]

from blazorgrid.

Akinzekeel avatar Akinzekeel commented on May 23, 2024

@NessfertIndia have you checked the Row highlighting example? Maybe this is what you are looking for

from blazorgrid.

NessfertIndia avatar NessfertIndia commented on May 23, 2024

Row highlighting is allowing selection of 1 row . Any way to make this multi selection and Can we highlight / differentiate between selected rows and non selected rows visually

from blazorgrid.

Akinzekeel avatar Akinzekeel commented on May 23, 2024

@elylv I have revisited this issue and gone through your suggestions in more detail to consider them for implementation, however I feel that all of these are beyond the scope of a "light weight" component.

For example:

  • Per-column filtering: since we focus on displaying remote data, all we could do here is pass on information to the server side. This is something you can already do in the Provider delegate anyway.
  • Column drag & drop: probably the most feasible of the list, however it only makes sense in combination with state-saving (for example via local storage) - once again diminishing the "light weight" aspect of the component

As for paging & toolbar, there are already dozens of grid components available which have these things as well as stuff like grouping, footers etc. If we add all of that then it's not a light weight component anymore.

@NessfertIndia multiple row selection sounds interesting, could you share the use case for this?

from blazorgrid.

NessfertIndia avatar NessfertIndia commented on May 23, 2024

Multiple row selection scenarios is common if we deal with a list of table data where we want to select multiple items from the table and allow to perform further actions on that.
One of the example I have to deal with is
Show a list of contacts in a table
Allow the user to select 1 or more contacts by pressing a checkbox [ Selected checkbox can be moved to unchecked state as well]
Perform an operation against the selected contacts [ For me it was Remove selected Contacts / Mark Selected Contacts as Premium Members ]
A possible example can be found here: https://mudblazor.com/components/table#multi-selection [ Search for content Multi-selection on the page if the URL not showing correctly] I used Mudblazor on my projects , but this multi-selection is not maintaining selections if we are doing paging sorting filtering etc and I am still in search for alternate controls

Hope the explanation is clear and let know if need more info

from blazorgrid.

HybridSolutions avatar HybridSolutions commented on May 23, 2024

Why not implementing checkboxes for selecting each row with a header checkbox to select all items in the current page? This is very useful.

from blazorgrid.

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.