Skip to content
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

Card View for the igGrid #2194

Open
merjoha opened this issue May 16, 2022 · 7 comments
Open

Card View for the igGrid #2194

merjoha opened this issue May 16, 2022 · 7 comments

Comments

@merjoha
Copy link

merjoha commented May 16, 2022

When we were using WinForms, there was an option on the DataGrid called CardView, which essentially turned the Grid 90 degrees and the caption headers were on the left hand side of the grid and the data was displayed as Columns of data instead of Rows of Data. This feature is not currently present on the ignite ui platform. We would still like to be able to organize our data in this manner within the bounds of the ignite ui platform.

@kdinev
Copy link
Member

kdinev commented May 18, 2022

@merjoha We actually called this feature "responsive vertical rendering" for the ig-grid. Take a look at this sample and see if this is what you are looking for!

@merjoha
Copy link
Author

merjoha commented May 18, 2022

Thank you for your response! That is what I am trying to do.

Is there a way within the bounds of the vertical rendering where I would be able to have the records appear side by side? Horizontal scrolling?

Can you accomplish the side by side look and feel by limiting the width of each record in contrast to the total grid width using the template approach?

@kdinev
Copy link
Member

kdinev commented May 19, 2022

@merjoha I see. You are looking for each record to appear as a column. We currently don't have support for this in the igGrid, at least not out of the box. However, what you can do is to implement a client-side data transformation on the data you receive from your service (or server-side) which transposes all records in this fashion. Then the grid will render them.

@merjoha
Copy link
Author

merjoha commented May 24, 2022

If I were to do the client side data transformation, the igGrid would be able to render them the way I am desiring? Do you have an example of something like this or some insight on how the grid would actually handle this?

@kdinev
Copy link
Member

kdinev commented May 25, 2022

@merjoha We will prepare an example and we will share it.

@MonikaKirkova
Copy link

Hello I have prepared a sample demonstrating the described behavior. The data is modified in order to have proper structure(i.e. {columnName: value, field0: value, …}) in the ‘transformData’ method. Additionally, defaultColumnWidth is set to the columns and the font-weight of the first column is set to bold.

@merjoha
Copy link
Author

merjoha commented May 26, 2022

Thank you for sharing this example.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants