Comments (9)
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.
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.
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.
- 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.
@NessfertIndia have you checked the Row highlighting example? Maybe this is what you are looking for
from blazorgrid.
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.
@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.
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.
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)
- Column header background turns transparent on hover
- Make grid rows selectable HOT 1
- Add guidance on how to use the grid with gRPC
- Consider replacing the IGridProvider with a delegate HOT 1
- Investigate Task cancellation handling
- Error overlay does not clear after retrying
- Linked content files might be insufficient to build Scss
- Add text-overflow to column headers
- getting-startet HOT 2
- EmployeeController Server Side HOT 2
- SourceUrl="weatherforecast" from the getting started sample is not working HOT 5
- How to use ReloadAsync() HOT 1
- Upgrade to .NET 6
- Pass custom ViewModel to CustomProvider HOT 1
- Use LibSassBuilder instead of gulp
- Consider using flexbox or table instead of grid
- Add some code samples to the readme
- VirtualItemSize should be float
- Row selection using checkboxes
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from blazorgrid.