Hi,
i have a hierarchical data with DATA Table at model along With Some other properties like 5 -6 ( in future there might be some more) , I Want a Field Layout where i can specify few field on GUI along with Data Table info ( i don't know the Columns of data table as it is dynamic , i just want to display It)
I don't want to change the XAMl all the time (to hide the Field whenever i introduce new one in Model ) as i am only interested in One Field & Complete data Table which it contains.
Sample code Pasted Below to show the model below :
Class SampleViewModel
{
private IEnumerable<InfoModel> Informations{get;set;} // This is the data source for XAMData grid
}
Class InfoModel{
//All properties here
String StudentNAME, ( Need to be shown)
Datatable/DataView BooksIssued; ( Need to be shown, I don't know the Column as its dynamic)
//Some more additonal fields which i dont want on GUI
int ID (Should not be displayed on GUI)
int Age(Should not be displayed on GUI)
Can some body help me writing Field Layout for this scenario as Autogeneration = true results in all Properties along with table on the GUI
[Stefan]
I have used Auto Generated field but as u can see in the question itself i need Autogeneration for Data Table property only but For rest of the properties int then BO, i want to take the control, i don't know how to do that.
SO as mention
VM has
Top level properties ( i want Auto Generation off for that)
But as its hierarchical , i want auto generation true for one level below
like Data view Details
Hello,
Thank you for your post. I have been looking into it and I can suggest you see this blog:
http://ko.infragistics.com/community/blogs/petar_monov/archive/2011/05/13/how-to-define-fieldlayouts-how-fieldlyouts-are-mapped.aspx
which describes how to define your field layouts. Please let me know if this helps you or you need further assistance on this matter.
Looking forward for your reply.