This is a migrated thread and some comments may be shown as answers.

Rad GridView filtering

3 Answers 74 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Tim Lushbough
Top achievements
Rank 1
Tim Lushbough asked on 22 Jun 2010, 11:24 PM
Hello,

I'm having issues setting up a radgrid in my silverlight application,  below is the stacktrace of the exception:

   at MS.Internal.XcpImports.MethodEx(IntPtr ptr, String name, CValue[] cvData)
   at MS.Internal.XcpImports.MethodEx(DependencyObject obj, String name)
   at System.Windows.UIElement.UpdateLayout()
   at Telerik.Windows.Controls.PopupWrapper.AdjustPopupLocation()
   at Telerik.Windows.Controls.PopupWrapper.OnPopupOpened(Object sender, EventArgs e)
   at MS.Internal.CoreInvokeHandler.InvokeEventHandler(Int32 typeIndex, Delegate handlerDelegate, Object sender, Object args)
   at MS.Internal.JoltHelper.FireEvent(IntPtr unmanagedObj, IntPtr unmanagedObjArgs, Int32 argsTypeIndex, String eventName)

And here is my entire xaml file:
<UserControl x:Class="Daktronics.IT.Intranet.PSG.SilverlightSectionMatrix.ConfigurationSearch" 
 
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"   
 
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"   
 
xmlns:dataInput="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.Data.Input"   
 
xmlns:data="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.Data" 
 
xmlns:prim="clr-namespace:System.Windows.Controls.Primitives;assembly=System.Windows.Controls.Data" 
 
 
xmlns:telerik="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls.GridView" 
 
> 
 
 
<Grid x:Name="LayoutRoot">  
 
<telerik:RadGridView ItemsSource="{Binding ConfigurationsList}" HorizontalAlignment="Left" Height="600" Width="735" 
 
AutoGenerateColumns="False"   
 
CanUserReorderColumns="True"   
 
CanUserSortColumns="True" 
 
CanUserResizeColumns="True" 
 
IsReadOnly="True" 
 
ScrollViewer.VerticalScrollBarVisibility="Auto" 
 
ScrollViewer.HorizontalScrollBarVisibility="Hidden" 
 
Loaded="scrollViewer_Loaded">  
 
<telerik:RadGridView.Columns> 
 
<telerik:GridViewDataColumn Header="ID" UniqueName="ID" DataMemberBinding="{Binding ID}" Width="50"/>  
 
<telerik:GridViewDataColumn Header="Display Name" DataMemberBinding="{Binding DisplayName}" UniqueName="DisplayName" SortMemberPath="DisplayName" Width="150">  
 
<telerik:GridViewColumn.CellTemplate> 
 
<DataTemplate> 
 
<HyperlinkButton VerticalAlignment="Center" Foreground="{StaticResource NavyBlueSolidColorBrush}" Content="{Binding DisplayName}" ToolTipService.ToolTip="{Binding DisplayName}"   
 
Tag="{Binding ID}" Click="navigateToDisplayButton_Click" /> 
 
</DataTemplate> 
 
</telerik:GridViewColumn.CellTemplate> 
 
</telerik:GridViewDataColumn> 
 
<telerik:GridViewDataColumn Header="Project #" UniqueName="ProjectNumber" DataMemberBinding="{Binding ProjectNumber}" Width="70" /> 
 
<telerik:GridViewDataColumn Header="Task" UniqueName="TaskId" DataMemberBinding="{Binding TaskId}" Width="50" /> 
 
<telerik:GridViewDataColumn Header="Px High" UniqueName="PixelsHigh" DataMemberBinding="{Binding PixelsHigh}" Width="70"/>  
 
<telerik:GridViewDataColumn Header="Px Wide" UniqueName="PixelsWide" DataMemberBinding="{Binding PixelsWide}" Width="70"/>  
 
<telerik:GridViewDataColumn Header="Display" UniqueName="DisplayConfigurationFamilyDesc" DataMemberBinding="{Binding DisplayConfigurationFamilyDesc}" Width="200" /> 
 
<telerik:GridViewDataColumn Width="45" IsFilterable="False">  
 
<telerik:GridViewColumn.CellTemplate> 
 
<DataTemplate> 
 
<Button Visibility="{Binding IsDeleteAllowed,Converter={StaticResource booleanToVisibilityConverter}}" Height="20" Width="20" ToolTipService.ToolTip="Delete" Cursor="Hand" Tag="{Binding}" Click="deleteButton_Click">  
 
<Button.Content> 
 
<Image Source="../Images/trashicon.png" /> 
 
</Button.Content> 
 
</Button> 
 
</DataTemplate> 
 
</telerik:GridViewColumn.CellTemplate> 
 
</telerik:GridViewDataColumn> 
 
</telerik:RadGridView.Columns> 
 
</telerik:RadGridView> 
 
</Grid> 
 
</UserControl> 
 



Any Suggestions? I'm not getting any binding errors so you should be able to ignore all of my binding expressions. The exception gets thrown when I click on any of the filter buttons.

Thanks,
Aaron

3 Answers, 1 is accepted

Sort by
0
Vlad
Telerik team
answered on 23 Jun 2010, 06:46 AM
Hello,

 Can you post more info about the grid version?

Best wishes,
Vlad
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Tim Lushbough
Top achievements
Rank 1
answered on 23 Jun 2010, 03:30 PM
The telerik.Windows.Controls.GridView assembly is version 2010.1.402.1030
the Telerik.windows.Controls assembly is version 2010.1.402.1030
0
Vlad
Telerik team
answered on 23 Jun 2010, 03:33 PM
Hi,

 Please upgrade to the latest official version - Q1 2010 SP2.

Kind regards,
Vlad
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
GridView
Asked by
Tim Lushbough
Top achievements
Rank 1
Answers by
Vlad
Telerik team
Tim Lushbough
Top achievements
Rank 1
Share this question
or