Hi,
I am using MVC 3 and Infragistic Grid for showing data.
@(Html .Infragistics() .Grid<Measurement>(Model.Measures) .ID("wbGrid")
.AutoGenerateColumns(true)
.Features(features => { features.Paging().PageSize(50).TotalRecordsCount(measurements.Count); features.Resizing(); })
.Height("400px")
.DataBind()
.Render() )
I have records with over 100 columns. I want the columns to increase width as per the text.
But the columns are getting shrinked. Here is screenshot for reference https://www.dropbox.com/s/5n1588q23swarvj/igGrid_Column_Width_Issue.png
I am stuck. Please respond as quickly as possible.
Hi Martin,
Seems like some problem with browser cache. I restarted my machine for some issue and now pager is working fine.
But now I got into another problem. The grid headers are getting scrolled. I want them to be fixed and visible always, but they get scrolled along with records.
Is there any way to stop it ??
1.Did you get any errors in the JavaScript console?
2.What build and version of the NetAdvantage for jQuery do you use?3.What is your exact grid configuration at the time this error appeared?
Best regards,
Martin Pavlov
Infragistics, Inc.
The grid header size is fixed. But I am facing an issue with pager.
If am adding type to pager, the grid is not getting rendered at all:
features.Paging().PageSize(50).Type(OpType.Local);
Try to turn off Virtualzation. It seems to be the cause of the problem.
Note: You already have Paging defined, so Virtualization is not needed.
I have added the CSS mentioned by you, but that only solves the problem partially.
The grid Body is now showing auto column cell data, but the headers are still shrinked.
Here is the screenshot for your reference https://www.dropbox.com/s/9velwb98zuu746i/igGrid_Header_Problem.png
Additionally as suggested by you I have made FixedHeaders = false :
@(Html .Infragistics() .Grid<Measure>(measurements.AsQueryable()) .ID("mGrid").AutoGenerateColumns(true)
.FixedHeaders(false)
.Features(features => { features.Paging().PageSize(50).TotalRecordsCount(measurements.Count);
features.Resizing();
})
.Virtualization(true)
.VirtualizationMode(VirtualizationMode.Continuous)
.Height("600px")
Please let me know if I am missing anything here.