Ok, so I am opening a new topic with this issue
Hi, I am MarkoI am having a problem understanding how this works:http://samples.infragistics.com/sllob/RunSamples.aspx?cn=grid#/grid/handling-hierarchical-data-setsCan someone please put here some sample project with Access database (I am using SQL 2008) so that I can see how do I get data from the database into the class objects and the into grid. I am asking this cause I can't understand this part with binding data to the columns:Text="{Binding Source={StaticResource Strings} , Path=XWG_OrderDetails_Discount}"This is how I load data into grid from database: I make new class "Users" and make method in service "GetUsers" that executes sql query and gets data from db onto list of objects of "Users" class and returns that list. When execution of the service method is completed I do this xamGrid1.ItemsSource = e.Result; and grid displays data.How is this "http://samples.infragistics.com/sllob/RunSamples.aspx?cn=grid#/grid/handling-hierarchical-data-sets" different ? comparing to the my method described above??
PS. Can someone please put here some sample project with Access database.
Please help me resolve this issue,Best regards,Marko
Somebody knows how to do this?
To remove this gap (padding) from the expansion indicator cells ?
I haven't resolved this issue yet.
Please help
best regards.
Marko
Hi.
That worked, thanks.
Here is how it looks:
Now, my problem is all those white gaps between expansion indicator cells and among parent rows. How do I get rid of those? Is there some padding to be set to 0 in style of expansion indicator cells ?? maybe ? Both heights are set to 14px (parent row height and expansion indicator height). Here is how I set the style of parent rows:
Style styleKomentarNaslov = new Style(typeof(CellControl)); styleKomentarNaslov.Setters.Add(new Setter(CellControl.BackgroundProperty, new SolidColorBrush(Colors.Red))); //230, 255, 230 84, 255, 244 styleKomentarNaslov.Setters.Add(new Setter(CellControl.ForegroundProperty, new SolidColorBrush(Color.FromArgb(255, 255, 255, 255)))); styleKomentarNaslov.Setters.Add(new Setter(CellControl.PaddingProperty, "0,0")); styleKomentarNaslov.Setters.Add(new Setter(CellControl.FontFamilyProperty, new FontFamily("Arial"))); styleKomentarNaslov.Setters.Add(new Setter(CellControl.FontSizeProperty, "11")); styleKomentarNaslov.Setters.Add(new Setter(CellControl.VerticalAlignmentProperty, "Top")); styleKomentarNaslov.Setters.Add(new Setter(CellControl.VerticalContentAlignmentProperty, "Center")); styleKomentarNaslov.Setters.Add(new Setter(CellControl.HeightProperty, "14"));//20 styleKomentarNaslov.Setters.Add(new Setter(CellControl.CursorProperty, "Hand")); styleKomentarNaslov.Setters.Add(new Setter(CellControl.FontStretchProperty, "SemiCondensed"));
So padding among parent rows is set to 0. I think only problem now is padding of those indicator cells.
Hello Marko,
Please remove the x:Type and the curly braces like that:
<Style TargetType="Prim:ExpansionIndicatorCellControl" … >
Please let me know if you require further assistance regarding the discussed matter.
Sincerely,
Ekaterina
Developer Support Engineer
Infragistics, Inc.
www.infragistics.com/support
Thanks for your post it helped a lot, I have resolverd issues 1) and 3), now about that expansion indicator cell height I got an error:
"Error 8 The type 'x:Type' was not found. Verify that you are not missing an assembly reference and that all referenced assemblies have been built."
Here is what I wrote:
xmlns:Prim="clr-namespace:Infragistics.Controls.Grids.Primitives;
assembly=InfragisticsSL4.Controls.Grids.XamGrid.v10.3"
Please note that I am building a Web Silverlight application (Silverlight hosted on asp.net web project). So my dilemma is this: Can I write like you did: Infragistics.Controls.Grids.Primitives;
assembly=InfragisticsWPF4.Controls.Grids.XamGrid.v11
( WPF4 or SL4 that's the dilemma, does this matter at all?)
BTW. In your post I couldn't see the entire line so I don't know if I wrote it correctly. (here is what I see in your post: xmlns:Prim="clr-namespace:Infragistics.Controls.Grids.Primitives;assembly=InfragisticsWPF4.Controls.G... and this is the end)
Regards,
Marko.
Thank you for your post.
I was looking into your questions and :
1) In order to have one row in your second layout you can have a list with one element inside.
2) To manipulate the expansion indicator height you can set a style like that:
xmlns:Prim="clr-namespace:Infragistics.Controls.Grids.Primitives;assembly=InfragisticsWPF4.Controls.Grids.XamGrid.v11.2"
…
<ig:XamGrid.ExpansionIndicatorSettings>
<ig:ExpansionIndicatorSettings>
<ig:ExpansionIndicatorSettings.Style>
<Style TargetType="{x:Type Prim:ExpansionIndicatorCellControl}">
<Setter Property="Height" Value="50"/>
</Style>
</ig:ExpansionIndicatorSettings.Style>
</ig:ExpansionIndicatorSettings>
</ig:XamGrid.ExpansionIndicatorSettings>
3) To hide the layout header there is a property called HeaderVisibility. You can set it like that:
<ig:ColumnLayout Key="InnerInfo" HeaderVisibility="Hidden">
Please let me know if you require additional assistance regarding the discussed matter.