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

[Solved] Q2 behavior change in datagrid

1 Answer 101 Views
GridView
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
jbaird
Top achievements
Rank 1
jbaird asked on 09 Jul 2009, 01:46 PM

We have installed the Q2 updates and have noticed some querky behavior.  The code below worked just fine (the items.count = 3):

 

foreach (ComplexAccountPeriodDataObject c in this.grdAccountPeriods.Items)

{

    c.AutoCloseDays = (int)e.NewValue;

}

this.grdAccountPeriods.Rebind();

After the update, the above code no longer worked.  The items.count on the grid was 0.  The only way I could figure out how to do it was with the code below:
 

foreach (Record r in this.grdAccountPeriods.Records)

{

    ((ComplexAccountPeriodDataObject)((Telerik.Windows.Data.DataRecord)r).Data).AutoCloseDays = (int)e.NewValue;

    }


However, since Record is marked as deprecated, I'm leery to use that way.  How can we accomplish this task?

1 Answer, 1 is accepted

Sort by
0
Vlad
Telerik team
answered on 10 Jul 2009, 11:28 AM
Hi jbaird,

Unfortunately you are right! This will be fixed for our SP1 (after two weeks) and in the meantime please use directly ItemsSource instead.

Sincerely yours,
Vlad
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
Tags
GridView
Asked by
jbaird
Top achievements
Rank 1
Answers by
Vlad
Telerik team
Share this question
or