for some reason my grid is showing two identical header rows, why is this ? Ive created the in exactly the same way as very other grid in my app, yet this one shows two header rows.
@(Html.Infragistics() .Grid(Model.Records) .ID("hedgeReportGrid") .Width("100%") .Height("500px") .AutoGenerateColumns(false) .AutoGenerateLayouts(false) .FixedHeaders(true) .Columns(column => { column.For(x => x.BlockStartDateTime).HeaderText("Hedge Date").DataType("datetime").Format("dd-MM-yyyy h:mm:ss").Width("200px"); column.For(x => x.Market).HeaderText("Market").Width("150px"); column.For(x => x.MarketID).HeaderText("Market ID").Width("100px"); column.For(x => x.BuySell).HeaderText("Buy/Sell").Width("125px"); column.For(x => x.Volume).HeaderText("Volume").Width("150px"); column.For(x => x.Trade_Unit_Of_Measure).HeaderText("Unit Of Measure").Width("150px"); column.For(x => x.GBPMWh).HeaderText("Price").Width("100px"); column.For(x => x.Currency).HeaderText("Currency").Width("100px"); column.For(x => x.BlockStartDateTime).HeaderText("Start Date").DataType("datetime").Format("dd/MM/yyyy HH:MM").Width("200px"); column.For(x => x.BlockEndDateTime).HeaderText("End Date").DataType("datetime").Format("dd/MM/yyyy HH:MM").Width("200px"); }) .Features(features => { features.Selection().Activation(true).MultipleSelection(false).Mode(SelectionMode.Row); features.Paging().PageSize(10).Type(OpType.Remote).RecordCountKey("TotalRecordsCount");
}) .ResponseDataKey("Records") .DataSourceUrl(Url.Action("GetHedgeReportData", "HedgeReport", new { contractRef = Model.ContractRef, startDate = Model.StartTradeDate, endDate = Model.EndTradeDate })) .DataBind() .Render())
Hello Mark,
Thank you for the update.
In order to ensure that your issue is addressed correctly I will need some more information like:
1. Which version of Infragistics controls you are using?2. Are you getting any error message in the console?3. How you are referring the JavaScript and CSS files, though the loader component or using core lob CDN links?4. Are you creating columns anywhere besides the initial setup of the grid or may be in the controller again?
5. If your other grids are working fine and created in exactly the same way then I would like to know which different behavior you have in this grid.
Please note in my sample I have deleted the references to reduce the size of the sample .You can add your reference or may be just copy the grid view and controller code in your sample and try running the sample again.
The best way for us to assist you is if you provide a small isolated sample that we can run and use for debugging locally or modify my sample application.
your project sample wont compile. the nuget packages are missing. Ive tried nuget restore and ive also tried manually updating the missing packages, nothing works, it wont compile. Ive used the same grid creation format in lots of other areas of my app and they display just one header, nothing I try removes the double header on just this one page. This is now becomng a real issue
well I cant for the life of me see whats going on here, ive deleted the grid and recreated the entire thing from scrtach and its still the same. This defies logic.
All my other grids are fine and they are created in exactly the same way. This is part of a large app so i cant give you a 'cut down' version to look at. Im now lwft with a very unprofessional looking grid
@(Html.Infragistics() .Grid(Model.Records) .ID("hedgeReportGrid") .Width("100%") .Height("550px") .AutoGenerateColumns(false) .AutoGenerateLayouts(false) .ShowHeader(true) .FixedHeaders(true) .AutoFormat(GridAutoFormat.DateAndNumber) .Columns(column => { column.For(x => x.TradeDate).HeaderText("Hedge Date").Width("200px"); column.For(x => x.Market).HeaderText("Market").Width("150px"); column.For(x => x.MarketID).HeaderText("Market ID").Width("100px"); column.For(x => x.BuySell).HeaderText("Buy/Sell").Width("125px"); column.For(x => x.Volume).HeaderText("Volume").Width("150px"); column.For(x => x.Trade_Unit_Of_Measure).HeaderText("Unit Of Measure").Width("150px"); column.For(x => x.MW).HeaderText("MW").Width("100px"); column.For(x => x.GBPMWh).HeaderText("Price").Width("100px"); column.For(x => x.Currency).HeaderText("Currency").Width("100px"); column.For(x => x.BlockStartDateTime).HeaderText("Start Date").Width("200px"); column.For(x => x.BlockEndDateTime).HeaderText("End Date").Width("200px"); }) .Features(features => { features.Selection().Activation(true).MultipleSelection(false).Mode(SelectionMode.Row); features.Paging().PageSize(50).Type(OpType.Remote).RecordCountKey("TotalRecordsCount"); }) .ResponseDataKey("Records") .DataSourceUrl(Url.Action("GetHedgeReportData", "HedgeReport", new { contractId = Model.ContractId, startDate = Model.StartTradeDate, endDate = Model.EndTradeDate })) .DataBind() .Render())
Hello Mark
I followed the steps you suggested and was unable to reproduce the behavior you're describing.
I have created a sample of iggrid with all the behavior and options available in your code snippet and when I run the sample I can see one header on top of the grid. Grid doesn’t showing two identical header.
I have attached the sample project I used to test this. Please test this project on your PC; whether or not it works correctly may help indicate the nature of this problem.
If the project does not work correctly, this indicates either a problem possibly specific to your environment, or a difference in the DLL versions we are using. My test was performed using version 16.1.
If the project does show the product feature working correctly, this indicates a possible problem in the code of your application. It will help if you can provide a small, isolated sample application that demonstrates the behavior you are seeing.
Or, if this sample project is not an accurate demonstration of what you're trying to do, please feel free to modify it and send it back, or send a small sample project of your own if you have one.
Please let me know if I can provide any further assistance.