- Home
- Forum
- ASP.NET MVC
- HeaderText and FitTo
HeaderText and FitTo
Hi All,


my grid fails to observer HeaderText:
cols.Add(new Column { Field = "Celex" } );
cols.Add(new Column { Field = "Title" , HeaderText = "Cím"});
cols.Add(new Column { Field = "Details", HeaderText = "Részletek"});
cols.Add(new Column { Field = "Links", HeaderText = "Közvetlen elérés"});
it renders as:
Also it wastes space this way, I want it to give any and all available space to Title, but other columns are dynamic so I am unwilling to fix the widths:
The grid is:
TabGrid = new Grid<object>
{
GridModel = new GridProperties
{
DataSource = gridDataList,
EnablePersistence = false,
AllowPaging = details.Count() > 10,
IsResponsive = false,
AllowResizing = true,
AllowTextWrap = true,
AllowResizeToFit = true,
AllowReordering = false,
AllowSorting = true,
AllowMultiSorting = true,
AllowScrolling = false,
AllowFiltering = false,
FilterSettings = new FilterSettings{ FilterType = FilterType.Excel }}
};
Please advise.
SIGN IN To post a reply.
4 Replies
GG
Gyorgy Gorog
June 26, 2018 12:48 PM UTC
Also I have some strange grouping here: Actually I don't need the grouping box, neither the "Label: " text :) I assume "Item" is localizable somewhere.

GG
Gyorgy Gorog
June 27, 2018 05:55 AM UTC
Also I have discovered that paging interferes with grouping. That is, suppose I have 23 items of Label=A and 2 items of Label=B. I will see the B group only at page 3 if pagesize=10.
I need the groups at the beginning, or the user has no reason to page to the last page (in this case).
Or shall I sample all groups to the first page, so that at least one record of each group is in the first page? This may solve the problem but does not seem a good solution.
GG
Gyorgy Gorog
June 27, 2018 08:22 AM UTC
You can ignore this. I think TreeGrid fits this task better.
FS
Farveen Sulthana Thameeztheen Basha
Syncfusion Team
June 27, 2018 12:50 PM UTC
Hi Gyorgy,
Thanks for contacting Syncfusion Support.
Grid handle the JSON Array with objects within whereas the treegrid handles the JSON array in hierarchy manner. Please share your requirement to achieve it in Tree Grid. For your information, please refer to the below Links:-
Please get back to us if you need any further assistance.
Regards,
Farveen sulthana T
SIGN IN To post a reply.
- 4 Replies
- 2 Participants
-
GG Gyorgy Gorog
- Jun 26, 2018 12:32 PM UTC
- Jun 27, 2018 12:50 PM UTC