My code is:
var helper = new DomHelper(_dms.SendMessages, "operational_system_configuration");
var filter = DomInstanceExposers.DomDefinitionId.Equal(Operational_System_Configuration.Definitions.ProtocolResourceTypeMapping.Id);
var currentMappings = helper.DomInstances.Read(filter);
var pollingIpsLookup = currentMappings.ToLookup(x=>x.Name, x=>x.Sections.First(z => z.SectionDefinitionID.Equals(Operational_System_Configuration.Sections.ProtocolResourceTypeMapping.Id)));
var rows = pollingIpsLookup
.Where(group => group.Count() > 1)
.SelectMany(group => group, (group, element) => new GQIRow(new[]
{
new GQICell { Value = group.Key },
new GQICell { Value = element.GetValue<string>(Operational_System_Configuration.Sections.ProtocolResourceTypeMapping.ProtocolVersion) },
new GQICell { Value = element.GetValue<string>(Operational_System_Configuration.Sections.ProtocolResourceTypeMapping.ResourceType) },
}));
return new GQIPage(rows.ToArray())
{
HasNextPage = false,
};
I want to group by the Key and then show remaining.
Actually I need to go and group it on table everytime then it is fine, but I want to show each time grouped, something like this
Hi Apurva,
That can easily be done by draging one of the columns of your GQI data source into the grouping feature of the table component:
Indeed! The data source can contain the raw data and the client will take care of the grouping for you.