Hi
I'am trying to show hierarchical data on the grid which is bounded to a Datasource.
I have a nested class, i have binded my datasource to a IList<Type>. If i set the AutoGenerate flag on the field setting to true, I get a herirachical grid structure for the Nested Class(The nested class have two properties which are of type bool and string. so what i'am trying to depict will look something attached one) and the rest of the class properties are shown as fields. But i have lot of properties which shouldn't be visible.
so when i try to generate the hierarchical structure for the nested class with AutoGenerate flag sete to flase, it doesn't work.
The nested class have two properties which are of type bool and string. so what i'am trying to depict will look something attached one. The nested class list is exposed in as IList<typeNestedClass>. I'm trying to bind the nested Class List to field.
<igDP:FieldLayout.Fields >
="ValueList" />
IList<ValueClass> mandateValueList = new List<ValueClass>();
public IList<ValueClass> ValueList
{
get
return valueList; }
set
{ valueList =
value;
OnPropertyChanged(
"ValueList");
}
Is it possible to set Binding of fields like this?
Should I add one more field layout and try to bind the list?
How can i bind specify a hierarchical structure for a particular field?
Thanks and Regards
VTagore.
Hello Josue,
Thank you for your email.
I have been looking into it and it seems that the question that you are having is the same as the one that you are having at the following forum thread:http://es.infragistics.com/community/forums/p/94894/469271.aspx#469271,
to which I have already replied.
Thank you for using Infragistics Components.
Hey, what if I want to bind the selected Book to a property in my viewmodel, how could I do that?
What if the child field is list of primitive type? Considering your books example above, lets say Books (parent field) is list of string & not Book. To be clear, given below data model how can we create a hierarchical data grid-
Category {
string CategoryName;
List<string> BookNames;
The ExpansionIndicator cannot be displayed between the fields, as it is in the DataRecordPresenter's ControlTemplate and is for the Record and not for the Field. I think that you can retemplate the DataRecordPresenter's Template and put it on the right side but not between the fields. You can submit a feature reuqest for this functionality on this link: http://devcenter.infragistics.com/Protected/RequestFeature.aspx
Thanks Alex..
I want to show the hierarchical field layouts in a particular way
for example
Consider an Employee data,
I have Name of the Employee and Address on the parent grid. The address field should be shown as hierarchical data.
I want to show the hierarchical on the second column which is Address
Name + Address
City
Street
Defaultly the expander is shown at the left most end. In this case it will be shown on the Name field.
I want to show it on the Address field. Is there any way to specify this on the XamDataGrid?
Can the Default behaviour be Overrided by some means like template?
Please let me know whether this kind of feature is support by Infragistics?
Thanks in Advance