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
3760
igniteUI MVC igGrid not loading if Hiding column
posted

I have a simple Razor grid which works fine if in Hiding the Hidden is false.

@(Html.Infragistics().Grid(Model)
.ID("recordreviewlistgrid")
.Width("100%")
.Height("100%")
.PrimaryKey("Reference")
.Columns(column =>
{
column.For(m => m.Reference).HeaderText("Ref").Width("10%");
column.For(m => m.Details).HeaderText("Details1").DataType("String").Width("30%");
})
.Features(feature =>
{
feature.Hiding()
.ColumnSettings(cs =>
{
cs.ColumnSetting().ColumnKey("Reference").AllowHiding(false).Hidden(false);
cs.ColumnSetting().ColumnKey("Details").AllowHiding(false).Hidden(false);
});
})
.DataBind()
.Render()
)

If I change the Hidden property to true the column header is shown as hidden but no data rows are displayed: 

cs.ColumnSetting().ColumnKey("Details").AllowHiding(true).Hidden(true);

Can you see any reason why this should behave in this way. 

Thanks

Andy

Parents
  • 0
    Offline posted

    t seems like you're using the Infragistics Ignite UI for ASP.NET MVC to create a Razor grid, and you're encountering an issue when setting the Hidden property to true for a column.As for mac os type, I'd choose file browser mac, for top users. The behavior you're describing, where the column header is shown as hidden but no data rows are displayed, could be related to the fact that when you hide a column, the associated data might also be hidden from view.

     

Reply Children
No Data