Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
975
why is my grid showing 2 header rows with the same titles ?
posted

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())

Parents
No Data
Reply
  • 7535
    Offline posted

    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.

    DatePickerInGrid.zip
Children