DetailsListAuto throws a tantrum
See original GitHub issueI’m not sure if this is a bug or i’m just having wrong code. So I hope to clarify what I have done with the following code and why it won’t work for me. (Thank you in advance)
Razor part:
<DetailsListAuto ItemsSource="StagnationOptions" IsVirtualizing="true" TItem="DataItem" Compact="true" Columns="StagnationColumnSource" GetKey="@(x => x.Key)" LayoutMode="DetailsListLayoutMode.FixedColumns" Selection="StagnationOption" SelectionMode="SelectionMode.Single" />
Code part (Variables):
private Selection<DataItem> StagnationOption { get; set; } private IList<DataItem> StagnationOptions { get; set; } private IList<DetailsRowColumn<DataItem>> StagnationColumnSource { get; set; }
Code part (Filling with values):
StagnationOptions = new List<DataItem>(); StagnationOptions.Add(new DataItem("true", "Ja")); StagnationOptions.Add(new DataItem("false", "Nej"));
StagnationColumnSource = new List<DetailsRowColumn<DataItem>>(); StagnationColumnSource.Add(new DetailsRowColumn<DataItem, string>("Text", x => x.Text) { Index = 0 });
This is the error that shows in the console when running:
And this is how it looks with the error:
Issue Analytics
- State:
- Created 2 years ago
- Comments:9 (4 by maintainers)
Regarding this, you should probably unlist 5.2.0 due to such bug and leave only 5.2.1… I also have some disposable bug which is introduced in 5.2.0 / 5.2.1 but I’ll open another issue…
Sorry, but I introduced a bug here. It has to do with th e JavaScript isolation I added. I forgot to delete the ‘.’ in the call to
addViewPort
. Fix is on its way.