* Change set HidePagination‘s Location
Change set PageSize Method when HidePagination is true.
if HidePagination is true,set PagSize value is DataSource Count
if HidePagination is true,set PagSize value is DataSource Count
if HidePagination is true,set PagSize value is DataSource Count
* refactor
* update demo
Co-authored-by: James Yeung <shunjiey@hotmail.com>
* Update Table.razor.cs
In DisposeAsync() Method of Tab.razor.cs, I add a try - catch around the JSInterop call method "await JsInvokeAsync(JSInteropConstants.UnbindTableScroll, _tableBodyRef);" in order to prevent some error and warning entry in the Windows Event Viewer.
* fix exception catch
Co-authored-by: James Yeung <shunjiey@hotmail.com>
* feat/ApplyPredefinedQueryModel: add opportunity to serialize/deserialize QueryModel and apply to Table with ITable.ReloadData(QueryModel queryModel) method; fix current selected value in 'PageSize / page' selection (value was not updated in case using ReloadData(PageIndex, PageSize) method)
* feat/applyPredefinedQueryModel: implement System.Text.Json instead Newtonsoft.Json for serializing/deserializing QueryModel
* feat/applyPredefinedQueryModel: add minor change
* feat/applyPredefinedQueryModel: add method for converting from JsonElement to object type
* feat/applyPredefinedQueryModel: add demo file for save and load table configuration
* feature/applyPredefinedQueryModel: add minor change
* feat/applyPredefinedQueryModel: prevent applying before not saved configuration
* fix sorter restore
* reest data before reload data
* fix test
Co-authored-by: Ana Nikolasevic <23nikolasevic@gmail.com>
Co-authored-by: ElderJames <shunjiey@hotmail.com>
* perf: avoid memory leak #1834
Avoid memory leak by remove the exclusive parameter and logic in the code block on AddEventListener method in DomEventService class.
The following are the components affected:
components/affix/Affix.razor.cs
components/anchor/Anchor.razor.cs
components/carousel/Carousel.razor.cs
components/core/Component/Overlay/Overlay.razor.cs
components/core/Component/Overlay/OverlayTrigger.razor.cs
components/core/JsInterop/DomEventService.cs
components/descriptions/Descriptions.razor.cs
components/dropdown/DropdownButton.cs
components/grid/Row.razor.cs
components/input/Input.cs
components/input/TextArea.razor.cs
components/layout/Sider.razor.cs
components/list/ListItem.razor.cs
components/select/Select.razor.cs
components/select/internal/SelectContent.razor.cs
components/slider/Slider.razor.cs
components/table/Table.razor.cs
components/tabs/Tabs.razor.cs
* fix override AddEventListener method in AntDesign.TestKit project
* add register/remove event listerner for exclusive use in DomEventService class
* move _dotNetObjects to DomEventListerner class/service, so that users not required to maintain it in each component.
* * move share/reuse dom event listerner methods to DomEventListerner class
* remove method 'AddEventListener' that no longer exists in DomEventService class in AntDesign.TestKit project
* * change the component referring to an IDomEventListerner interface instead of a concrete class,
so that the component can be tested via a mock TestDomEventListerner.
* introduce DisposeShared and Dispose method in DomEventListerner to ease user remove callback from DomEventListerner
* register IDomEventListerner into DI container instead of create manually
* fix FormatKey
* fix FormatKey
* fix tests
* fix test
* fix test
Co-authored-by: James Yeung <shunjiey@hotmail.com>
* chore: add GitHub Actions for auto preview (#1205)
* chore: add github actions for auto preview
* fix setup job
* chore: add GitHub Actions for auto preview (#1205)
* fix(module:table): guard against false entries in _dataSourceCache
* fix(module:table): perf - double to single render on datasource change
* fix(module:table): perf optimization to avoid multiple renders
Co-authored-by: James Yeung <shunjiey@hotmail.com>
* (fix) Table ExpandableRow not working with ActionColumn #1284
* Add Tree Button Expand on Action Columm.
Check the position of Selection Column when calculate the position for expand button on tree mode and expand mode.
* feat: add table filter
* add filter buttons
* fix filter menu
* make filter work
* support multiple filters
* delete the old files
* support single select
* fix(module:overlay): remove obsolete js call
check for Ref.Id before any js operation on it
* fix(module:table): js interop exceptions on dispose
* docs(module:slider): typo fix
* docs(module:spider): typ