Hi All,
I'm trying to do something similar described as in here: http://community.infragistics.com/forums/p/53090/276218.aspx with the solution provided by Petar. It works perfectly except for when I set
<DataPresenter:FieldLayout.Settings> <DataPresenter:FieldLayoutSettings LabelLocation="Hidden"/></DataPresenter:FieldLayout.Settings>
in which case the FieldPositionChanged never gets raised when resizing the nested column width.
I don't want to display the labels with all the headers for nested rows as it has the same layout as the parent and so wastes space. Is there any way of getting this to work when hiding the labellocation on the nested field layout?
Thanks
Hello ,
Thank you for your post. I have been looking through it and I suggest you see this forum thread:
http://forums.infragistics.com/forums/t/56968.aspx
where the same issue as yours is discussed. Please let me know If you need further clarifications on this matter.
Looking forward for your reply.
Hi
I don't think that is the issue.
I have a situation similar to the one shown here :: "http://community.infragistics.com/forums/p/53090/276218.aspx" - I want column widths to be preserved between parent and child columns. In the solution posted towards the end of the thread, you see a grid with a parent row and child rows. If you resize the parent column width the child column widths also resize so that the column layouts look the same. Also, resizing the child column widths updates the parent's.
I have tried to use this solution for my own needs, which are pretty much the same except I want to hide the child label area. However doing this means that resizing the parent column width resizes the child column widths but resizing the child column width does not resize the parent's.
I've attached a simple solution where you can see this problem. You'll see two grids in the sample, the first hides the child label area and the second grid doesn't. Resizing the child column in the first grid doesn't cause the parent column to update however in the second grid doing the same thing works.
Is there anyway to get the solution working for the first grid as I don't wish to show the child label area?
Hi,
Is it possible to achieve without the data presenter style? I dont want to add any extra styling or code just to remove one small line. Header presenter style may be ok for me but not the data presenter style.
Hello Tei,
Did you try the sample I have attached in some of the previos posts. I belive that it has the functionality you want.
Hello, Stefan
I have been download this sample and work well.Thank you.
Now,The problem is that I need to hidden the header label of the nested rows with this:
<igDP:FieldLayout Key="Infant"> <igDP:FieldLayout.Fields> <igDP:Field Name="Name" /> <igDP:Field Name="Age"/> </igDP:FieldLayout.Fields> <igDP:FieldLayout.Settings> <igDP:FieldLayoutSettings LabelLocation="Default"/> </igDP:FieldLayout.Settings> </igDP:FieldLayout>
However,if I resize a column in the nested rows, the width of the parent rows isn't "updated".
can you help me.
thank you Sincerely
Hello again,
I have been looking through your sample and the reason for that behavior is that when you hide the labels they actually don’t resize, which don’t cause the resize event to fire and such result is expected. So I modified your sample by creating a style for the LabelPresenter of the child Fieldlayout in which I set the Height property to 0, but there still was a line from the DataRecordPresenter and for preventing this I copied the default style for that element from here: C:\Program Files (x86)\Infragistics\NetAdvantage 2011.1\WPF\DefaultStyles and in it I used: \DataPresenter\DataPresenterGeneric_Express.xaml file and set one CardPanel’s Visibility to Collapsed to hide that line. Please let me know if you need further assistance on this matter.