-
Notifications
You must be signed in to change notification settings - Fork 97
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Refactoring of GridViewDataSet #1548
Conversation
18b3058
to
2ca439b
Compare
ac3cf9a
to
8dcf71f
Compare
52a010c
to
65fe97f
Compare
d57ecbb
to
4c1f8c1
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Other significant unsolved problems are:
- The dataset translations will only work in the context of DataSetClientSideLoad, not in ad-hoc staticCommand
- Async LoadFromQueryable (and the IPagingOptionsLoadingPostProcessor interface), I will make a separate PR for that
(dataSource as IPageableGridViewDataSet<IPagingFirstPageCapability>)?.PagingOptions.GoToFirstPage(); | ||
(dataSource as IRefreshableGridViewDataSet)?.RequestRefresh(); | ||
}), | ||
new IdBindingProperty($"{this.GetDotvvmUniqueId().GetValue()}_sortBinding") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We used to simply call the SortChanged
without the additional paging+refresh, why is this needed? Since we now have the Button CommandParameters, we wouldn't have to touch the SortChanged binding and we could thus simply allow staticCommand
s here.
who knows if it works...
Creates a nested data context with _index and _collection extension parameters
* introduced symbolic parameters for $gridViewDataSet.loadData function. we need to substitute this loadData function on a single element, so we cannot use dotvvm-gridviewdataset to change the data context. * refactored PostbackOptions to a record to allow using `with { ... }` syntax
…ssion is multiline
…tor arguments are)
a2a79a6
to
4fbe3cb
Compare
- to make it possible to implement `aria-labels` classes on links, and reader only spans I implemented extensibility points
Data pager extensibility improvements
Normally, we return the inner mutable list, if it is IList. If it isn't we return a ReadOnlyCollection wrapper, to throw an exception instead of mutating the copy
DataPager now marks unavailable pages as `disabled`
/// </summary> | ||
int PageIndex { get; set; } | ||
void GoToNextPage(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd prefer keeping these names because people who built custom pager were probably using these methods.
* rename GridViewCommands -> GridViewBindings * add some doccomments * moved SortCriterion to MultiCriteriaSortingOptions file
817bc7c
to
6cab06d
Compare
Another attempt to make
GridViewDataSet
extensible and loadable on the client side.