Gridview Strange Behaviour

4 posts, 0 answers
  1. Arun Kumar
    Arun Kumar avatar
    60 posts
    Member since:
    Nov 2009

    Posted 06 Jul 2011 Link to this post

    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>

  2. Vlad
    Admin
    Vlad avatar
    11100 posts

    Posted 06 Jul 2011 Link to this post

    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!

  3. DevCraft banner
  4. Arun Kumar
    Arun Kumar avatar
    60 posts
    Member since:
    Nov 2009

    Posted 06 Jul 2011 Link to this post

    Hi,

    I am using this version 2011.1.419.1040
  5. Yordanka
    Admin
    Yordanka avatar
    634 posts

    Posted 07 Jul 2011 Link to this post

    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!

Back to Top