RadGridView Bug

7 posts, 0 answers
  1. Srini
    Srini avatar
    41 posts
    Member since:
    Jul 2009

    Posted 03 Sep 2009 Link to this post

    I'm populating some rows in my RadGrid When it exceds the height, It is showing scroll Bar. Now the problem is When i try to clear the grid by saying     MyGrid.ItemSource=null;   and only when the scroll bar is scrolled, My application got crashed.. Sometimes it is calling JustinTime Debugger or some time the page becomes blank..

    Do any body face this problem? If so pls share me the solution.
  2. Rossen Hristov
    Admin
    Rossen Hristov avatar
    2478 posts

    Posted 08 Sep 2009 Link to this post

    Hi Srini,

    I have tried this with our Latest Internal Build and it was behaving properly.

    Can you please verify whether you are experiencing the same behavior when you upgrade to the Latest Internal Build (which could be found in your Client.NET). In case you are able to reproduce this with the latest build, I would ask you to send us the sample project so that we can debug it and identify what is causing this issue. Thanks in advance.

    Best wishes,
    Ross
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
  3. DevCraft banner
  4. Srini
    Srini avatar
    41 posts
    Member since:
    Jul 2009

    Posted 18 Sep 2009 Link to this post

    Hi

    First of all sory for the late reply. Where can i find ur latest build? 

    How to attach files in this forums
  5. Vlad
    Admin
    Vlad avatar
    11100 posts

    Posted 18 Sep 2009 Link to this post

    Hi Srini,

    Attachments are allowed only in support tickets! You can get our latest internal build from here:
    http://www.telerik.com/account/latest-internal-builds.aspx

    All the best,
    Vlad
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
  6. Srini
    Srini avatar
    41 posts
    Member since:
    Jul 2009

    Posted 18 Sep 2009 Link to this post

    Hi
    thank you then how should i send ma sample
  7. Srini
    Srini avatar
    41 posts
    Member since:
    Jul 2009

    Posted 18 Sep 2009 Link to this post

    <UserControl x:Class="RadGridViewSample.Page" 
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"  
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"  
        xmlns:telerikGrid"clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls.GridView" 
        xmlns:telerik="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls" 
        Width="400" Height="250"
        <Grid x:Name="LayoutRoot" Background="White"
            <telerikGrid:RadGridView x:Name="RadGrid" VerticalAlignment="Top" HorizontalAlignment="Left"  AutoGenerateColumns="False" Height="150" ShowGroupPanel="False" Margin="0,0,0,0" > 
                <telerikGrid:RadGridView.Columns> 
                    <telerikGrid:GridViewDataColumn UniqueName="MyInt"  HeaderText="SNo" Width="150" IsReadOnly="True"  IsVisible="True" /> 
                    <telerikGrid:GridViewDataColumn UniqueName="MyString" HeaderText="Phone Ext" Width="100"  IsReadOnly="True" IsVisible="True"/> 
                    <telerikGrid:GridViewDataColumn UniqueName="MyString1" HeaderText="Phone No" Width="100"  IsReadOnly="True" IsVisible="True"/> 
                </telerikGrid:RadGridView.Columns> 
            </telerikGrid:RadGridView> 
            <Button x:Name="btnClear" VerticalAlignment="Top" HorizontalAlignment="Left" Click="btnClear_Click" Height="25" Content="Click After Scroll to middle" Margin="180,200,0,0" /> 
        </Grid> 
    </UserControl> 


    My cs code:

    using System; 
    using System.Collections.Generic; 
    using System.Linq; 
    using System.Net; 
    using System.Windows; 
    using System.Windows.Controls; 
    using System.Windows.Documents; 
    using System.Windows.Input; 
    using System.Windows.Media; 
    using System.Windows.Media.Animation; 
    using System.Windows.Shapes; 
     
    namespace RadGridViewSample 
        public partial class Page : UserControl 
        { 
            List<Data> myList = new List<Data>(); 
            public Page() 
            { 
                InitializeComponent(); 
     
                myList.Add(new Data(1,"345", "6543211")); 
                myList.Add(new Data(2, "345", "6543212")); 
                myList.Add(new Data(3, "345", "6543213")); 
                myList.Add(new Data(4, "345", "6543214")); 
                myList.Add(new Data(5, "345", "6543215")); 
                myList.Add(new Data(6, "345", "6543216")); 
                myList.Add(new Data(7, "345", "6543217")); 
                myList.Add(new Data(8, "345", "6543218")); 
                myList.Add(new Data(9, "345", "6543219")); 
                myList.Add(new Data(10, "345", "65432110")); 
                myList.Add(new Data(11, "345", "65432111")); 
                myList.Add(new Data(12, "345", "65432112")); 
                myList.Add(new Data(13, "345", "65432113")); 
                myList.Add(new Data(14, "345", "65432114")); 
     
                RadGrid.ItemsSource = myList
            } 
     
            private void btnClear_Click(object sender, RoutedEventArgs e) 
            { 
                ///This is showing error 
                //RadGrid.ItemsSource = null
     
                ///And also this 
                if (RadGrid.Records.Count > 0) 
                    RadGrid.Records.Clear(); 
            } 
        } 
     

    i have a class Called Data to load ma grid

    using System; 
    using System.Net; 
    using System.Windows; 
    using System.Windows.Controls; 
    using System.Windows.Documents; 
    using System.Windows.Ink; 
    using System.Windows.Input; 
    using System.Windows.Media; 
    using System.Windows.Media.Animation; 
    using System.Windows.Shapes; 
    using System.Collections.Generic; 
     
    namespace RadGridViewSample 
        public class Data 
        { 
            public Data(int SNo, string PhoneExt, string PhoneNo) 
            { 
     
                _myInt = SNo
                _myString = PhoneExt
                _myString1 = PhoneNo
            } 
            private int _myInt; 
            public int MyInt 
            { 
                get { return _myInt; } 
                set { _myInt = value; } 
            } 
            private string _myString; 
            public string MyString 
            { 
                get { return _myString; } 
                set { _myString = value; } 
            } 
            private string _myString1; 
            public string MyString1 
            { 
                get { return _myString1; } 
                set { _myString1 = value; } 
            } 
        } 
     

    That is it. I'm using Silverlight 2, Telerik Q1....Now run the application and  drag the scrollBar to middle and click the button.. App crashed!!!







  8. Pavel Pavlov
    Admin
    Pavel Pavlov avatar
    2039 posts

    Posted 22 Sep 2009 Link to this post

    Hi Srini,

    I am attaching a test application with your code. It behaves good and with no exceptions.
    The binaries are from the latest oficial release. I believe the problem has been fixed. So as a simple solution an upgrade to the latest version should do the trick.

    Kind regards,
    Pavel Pavlov
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Back to Top
DevCraft banner