- Home
- Forum
- ASP.NET MVC - EJ 2
- Limit the columns of a table
Limit the columns of a table
Hi
I am currently working on setting up a table and I am encountering a display behavior that I cannot figure out.
I have a list of elements defined as shown in PJ model .cs. These elements contain data that I don't want to display in my table but that I need to generate templates. But when I generate my table, each data of my element creates a column. In my view I have specified the columns to be displayed (see PJ).
Do you have a solution to display only what is in my table?
The project is a web projet in Framework 4.6, the nuget pacakges are in version 19.2.0.62
Thanks
Attachment: Sample_81cb17fd.zip
HI
I updated with the last version the nugets package, however the display remains unchanged. I still can't choose the columns to display or the cell format.
Thank
- Replicate “the Model class properties are rendering in Grid columns instead of defined the column directives” issue in above sample.
- You have defined ScriptManger in View.html page so, we suggest you to use this method in _Layout.cshtml.
- Ensure the Grid’s script file(ej2.min) is latest or old(which declared in _Layout.cshtml).
Hi,
Thanks for the answer, but I can't download the sample. When I click on the link, I get a page that says I don't have access.
Thanks for the new link.
I just found where my problem comes from, I had forgotten to put .Add() at the end of the columns initialization.
Everything is working properly now.
- 7 Replies
- 2 Participants
-
CQ Chaffois Quentin
- Oct 7, 2021 03:28 PM UTC
- Oct 14, 2021 05:31 AM UTC