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

Major bug on the dataGried

7 Answers 117 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Jamal Husien
Top achievements
Rank 1
Jamal Husien asked on 26 Jul 2010, 11:56 PM
Dear All
i have a datagrid i am trying to edit the row directly,
but when i finish edit the any row these row disapper suddenly ( only one the first time)

i make just isreadOnly=false
when i edit a row and select other row the first row disappear, when i scrool the grid duplicate other row to the grid.
these is major error.
with these bug we cannot use the grid for editing.

Please donot ignore that error the is majar error on the dataGrid if you cannot solve it,then i think no need for the telerik datagrid.

 

 

 

<myRadGridView:RadGridView Name="radGridView_Items" CanUserInsertRows="False" AutoGenerateColumns="False"

 

 

 

FlowDirection="LeftToRight" CanUserReorderColumns="False" CanUserDeleteRows="False"

 

 

 

IsReadOnly="False" ShowColumnHeaders="True"

 

 

 

ShowGroupPanel="False" HorizontalContentAlignment="Right" MinColumnWidth="0" AlternateRowBackground="Red"

 

 

 

VerticalGridLinesBrush="Black" HorizontalGridLinesBrush="Black" Height="270" Width="520"  >

 

 

 

 

<myRadGridView:RadGridView.Columns>

 

 

 

 

<myRadGridView:GridViewDataColumn DataMemberBinding="{Binding groupBusAgendaId}" Header="IdNumber" IsReadOnly="True" Width="50"/>

 

 

 

 

<myRadGridView:GridViewDataColumn DataMemberBinding="{Binding forDate}" Header="Agenda Date" >

 

 

 

 

</myRadGridView:GridViewDataColumn>

 

 

 

 

<myRadGridView:GridViewDataColumn DataMemberBinding="{Binding busAgendaTypeDesc}" Header="Type" />

 

 

 

 

<myRadGridView:GridViewDataColumn DataMemberBinding="{Binding Agenda}" Header="Program/Agenda" />

 

 

 

 

<myRadGridView:GridViewDataColumn DataMemberBinding="{Binding Hotel}" Header="Hotel" />

 

 

 

 

<myRadGridView:GridViewDataColumn DataMemberBinding="{Binding townDesc}" Header="Town" />

 

 

 

 

</myRadGridView:RadGridView.Columns>

 

 

 

 

</myRadGridView:RadGridView>

 



7 Answers, 1 is accepted

Sort by
0
Vlad
Telerik team
answered on 27 Jul 2010, 06:31 AM
Hello,

 Can you reproduce such problem on some of our online examples? It will be better to open support ticket with small runnable project demonstrating your scenario. We will check your case and we will let you know what is going on.

All the best,
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
Jamal Husien
Top achievements
Rank 1
answered on 27 Jul 2010, 08:28 PM
dear all,
My application is big,  i cannot put all the project here.
again dataGrid have magar bug.
I will explain it again 
i create datagrid (I put the data by the code. using radGridView_Items.ItemsSource = myData;)
is the example bellow.

Everything work fine  but when i make IsReadOnly="false" and i try to edit the row ,then the row disappear from the dataGrid (just for the first edit row i edit it) and the grid duplicate other row when is scroll.

please need to solve that otherwise the datagrid cannot use for editing.
please ask your QA to make demo Project and then you can see the bug.

i need to get release asap.


best regrads
0
Vlad
Telerik team
answered on 28 Jul 2010, 06:47 AM
Hello,

It will be impossible for us to find the problem only using this information. 

All the best,
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
Jamal Husien
Top achievements
Rank 1
answered on 28 Jul 2010, 07:01 PM
if you don’t try anything of course  it will be impossible.
I make print screen and the bug and add it as attach files.


just make small application with 1 grid
put any data you want on the DataGrid.
run the program
if you try to edit one of the rows on the Datagrid then these row will disappear and other row will be duplicated.

only you need to make the step to get these error I think there  are error on the javasript of the Silverlight.

I cannot work as QA Person for Telerik.
my application have a bug, my customer is so angry for these error.

please solve these ASAP, the time is so important for me.
please look for the attach files you have their print screen with the Error and also I put the code.

for now I have on my application 4 bugs from telerik
1.the menu is not work for RTL. I already put a ticket for these.
2.no RLT on the editor, I already put a ticket for these
3.no tables on the editor, I already put a ticket for these
4.the DataGrid not working (major error)
0
Vlad
Telerik team
answered on 29 Jul 2010, 06:49 AM
Hello,

You can call ToList() for myData variable before assigning the grid ItemsSource to avoid further problems. 

All the best,

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
Richard Koslik
Top achievements
Rank 1
answered on 02 Feb 2011, 02:47 PM
Hello,

the problem is still alive. In my project I found out, when this problem occur.

Here is a short description:

I work with Windows 7, ORM version 10.11.2501, Silverlight version 10.3.1110.0
I have definde my tab_Data variable of type utDataSelection which is bound to the RadGridView:
public IEnumerable<utDataSelection> tab_Data
{
  get;
  set;
}
  
public class utDataSelection  
{
  private string _sKey;
  [KeyAttribute]
  public virtual string SKey
  {           
    get { return this._sKey; }
    set { this._sKey = value; }
  }
  
  private string _s1;
  public virtual string S1
  {
    get { return this._s1; }
    set { this._s1 = value; }
  }
  
  private string _s2;
  public virtual string S2
  {
    get { return this._s2; }
    set { this._s2 = value; }
  }
  
  private string _s3;
  public virtual string S3
  {
    get { return this._s3; }
    set { this._s3 = value; }
  }
  
  private int _i1;
  public virtual int I1
  {
    get { return this._i1; }
    set { this._i1 = value; }
  }
  
  private int _i2;
  public virtual int I2
  {
    get { return this._i2; }
    set { this._i2 = value; }
  }
  
  private int _i3;
  public virtual int I3
  {
    get { return this._i3; }
    set { this._i3 = value; }
  }
  
  private DateTime _d1;
  public virtual DateTime D1
  {
    get { return this._d1; }
    set { this._d1 = value; }
  }
  
  private DateTime _d2;
  public virtual DateTime D2
  {
    get { return this._d2; }
    set { this._d2 = value; }
  }
  
  private DateTime _d3;
  public virtual DateTime D3
  {
    get { return this._d3; }
    set { this._d3 = value; }
  }
  
  private bool _chk1;
  public virtual bool CHK1
  {
    get { return this._chk1; }
    set { this._chk1 = value; }
  }
  
  private bool _chk2;
  public virtual bool CHK2
  {
    get { return this._chk2; }
    set { this._chk2 = value; }
  }
  
  private bool _chk3;
  public virtual bool CHK3
  {        
    get { return this._chk3; }
    set { this._chk3 = value; }
  }
  
  private decimal? _f1;
  public virtual decimal? F1
  {
    get { return this._f1; }
    set { this._f1 = value; }
  }
  
  private decimal? _f2;
  public virtual decimal? F2
  {
    get { return this._f2; }
    set { this._f2 = value; }
  }
  
  private decimal? _f3;
  public virtual decimal? F3
  {
    get { return this._f3; }
    set { this._f3 = value; }
  }
}

The gridview looks like that:

<telerik:RadGridView  ShowGroupPanel="False" ShowColumnHeaders="False" AutoGenerateColumns="False" IsBusy="{Binding bIsDataLoading,Mode=TwoWay}" SelectedItem="{Binding SelectedDataItem,Mode=TwoWay}" ItemsSource="{Binding tab_Data}" Name="grdOverview"  HorizontalAlignment="Left" VerticalAlignment="Top" 
                      Width="640" Height="346" Margin="0,50,0,0" RowIndicatorVisibility="Collapsed" TabIndex="2" CanUserDeleteRows="False" CanUserInsertRows="False">
   <telerik:RadGridView.Columns>                
        <telerik:GridViewDataColumn IsReadOnly="True" IsFilterable="False" IsCustomSortingEnabled="False" SortingState="{Binding stsColumn1,Source={StaticResource MyViewModel},Mode=TwoWay}" IsVisible="{Binding bsColumn1,Source={StaticResource MyViewModel},Mode=TwoWay}" DataMemberBinding="{Binding S1}"  Width="{Binding sWidthsColumn1,Source={StaticResource MyViewModel},Mode=TwoWay}"/>
        <telerik:GridViewDataColumn IsReadOnly="True"  IsFilterable="False" IsCustomSortingEnabled="False" SortingState="{Binding stiColumn1,Source={StaticResource MyViewModel},Mode=TwoWay}" IsVisible="{Binding biColumn1,Source={StaticResource MyViewModel},Mode=TwoWay}" DataMemberBinding="{Binding I1}" Width="{Binding sWidthiColumn1,Source={StaticResource MyViewModel},Mode=TwoWay}"/>
        <telerik:GridViewDataColumn IsReadOnly="True"  IsFilterable="False" IsCustomSortingEnabled="False" SortingState="{Binding stdColumn1,Source={StaticResource MyViewModel},Mode=TwoWay}" IsVisible="{Binding bdColumn1,Source={StaticResource MyViewModel},Mode=TwoWay}" DataMemberBinding="{Binding D1}" Width="{Binding sWidthdColumn1,Source={StaticResource MyViewModel},Mode=TwoWay}"/>
        <telerik:GridViewCheckBoxColumn IsReadOnly="{Binding bChkColReadOnly1,Mode=TwoWay}"  IsFilterable="False" IsCustomSortingEnabled="False" SortingState="{Binding stchkColumn1,Source={StaticResource MyViewModel},Mode=TwoWay}" IsVisible="{Binding bchkColumn1,Source={StaticResource MyViewModel},Mode=TwoWay}" DataMemberBinding="{Binding CHK1}" Width="{Binding sWidthchkColumn1,Source={StaticResource MyViewModel},Mode=TwoWay}" EditTriggers="CellClick" AutoSelectOnEdit="True"/>
        <telerik:GridViewDataColumn IsReadOnly="True"  IsFilterable="False" IsCustomSortingEnabled="False" SortingState="{Binding stfColumn1,Source={StaticResource MyViewModel},Mode=TwoWay}" IsVisible="{Binding bfColumn1,Source={StaticResource MyViewModel},Mode=TwoWay}" DataMemberBinding="{Binding F1}" Width="{Binding sWidthfColumn1,Source={StaticResource MyViewModel},Mode=TwoWay}" />
        <telerik:GridViewDataColumn IsReadOnly="True"  IsFilterable="False" IsCustomSortingEnabled="False" SortingState="{Binding stsColumn2,Source={StaticResource MyViewModel},Mode=TwoWay}" IsVisible="{Binding bsColumn2,Source={StaticResource MyViewModel},Mode=TwoWay}" DataMemberBinding="{Binding S2}" Width="{Binding sWidthsColumn2,Source={StaticResource MyViewModel},Mode=TwoWay}"/>
        <telerik:GridViewDataColumn IsReadOnly="True"  IsFilterable="False" IsCustomSortingEnabled="False" SortingState="{Binding stiColumn2,Source={StaticResource MyViewModel},Mode=TwoWay}" IsVisible="{Binding biColumn2,Source={StaticResource MyViewModel},Mode=TwoWay}" DataMemberBinding="{Binding I2}" Width="{Binding sWidthiColumn2,Source={StaticResource MyViewModel},Mode=TwoWay}"/>
        <telerik:GridViewDataColumn IsReadOnly="True"  IsFilterable="False" IsCustomSortingEnabled="False" SortingState="{Binding stdColumn2,Source={StaticResource MyViewModel},Mode=TwoWay}" IsVisible="{Binding bdColumn2,Source={StaticResource MyViewModel},Mode=TwoWay}" DataMemberBinding="{Binding D2}" Width="{Binding sWidthdColumn2,Source={StaticResource MyViewModel},Mode=TwoWay}"/>
        <telerik:GridViewCheckBoxColumn IsReadOnly="{Binding bChkColReadOnly2,Mode=TwoWay}" IsFilterable="False" IsCustomSortingEnabled="False" SortingState="{Binding stchkColumn2,Source={StaticResource MyViewModel},Mode=TwoWay}" IsVisible="{Binding bchkColumn2,Source={StaticResource MyViewModel},Mode=TwoWay}" DataMemberBinding="{Binding CHK2}" Width="{Binding sWidthchkColumn2,Source={StaticResource MyViewModel},Mode=TwoWay}" EditTriggers="CellClick" AutoSelectOnEdit="True"/>
        <telerik:GridViewDataColumn IsReadOnly="True"  IsFilterable="False" IsCustomSortingEnabled="False" SortingState="{Binding stfColumn2,Source={StaticResource MyViewModel},Mode=TwoWay}" IsVisible="{Binding bfColumn2,Source={StaticResource MyViewModel},Mode=TwoWay}" DataMemberBinding="{Binding F2}" Width="{Binding sWidthfColumn2,Source={StaticResource MyViewModel},Mode=TwoWay}" />
         
        <telerik:GridViewDataColumn IsReadOnly="True"  IsFilterable="False" IsCustomSortingEnabled="False" SortingState="{Binding stsColumn3,Source={StaticResource MyViewModel},Mode=TwoWay}" IsVisible="{Binding bsColumn3,Source={StaticResource MyViewModel},Mode=TwoWay}"  DataMemberBinding="{Binding S3}" Width="{Binding sWidthsColumn3,Source={StaticResource MyViewModel},Mode=TwoWay}"/>                                                
        <telerik:GridViewDataColumn IsReadOnly="True"  IsFilterable="False" IsCustomSortingEnabled="False" SortingState="{Binding stiColumn3,Source={StaticResource MyViewModel},Mode=TwoWay}" IsVisible="{Binding biColumn3,Source={StaticResource MyViewModel},Mode=TwoWay}" DataMemberBinding="{Binding I3}" Width="{Binding sWidthiColumn3,Source={StaticResource MyViewModel},Mode=TwoWay}"/>                                                
        <telerik:GridViewDataColumn IsReadOnly="True"  IsFilterable="False" IsCustomSortingEnabled="False" SortingState="{Binding stdColumn3,Source={StaticResource MyViewModel},Mode=TwoWay}" IsVisible="{Binding bdColumn3,Source={StaticResource MyViewModel},Mode=TwoWay}" DataMemberBinding="{Binding D3}" Width="{Binding sWidthdColumn3,Source={StaticResource MyViewModel},Mode=TwoWay}"/>
        <telerik:GridViewCheckBoxColumn IsReadOnly="{Binding bChkColReadOnly3,Mode=TwoWay}"  IsFilterable="False" IsCustomSortingEnabled="False" SortingState="{Binding stchkColumn3,Source={StaticResource MyViewModel},Mode=TwoWay}" IsVisible="{Binding bchkColumn3,Source={StaticResource MyViewModel},Mode=TwoWay}" DataMemberBinding="{Binding CHK3}" Width="{Binding sWidthchkColumn3,Source={StaticResource MyViewModel},Mode=TwoWay}" EditTriggers="CellClick" AutoSelectOnEdit="True"/>                                                
        <telerik:GridViewDataColumn IsReadOnly="True"  IsFilterable="False" IsCustomSortingEnabled="False" SortingState="{Binding stfColumn3,Source={StaticResource MyViewModel},Mode=TwoWay}" IsVisible="{Binding bfColumn3,Source={StaticResource MyViewModel},Mode=TwoWay}" DataMemberBinding="{Binding F3}" Width="{Binding sWidthfColumn3,Source={StaticResource MyViewModel},Mode=TwoWay}"/>            
   </telerik:RadGridView.Columns>            
</telerik:RadGridView>

I load my data from the server database into the utDataSelection class, for me it is used like a table.

If I now make the following, the RadGridView works completly normal.
tab_Data = dcAct.utDataSelections;

If I store it like the following, the problem in the RadGridView occurs.
tab_Data =  from c in dcAct.utDataSelections
            select new utDataSelection { SKey = c.SKey, CHK1 = c.CHK1, CHK2 = c.CHK2, CHK3 = c.CHK3, D1 = c.D1, D2 = c.D2,
                         D3 =   c.D3, F1 = c.F1, F2 = c.F2, F3 = c.F3, I1 = c.I1, I2 = c.I2, I3 = c.I3, S1 = c.S1, S2 = c.S2, S3 = c.S3};

Thanks for your solution with the additional line "tab_Data = tab_Data.ToList()" it works now. Maybe I can help you to find your bug, with my description!

Best Regards Richard Koslik
0
Vlad
Telerik team
answered on 02 Feb 2011, 03:15 PM
Hello,

 This is due to binding to simple IEnumerable. When the grid rebinds itself with such binding you will return completely new instances of the objects in the enumerable - to avoid such problems you should provide at least IList. 

Kind regards,
Vlad
the Telerik team
Let us know about your Windows Phone 7 application built with RadControls and we will help you promote it. Learn more>>
Tags
GridView
Asked by
Jamal Husien
Top achievements
Rank 1
Answers by
Vlad
Telerik team
Jamal Husien
Top achievements
Rank 1
Richard Koslik
Top achievements
Rank 1
Share this question
or