Comments (6)
@AlexCarlston Just in case the rows you don't want to be dragged are always on top or bottom of the other rows, you could use row pinning, which disallows reordering for the rows that are pinned to top or bottom.
Here's an example: https://codesandbox.io/s/amazing-lovelace-swdghy?file=/Demo.tsx
Could that satisfy your use case by any chance?
from mui-x.
Hi @AlexCarlston
Currently, it's not possible out of the box.
In most use cases reordering one row impacts the order of other rows, even if they cannot be reordered directly.
Could you provide more details about your use case?
from mui-x.
Sorry for the rough diagram, the below picture is the use case.
from mui-x.
Could you clarify your expectations regarding rows that have reordering disabled?
Imagine that row 2 has reordering disabled, while rows 1 and 3 can be reordered:
What do you expect to happen when the user reorders row 3 and puts it between row 1 and row 2?
from mui-x.
@cherniavskii I expect it to be impossible to swap with row 1 and 2. Instead of being a row, I would code it to return dynamic data on an object, to act as a column. In our use case we won't show property from an object, but instead map an object to the column object (in which we show 3 properties of).
from mui-x.
And in this example the icon would be removed for row 1 and 2
from mui-x.
Related Issues (20)
- [Tooltip] Tooltip on disabled buttons HOT 1
- [pickers] Localization is not applied to pickers HOT 8
- Add prop for column grouping header height HOT 3
- [data grid] Decreasing the width of the last column in DataGridPro with pinned columns results in weird behaviour HOT 4
- [docs] Demo LazyLoadingGrid crashes HOT 1
- How to animate row entrance? HOT 2
- AdapterDateFns not exported from x-date-pickers HOT 2
- [pickers] Consolidate `export` strategy HOT 1
- Source code of pro and premium packages HOT 6
- Data Grid Premium, Row grouping : How to conditionally change rows group background color ? HOT 6
- [DataGrid] All cells are all rerendered on every keystroke when row is in edit mode
- [pickers] When formatting a DatePicker Component with "DD MMM YYYY", default placeholder is "DD MMMM YYYY" HOT 5
- [docs] Demo PickersPlaygroundWrapper crashes HOT 2
- [question] How does one theme CalendarPicker from @mui/lab? HOT 4
- disableExtendRowFullWidth removed on V6, issues with table
- [data grid] Facing issues due to `disableExtendRowFullWidth` prop removed in v6 HOT 6
- [pickers] Customizing selected year on `DatePicker` HOT 5
- [core] Migrate from yarn to pnpm HOT 2
- [DateCalendar] Excessive empty space at the bottom of the calendar HOT 4
- Date and numeric filters code seem incorrect? HOT 1
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 mui-x.