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

Gridview Strange Behaviour

3 Answers 52 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Arun Kumar
Top achievements
Rank 2
Arun Kumar asked on 06 Jul 2011, 10:00 AM
This is happened only if there is only one record. If I add another record its displaying normally.

This is the markup:
<
telerik:RadGridView x:Name="dg" Grid.Row="2" ShowGroupPanel="False" AutoGenerateColumns="False"
                            RowIndicatorVisibility="Collapsed" ClipboardCopyMode="None" ClipboardPasteMode="None"
                            CanUserDeleteRows="False" CanUserInsertRows="False" SelectionMode="Single"
                            ItemsSource="{Binding Path=LstData, Mode=TwoWay}"
                            IsBusy="{Binding Path=IsLoadingData}"
                            SelectedItem="{Binding Path=SelectedRecord, Mode=TwoWay}">
 
           <toolkit:ContextMenuService.ContextMenu>
               <toolkit:ContextMenu Style="{StaticResource ZuneLikeContextMenu}">
 
                   <toolkit:MenuItem Style="{StaticResource ZuneLikeMenuItem}" Command="{Binding Path=ReserveCommand}"
                                     Header="{Binding Path=LabelResource.Reservation, Source={StaticResource ResourceWrapper}}" />
 
                   <toolkit:MenuItem Style="{StaticResource ZuneLikeMenuItem}" Command="{Binding Path=PrintFormCommand}"
                                     Header="{Binding Path=LabelResource.PrintForm, Source={StaticResource ResourceWrapper}}" />
 
               </toolkit:ContextMenu>
           </toolkit:ContextMenuService.ContextMenu>
 
           <telerik:RadGridView.Columns>
 
               <telerik:GridViewColumn>
                   <telerik:GridViewColumn.CellTemplate>
                       <DataTemplate>
                           <CheckBox IsChecked="{Binding Path=IsApproved, Mode=TwoWay}"
                                     IsEnabled="{Binding Path=ContractType, Mode=OneWay, Converter={StaticResource ApprovalEnableConverter}}"
                                     VerticalAlignment="Center" HorizontalAlignment="Center"/>
                       </DataTemplate>
                   </telerik:GridViewColumn.CellTemplate>
               </telerik:GridViewColumn>
                
               <telerik:GridViewDataColumn DataMemberBinding="{Binding Path=ContractNo, Mode=OneWay}"
                                           Width="Auto" MinWidth="100" IsReadOnly="True" ShowDistinctFilters="False"/>
 
               <telerik:GridViewDataColumn DataMemberBinding="{Binding Path=TransactionDate, Mode=OneWay}"
                                           DataFormatString="{}{0:dd-MMM-yyyy}" Width="Auto" MinWidth="120" IsReadOnly="True"
                                           ShowDistinctFilters="False"/>
 
               <telerik:GridViewDataColumn DataMemberBinding="{Binding Path=CustomerType, Mode=OneWay, Converter={StaticResource zeroConverter}}"
                                           Width="Auto" MinWidth="100" IsReadOnly="True" ShowDistinctFilters="True"/>
 
               <telerik:GridViewDataColumn DataMemberBinding="{Binding Path=CustomerNo1, Mode=OneWay}"
                                           Width="Auto" MinWidth="100" IsReadOnly="True"/>
 
               <telerik:GridViewDataColumn DataMemberBinding="{Binding Path=CustomerName1, Mode=OneWay}"
                                           Width="Auto" MinWidth="100" IsReadOnly="True"/>
 
               <telerik:GridViewDataColumn DataMemberBinding="{Binding Path=PropertyName, Mode=OneWay}"
                                           Width="Auto" MinWidth="100" IsReadOnly="True"/>
 
               <telerik:GridViewDataColumn DataMemberBinding="{Binding Path=UnitNo, Mode=OneWay}"
                                           Width="Auto" MinWidth="100" IsReadOnly="True"/>
 
               <telerik:GridViewDataColumn DataMemberBinding="{Binding Path=UnitRefNo, Mode=OneWay}"
                                           Width="Auto" MinWidth="100" IsReadOnly="True"/>
 
               <telerik:GridViewDataColumn DataMemberBinding="{Binding Path=AllInPrice, Mode=OneWay}"
                                           DataFormatString="{}{0:N}" Width="Auto" MinWidth="100" IsReadOnly="True"/>
 
               <telerik:GridViewDataColumn DataMemberBinding="{Binding Path=ReservationDeposit, Mode=OneWay}"
                                           DataFormatString="{}{0:N}" Width="Auto" MinWidth="100" IsReadOnly="True"/>
 
               <telerik:GridViewDataColumn DataMemberBinding="{Binding Path=AdditionalParking, Mode=OneWay}"
                                           Width="Auto" MinWidth="100" IsReadOnly="True"/>
 
               <telerik:GridViewDataColumn DataMemberBinding="{Binding Path=AdditionalSpace, Mode=OneWay}"
                                           Width="Auto" MinWidth="100" IsReadOnly="True"/>
           </telerik:RadGridView.Columns>
 
       </telerik:RadGridView>

3 Answers, 1 is accepted

Sort by
0
Vlad
Telerik team
answered on 06 Jul 2011, 10:05 AM
Hello,

 Can you post more more info about the grid version?

Greetings,
Vlad
the Telerik team

Register for the Q2 2011 What's New Webinar Week. Mark your calendar for the week starting July 18th and book your seat for a walk through of all the exciting stuff we will ship with the new release!

0
Arun Kumar
Top achievements
Rank 2
answered on 06 Jul 2011, 11:03 AM
Hi,

I am using this version 2011.1.419.1040
0
Yordanka
Telerik team
answered on 07 Jul 2011, 10:22 AM
Hi,

We have tried to reproduce the problem at our side following the provided information, but without success. We are not aware of such an issue with RadGridView so could you please provide more information about the scenario and how we can reproduce it. Does the problem occur as soon as the grid loads or you are adding items runtime? You can also send us a sample project via a support ticket which demonstrates the problem so we can test it locally.

You may try our latest internal build - version .0704 and check whether the problem appears or not.

Best wishes,
Yordanka
the Telerik team

Register for the Q2 2011 What's New Webinar Week. Mark your calendar for the week starting July 18th and book your seat for a walk through of all the exciting stuff we will ship with the new release!

Tags
GridView
Asked by
Arun Kumar
Top achievements
Rank 2
Answers by
Vlad
Telerik team
Arun Kumar
Top achievements
Rank 2
Yordanka
Telerik team
Share this question
or