Comments (6)
@thelfensdrfer - could you explain your issue a bit more (mention code snippets if needed)?
The widget internally generates an unique id if you do not provide one. So the behavior should technically be the same if you provide an ID or do not.
from yii2-dynagrid.
Ok that is strange. I had multiple pages with grids (different routes/controllers/actions). One grid per page. Before I set an unqiue ID to the widgets, some of them hide all the columns, but not the first I opened. I could show them with the personalize modal so I thought they were hidden because the settings were saved for the first grid widget and the later did not find the saved (cookie) columns of the first one so they got hidden?
from yii2-dynagrid.
I think I understand this - will record a fix for this.
from yii2-dynagrid.
The DynaGrid options['id']
is mandatory. A fix has been provided via commit 80e6fed to validate this and throw an exception if its not set. The docs have also been updated for this.
from yii2-dynagrid.
Great, thank you! Did you validate the issue?
from yii2-dynagrid.
Yes - the auto generated id will work for the storage type session
but not for cookie
and db
. Since, the auto generated id is a random identifier and will not be the same each time for retrieval.
Its better if this control is given to developer to define one's own unique id and make the code simpler and faster.
from yii2-dynagrid.
Related Issues (20)
- Composer install error HOT 1
- Dynagrid Floating Header blocks Date Picker HOT 1
- Correct grid pagination assignment HOT 4
- Save columns width in DB HOT 1
- The '' module MUST be setup in your Yii configuration file. HOT 4
- How to extend the class kartik\dynagrid\DynaGrid? HOT 1
- In Personalize Grid Configuration, duplicate "saving" after multipe click in apply HOT 1
- Enable Cache on DynaGridStore HOT 2
- How to check if a column is visible to the current user HOT 2
- CraftCMS - Twig Template HOT 1
- Personalize Grid Configuration Columns Drag and Drop Fails in Mobile Browsers HOT 2
- Feature Request - Allow for multiple stored dynagrid configurations HOT 1
- thrieufilter - StateBehavior don't work HOT 1
- Enhancements to support Bootstrap v5.x
- PHP8.1 strtolower error with null value
- defaultPageSize overrides dataProvider pageSize setting
- Enhance Dynagrid layout parts rendering to prevent wrong Bootstrap 5 plugin initializations. HOT 3
- Save/Edit Grid filter and sort has UI issues HOT 1
- Sort and Filter delete modals are hidden HOT 2
- array_sum(): Addition is not supported on type string when using showPageSummary HOT 3
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 yii2-dynagrid.