Comments (6)
Hello,
I traced the code and found a NPE which is not the source of the issue.
The problem is that the store update function is called when item #2 is updated with a previous index of -1 which means that this is a new data item.
I suspect that this is a bug of the DataStore class because if you replace the DataStore by a MemoryStore the call is done with a previous index of 1 which is correct. And so you have a correct rendering.
from dojo-calendar.
I registered http://trac.dojotoolkit.org/ticket/14986 on this issue.
from dojo-calendar.
As this is a dojo/store bug let's close the calendar issue and wait for the dojo/store bug to be fixed. Please re-open if any indication the pb actually comes from calendar.
from dojo-calendar.
It seems to me a workaround might be to have
calendar_dataStore.queryEngine = SimpleQueryEngine;
Indeed Observable seems to not pass indexes if there is no query engine... Maybe this can help you?
from dojo-calendar.
I wonder if this fails with the JsonRest store as well, since it doesn't define a queryEngine either..? In which case maybe it's more of an issue with Observable, and not just DataStore specifically. It seems like Observable should be just using the store's query() function (which is defined in every store), rather than looking for a queryEngine in the store, which may or may not exist. Memory's query() just uses the queryEngine anyhow.
I'll play around with it and see if I can figure out a fix. :)
from dojo-calendar.
Yes the "issue" is more in Observable than DataStore. If you can figure out an Observable fix please provide it on the trac ticket. Thanks a lot!
from dojo-calendar.
Related Issues (20)
- subColumns and styleGridCell HOT 9
- setting subColumn attribute after instantiation fails HOT 3
- Auto detect today changes HOT 1
- Problem setting the start time of day at initialization HOT 4
- time.newDate does not work with "number" object HOT 1
- Crash in column view with expanded top row HOT 1
- Layout of current time indicator is crashing when using non Gregorian calendars (Arabic, Hebrew)
- Issue with custom expand renderer HOT 12
- dojox/calendar: itemClick doesn't fire on some (faster) devices HOT 2
- Time label not displayed
- Error in demo page HOT 2
- Calendar is not refreshed after store is updated HOT 1
- There are two functions named `refreshRendering` in ColumnView.js HOT 1
- always respect dateClassObj when constructing new date objects HOT 1
- Installing dojox with bower is not downloading Calendar HOT 1
- Variable error in MonthColumnView.js HOT 1
- StoreManager does not use the Identity from the item if it is different of "id" HOT 2
- Typo bug at StorageManager
- use dateLocaleModule for all date calculations
- simplecolumnview is not using date-local-module to instantiate date-object
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 dojo-calendar.