cell inline editing functionality

6 posts, 0 answers
  1. Narendra
    Narendra avatar
    25 posts
    Member since:
    Jul 2010

    Posted 05 Aug 2010 Link to this post

    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

  2. Maya
    Admin
    Maya avatar
    4062 posts

    Posted 05 Aug 2010 Link to this post

    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
  3. UI for WPF is Visual Studio 2017 Ready
  4. Narendra
    Narendra avatar
    25 posts
    Member since:
    Jul 2010

    Posted 05 Aug 2010 Link to this post

    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
  5. Maya
    Admin
    Maya avatar
    4062 posts

    Posted 05 Aug 2010 Link to this post

    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
  6. Narendra
    Narendra avatar
    25 posts
    Member since:
    Jul 2010

    Posted 09 Aug 2010 Link to this post

    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
  7. Maya
    Admin
    Maya avatar
    4062 posts

    Posted 10 Aug 2010 Link to this post

    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
Back to Top
UI for WPF is Visual Studio 2017 Ready