Skip to content
This repository has been archived by the owner on Mar 27, 2023. It is now read-only.

How can I correctly set the predefined configurations to the Datagrid with a 'server side' mode #3121

Closed
alpha1988 opened this issue Feb 19, 2019 · 3 comments

Comments

@alpha1988
Copy link

alpha1988 commented Feb 19, 2019

Describe the bug

I can not correctly set all predefined or 'start' configurations to the datagrid table if I have some with using 'server-side' mode

How to reproduce

I have Datagrid with pagination, filtration , sorting.
Also I have a such case:

  • I come to this page with some query params on the url that halps me to set all needed predefined configurations to the DataGrid.
  • Also i have data from resolver that will displaying in this data grid, that was processed on the server with all needed params.

I set all that I can. That in result trigger 'on Refresh' event on the Datagrid.
On handler of this 'on Refresh' event I set a new queryParams and make re-route with new params to get new data with a 'fresh' filters on resolver at routing.

So HOW TO SET NEW START CONFIGS to the Datagrid without trigger onRefresh event because it's removes some of the previouse start configurations.

Versions

App

  • Angular: 6
  • Node: 10.15.0
  • Clarity: 0.13
@mathisscott mathisscott added needs: ux input Issues we aren't sure will be accepted by UX status: needs triage and removed needs: ux input Issues we aren't sure will be accepted by UX labels Feb 19, 2019
@gnomeontherun
Copy link
Contributor

If you could provide a reproduction demonstration of this it would help us to prioritize looking into this issue. Generally we ask that questions are posted to StackOverflow, which this might apply here. However, there might be a bug but if you help us with a demo it will help us better understand.

@gnomeontherun gnomeontherun added the status: needs info Need more information from the issue author. label Feb 20, 2019
@youdz
Copy link
Contributor

youdz commented Feb 20, 2019

This looks like a duplicate of #2094 to me. Until we offer this single-point input, yes, the only solution right now is to manually set each piece. When you do this, I recommend ignore any clrDgRefresh output that happens before your own component ngAfterViewInit().

EDIT: closing as duplicate, please follow #2094 for updates.

@youdz youdz added resolution: duplicate and removed status: needs info Need more information from the issue author. status: needs triage labels Feb 20, 2019
@youdz youdz closed this as completed Feb 20, 2019
@github-actions
Copy link

Hi there 👋, this is an automated message. To help Clarity keep track of discussions, we automatically lock closed issues after 14 days. Please look for another open issue or open a new issue with updated details and reference this one as necessary.

@github-actions github-actions bot locked and limited conversation to collaborators Sep 11, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants