5 Answers, 1 is accepted
0
Hi Narendra,
Maya
the Telerik team
Please give us more specifics about your requirements. What exactly is the goal you want to achieve by using cell inline editing functionality ?
Maya
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
Narendra
Top achievements
Rank 1
answered on 05 Aug 2010, 12:37 PM
Hi Maya,
The requirement is, i want to allow/deny inline editing for the cells in the gridview based on some condition.
Is there any specific property to deal with.
Thanks,
-Narendra
The requirement is, i want to allow/deny inline editing for the cells in the gridview based on some condition.
Is there any specific property to deal with.
Thanks,
-Narendra
0
Hello Narendra,
All the best,
Maya
the Telerik team
You can use the BeginningEdit event of the grid and cancel it when necessary.
private void playersGrid_BeginningEdit(object sender, GridViewBeginningEditRoutedEventArgs e)
{
if(myCondition)
{
e.Cancel = true;
}
}
All the best,
Maya
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
Narendra
Top achievements
Rank 1
answered on 09 Aug 2010, 01:34 PM
Hi Maya,
Thanks for the response.
Is there any property at cell level to control inline edit functionality, instead writing an event handler
Thanks,
-Narendra
Thanks for the response.
Is there any property at cell level to control inline edit functionality, instead writing an event handler
Thanks,
-Narendra
0
Hi Narendra,
Maya
the Telerik team
For the time being there is no property responsible for enabling/disabling editing of the cell. In case using BeginningEdit event is not appropriate for you project, you may use the technique shown in our demos for creating DataTemplateSelectors. Thus you may apply different - in your case ReadOnly - templates depending on the data in the cell.
Maya
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