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

RowEditEnded Event not working

6 Answers 112 Views
GridView
This is a migrated thread and some comments may be shown as answers.
gjm
Top achievements
Rank 1
gjm asked on 21 Jul 2010, 06:55 PM

I am creating a RadGridView at runtime. This is then added to a pannel. In the Radgrid view I have a column that has checkboxes.
I am using the RowEditEnded event of the gridview to go through all the rows in the gridview and set the checkbox column.
I am facing a weired issue when the grid is loaded the first time and when I uncheck or check the checkbox 
the following code equates to true

 

((

 

 

RadGridView)sender).CurrentCell == null

 

 

 

 

 

and throws an exception. But if I sort the grid before editing the row it works.

PS: I have upgraded all my controls to Q2-2010
Thanks,
Gopi
  

 

 

6 Answers, 1 is accepted

Sort by
0
Milan
Telerik team
answered on 22 Jul 2010, 11:08 AM
Hello Gopi Menon,

We will take a look at this exception but I am curious as to why you need to access the CurrentCell to apply the required changes?


Kind regards,
Milan
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
gjm
Top achievements
Rank 1
answered on 22 Jul 2010, 06:08 PM
Hi Milan:

I am experiencing a weird problem now. When I double click on an row in the radgrid view, some of the rows disappear.
I am getting the following error on the output window. I am creating the Radgridview programmatically and adding it to a RadPanel and then adding it to a Tab control, all programmatically.

System.Windows.Data Error: Failed to connect to index '0' in object 'System.Collections.ObjectModel.ReadOnlyObservableCollection`1[System.Windows.Controls.ValidationError]' (type 'System.Collections.ObjectModel.ReadOnlyObservableCollection`1[System.Windows.Controls.ValidationError]'). BindingExpression: Path='(Validation.Errors)[0].ErrorContent' DataItem='System.Windows.Controls.CheckBox Content: IsChecked:False' (HashCode=61304121); target element is 'Telerik.Windows.Controls.Chromes.ValidationTooltip' (Name='ValidationTooltip'); target property is 'TooltipContent' (type 'System.Object').

0
Milan
Telerik team
answered on 22 Jul 2010, 07:52 PM
Hello Gopi Menon,

This problem is now resolved and the fix is included in our latest Internal Build. Upgrading to the latest build should resolve the problem.


Regards,
Milan
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
Adam
Top achievements
Rank 1
answered on 22 Jul 2010, 09:37 PM
Hi

I have installed the latest build and I am still facing the same issue. My rows from the grid disappears when i double clik on it.

Thanks,
Gopi
0
gjm
Top achievements
Rank 1
answered on 22 Jul 2010, 10:21 PM
Posting from my email account.
Hi

I have installed the latest build and I am still facing the same issue. My rows from the grid disappears when i double clik on it.

Thanks,
Gopi
0
gjm
Top achievements
Rank 1
answered on 23 Jul 2010, 02:57 AM
I fixed the issue.
Please ignore this post.
Tags
GridView
Asked by
gjm
Top achievements
Rank 1
Answers by
Milan
Telerik team
gjm
Top achievements
Rank 1
Adam
Top achievements
Rank 1
Share this question
or