We try to load Gridview in WPF XAML design time,but it is not loading.IF we try to load at runtime by using c# code it works and added in Task Pane.
May i know how to fix the issue.
Thanks,
Anand
5 Answers, 1 is accepted
Unfortunately from the information provided we were not able to find out what the possible reason for your problem would be.
May you please provide some additional information about:
1. How are you using the GridView in Word Addin TaskPane? What is your purpose?
2. How are you trying to load the GridView in design time?
3. How are you loading it at runtime?
If we could reproduce some similar behavior we would be of much more help to you.
Didie
the Telerik team

XAML code like below
<telerik:GridViewDataControl AutoGenerateColumns="False" CanUserResizeColumns="False"
SelectionMode="Single" SelectionUnit="FullRow" IsReadOnly="True" Margin="5,0,0,37" GridLinesVisibility="None" x:Name="GridView1" RowIndicatorVisibility="Collapsed"
ShowGroupPanel="False" ShowInsertRow="False" VerticalAlignment="Stretch" Width="Auto"
ShowColumnHeaders="False" Background="{x:Null}" BorderThickness="0" BorderBrush="{x:Null}" RowStyle="{StaticResource GridViewRowStyle1}" RowDetailsStyle="{StaticResource DetailsPresenterStyle1}"
Its not working.
Dynamic Code in c#
GridView1 = new RadGridView ()
{
AutoGenerateColumns =
false ,
HorizontalAlignment = System.Windows.
HorizontalAlignment.Stretch,
CanUserResizeColumns = false ,
SelectionMode = System.Windows.Controls.SelectionMode.Single,
SelectionUnit = Telerik.Windows.Controls.GridView.
GridViewSelectionUnit .FullRow,
IsReadOnly = true,
GridLinesVisibility = Telerik.Windows.Controls.GridView.
GridLinesVisibility.None,
RowIndicatorVisibility = System.Windows.
Visibility.Collapsed,
ShowGroupPanel =
false ,
ShowInsertRow =
false ,
RowDetailsVisibilityMode = Telerik.Windows.Controls.GridView.
GridViewRowDetailsVisibilityMode
IsFilteringAllowed =
false ,
VerticalAlignment = System.Windows.
VerticalAlignment.Stretch,
ShowColumnHeaders =
true ,
};
Hi Anand,
Unfortunately this information does not help much. It is still unclear if you are getting design-time errors in Visual Studio or any other design environment. Are there any error messages that could help us gain mor e insight?
Best wishes,
Milan
the Telerik team

No error in design time when loading in word addin it word stopped working and word closed

Thanks,
Anand