This question is locked. New answers and comments are not allowed.
Hello,
I'm creating a dashboard for financial purpose... I've a main viewmodel that composed of
I've also an item Indicator class
SNAPSHOT in the meanwhile has
I've a radtimebar (with a chart) and a radgridview
I should display in the gridview the data just for the timebar's selected range... how should I bind the gridview to the filtered data?
I know I should have a method or property
But if I put this method in the viewmodel I've to manually recreate the relations (I use EF to map data from DB).......any suggestion?
Thanks
I'm creating a dashboard for financial purpose... I've a main viewmodel that composed of
DateTime SelectionStart {get;set;}
DateTime SelectionEnd {get;set;}
I've also an item Indicator class
public Int ID {get;set}
public string Description {get;set;}
[...]
public IEnumerable<
SNAPSHOT
> Snapshots {get;set;}
SNAPSHOT in the meanwhile has
public int ID {get;set;}
public double VALUE {get;set;}
public datetime DT_TS {get;set;}
I've a radtimebar (with a chart) and a radgridview
I should display in the gridview the data just for the timebar's selected range... how should I bind the gridview to the filtered data?
I know I should have a method or property
public object GetItem()
{
var items =SelectedDataItem.SNAPSHOT.Where(o1 => SelectionDateStart < o1.DT_TS && o1.DT_TS < SelectionDateEnd);
return items;
}
But if I put this method in the viewmodel I've to manually recreate the relations (I use EF to map data from DB).......any suggestion?
Thanks