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

cell inline editing functionality

5 Answers 197 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Narendra
Top achievements
Rank 1
Narendra asked on 05 Aug 2010, 10:32 AM
Hi,

How can I control cell inline editing functionality in the gridview.

Is there any property or method which controls the cell inline editing functionality?

Thanks,
-Narendra

5 Answers, 1 is accepted

Sort by
0
Maya
Telerik team
answered on 05 Aug 2010, 12:33 PM
Hi Narendra,

 
Please give us more specifics about your requirements. What exactly is the goal you want to achieve by using cell inline editing functionality ?

Best wishes,
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
0
Maya
Telerik team
answered on 05 Aug 2010, 12:43 PM
Hello Narendra,

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
0
Maya
Telerik team
answered on 10 Aug 2010, 09:35 AM
Hi Narendra,

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. 

Best wishes,
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
Tags
GridView
Asked by
Narendra
Top achievements
Rank 1
Answers by
Maya
Telerik team
Narendra
Top achievements
Rank 1
Share this question
or