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

ReadOnly Cell and GridViewCell.PreviewEditStartEvent

3 Answers 49 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Mike Cohen
Top achievements
Rank 1
Mike Cohen asked on 18 Jan 2010, 05:34 PM
I'm using RadGridView and need to prevent editing for some cells not at the column level, but based on the row and column.

I've tried using ReadOnly Cell and GridViewCell.PreviewEditStartEvent as described here:

It appears in the version I am using the PreviewEditStartEvent does not exist. Am I missing something? Was this removed?

I have version 2009.3.1208.35.

Thanks,
Mike

3 Answers, 1 is accepted

Sort by
0
Nedyalko Nikolov
Telerik team
answered on 19 Jan 2010, 10:30 AM
Hi Mike Cohen,

Indeed GridViewCell.PreviewEditStartEvent event was removed with the 2009.Q2 release. You can use RadGridView.BeginningEdit event as described in our online help. Let me know if this does not help.

Sincerely yours,
Nedyalko Nikolov
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.
0
Mike Cohen
Top achievements
Rank 1
answered on 19 Jan 2010, 02:18 PM
Thanks for the response.

This raises a serious concern. Why would this event have been removed as opposed to made obsolete? If I upgrade to a newer version of your control suite, am I guaranteed no build related problems and clear documentation on obsoleted elements?

Also, might I suggest that you post an update to the thread I mentioned above? This would be immensely helpful to those reading that thread and bumping into the same issue I did.
0
Nedyalko Nikolov
Telerik team
answered on 22 Jan 2010, 09:56 AM
Hello Mike Cohen,

Our practice with such events and properties that we've found as unusable is to mark them as obsolete. With the official (major) release the properties which are marked as obsolete with-in the previous release are deleted. This gives our customers at least one quarter to solve the obsolete warnings. Unfortunately for some of these properties we cannot provide longer (more than a quarter) support, or like in this case we had made a breaking change.

To be more specific this "PreviewEditStartEvent" was raised by every GridViewCell object, which is not very useful. First of all it is not so easy to hook on this event and on the other hand causes a massive memory leak. Another issue about this event is that "Preview" events are available only for WPF, and are not supported by the Silverlight framework. When we migrated RadGridView to common code base which supports both platforms (WPF and Silverlight) we've replaced this event with the more comfortable RadGridView.BeginningEdit event.

Once again I’m sorry for the inconvenience caused.

P.S. I'll update the referenced forum thread accordingly.

All the best,
Nedyalko Nikolov
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.
Tags
GridView
Asked by
Mike Cohen
Top achievements
Rank 1
Answers by
Nedyalko Nikolov
Telerik team
Mike Cohen
Top achievements
Rank 1
Share this question
or