Hi,
Bsed on the code below, I am facing the following issue with XamWebGrid 9.2: -
When the ColumnWidth is set to SizeToHeader, the FixedColumnIndicator overlaps last 2-3 alphabets of the column header.
It means that the column header is not completely visible. THIS WAS WORKING FINE WITH INFRAGISTICS 9.1.
Can someone suggest whats causing the problem ? or is it a issue / enhancement in 9.2?
Here is the XAML
<
UserControl xmlns:controlsToolkit="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.Toolkit" xmlns:controls="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls" xmlns:igGrid="clr-namespace:Infragistics.Silverlight.Controls;assembly=Infragistics.Silverlight.XamWebGrid.v9.2" x:Class="IG_Samples.MainPage"
="http://schemas.microsoft.com/winfx/2006/xaml"
="480">
</
UserControl>
HERE IS THE CODE
using
System;
System.Collections.Generic;
System.Collections.ObjectModel;
System.Linq;
System.Net;
System.Windows;
System.Windows.Controls;
System.Windows.Documents;
System.Windows.Input;
System.Windows.Media;
System.Windows.Media.Animation;
System.Windows.Shapes;
Infragistics.Silverlight;
Infragistics.Silverlight.Controls;
Infragistics.Silverlight.Controls.Primitives;
namespace
IG_Samples
{
UserControl
>();
MainPage()
InitializeComponent();
BindData();
}
BindData()
i = 1; i <= 100; i++)
objSource.Add(
+ i.ToString() });
.igGridRequestDetails.ItemsSource = objSource;
e)
.igGridRequestDetails.ColumnTypeMappings.Count;
i = count - 1; i >= 0; i--)
))
);
?))
.Parse(chkIsActive.IsChecked.ToString())});
MyDataSource
; }
I noticed that you are using the original release dlls in this project, so I checked the project against the latest service release and the issue was no longer there.
I would suggest that you get the latest service release for the LOB dlls (build 9.2.20092.2099) and apply that and rebuild your project against that.
I have attached a sample project. Can someone tell me, by looking at teh sample, whats causing the column headers to chop off and what is the fix for it ?
Could you submit a sample recreating this issue, it would be easier to determine what is going on.
look at the snapshot. the are highlighted in RED indicates teh problem statement.
The column name is getting chopped off and I am not able to understand why it is happening. I tried all possible combination of properties related to column width and indicators.
hope this makes easy to drill down to the root cause.
You never set the ColumnWidth property in this sample.
The default value for grid.ColumnWidth is InitialAuto. This setting means that the column fixes it's width during the inital rendering to the largest cell that is currently visiable at intial rendering time.
Setting the value to SizeToHeader or Auto would allow the header to resize when the indicator is brought into view and not clip the text.