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

Grid View Select Column items un-selected on scroll down

0 Answers 58 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Karthik
Top achievements
Rank 1
Karthik asked on 03 Jul 2013, 08:57 PM
Hello

I am using silverlight Rad grid view and GridViewSelectColumn to display the check box to select all and unselect all items in the grid...

I am facing an issues when I select all items in the grid and scroll down,

when i select the check box it is displaying items as selected, but  when i scroll down the items are unselected randomly and selected randomly, when i scroll top the items, the item are unselected randomly, 

please check the images attached... please can anyone help me out with this issue... thank you very much... 
<telerik:RadGridView x:Name="grdProductSummary"
                                      Grid.Row="1" Width="Auto"
                                      Grid.Column="0"
                                      VerticalContentAlignment="Stretch"
                                      HorizontalAlignment="Stretch"                                     
                                      ItemsSource="{Binding ItemList,  Mode=TwoWay, Source={StaticResource ProductSummaryViewModel}}"
                                      AutoExpandGroups="False"
                                      ShowGroupPanel="True"                                                                
                                      ScrollMode="RealTime" 
                                      CanUserSelect="True" Loaded="grdProductSummary_Loaded"
                                      SelectionMode="Multiple" 
                                              SelectionChanged="grdProductSummary_SelectionChanged"
                                      IsFilteringAllowed="False"
                          SelectedItem="{Binding SelectedProduct, Mode=TwoWay}"
                                              RowLoaded="grdProductSummary_RowLoaded"
                          MinColumnWidth="8" AutoGenerateColumns="False"
                                              ScrollViewer.VerticalScrollBarVisibility="Auto"
                                                       >
                                     
 
                                      <telerik:RadContextMenu.ContextMenu>
                                          <telerik:RadContextMenu x:Name="ProductGridContextMenu" IconColumnWidth="0"
                                                                  ItemContainerStyle="{StaticResource MainPageRadMenuStyle}"
                                                                  telerik:StyleManager.Theme="Summer">
                                              <telerik:RadContextMenu.Items>
                                                  <telerik:RadMenuItem Header="Copy"  />
                                              </telerik:RadContextMenu.Items>
                                          </telerik:RadContextMenu>
                                      </telerik:RadContextMenu.ContextMenu>
 
                                      <telerik:RadGridView.Columns>
 
                                          <telerik:GridViewSelectColumn/>
                                          <telerik:GridViewDataColumn  Header="{Binding ApplicationStrings.ProductIDHeader, Source={StaticResource ResourceWrapper}}" DataMemberBinding="{Binding InventoryId}" Width="Auto" IsGroupable="False"
                                                                       HeaderTextAlignment="Center" IsReadOnly="True" TextAlignment="Left"/>
                                          <telerik:GridViewDataColumn  Header="{Binding ApplicationStrings.ClientProductIDHeader, Source={StaticResource ResourceWrapper}}" DataMemberBinding="{Binding CustomerItemNum}" Width="Auto" IsGroupable="False"
                                                                     HeaderTextAlignment="Center" IsReadOnly="True" TextAlignment="Right"/>
                                          <telerik:GridViewDataColumn  Header="{Binding ApplicationStrings.CustomerName, Source={StaticResource ResourceWrapper}}" DataMemberBinding="{Binding CustomerName}" Width="Auto" IsGroupable="False"
                                                                     HeaderTextAlignment="Center" IsReadOnly="True" TextAlignment="Right"/>
                                          <telerik:GridViewDataColumn  Header="{Binding ApplicationStrings.ProductDescpHeader, Source={StaticResource ResourceWrapper}}" DataMemberBinding="{Binding InventoryDescription}" IsGroupable="False"
                                                                       HeaderTextAlignment="Center" Width="Auto" IsReadOnly="True" TextAlignment="Left"/>
                                          <telerik:GridViewDataColumn  Header="{Binding ApplicationStrings.OrderQtyHeader, Source={StaticResource ResourceWrapper}}" DataMemberBinding="{Binding PlannedQty}" Width="Auto" IsGroupable="False"
                                                                       HeaderTextAlignment="Center" IsReadOnly="True" TextAlignment="Right"/>
                                          <telerik:GridViewDataColumn  Header="{Binding ApplicationStrings.StoreCountHeader, Source={StaticResource ResourceWrapper}}" DataMemberBinding="{Binding StoreCount}" Width="Auto" IsGroupable="False"
                                                                       HeaderTextAlignment="Center" IsReadOnly="True" TextAlignment="Right"/>
                                          <telerik:GridViewDataColumn  Header="{Binding ApplicationStrings.ConstrainedAllocationHeader, Source={StaticResource ResourceWrapper}}" DataMemberBinding="{Binding LastQtyAvail}" Width="Auto" IsGroupable="False"
                                                                       HeaderTextAlignment="Center" IsReadOnly="True" TextAlignment="Right"/>
 
 
 
                                  </telerik:RadGridView>

No answers yet. Maybe you can help?

Tags
GridView
Asked by
Karthik
Top achievements
Rank 1
Share this question
or