RadGrid EditingElement q1 2008

2 posts, 0 answers
  1. JOSE MANUEL PÉREZ RAMÍREZ
    JOSE MANUEL PÉREZ RAMÍREZ avatar
    22 posts
    Member since:
    Jan 2008

    Posted 05 May 2008 Link to this post

    When user is editing a cell and press a button, to make some task in underlaying object then the objectdatasource don't have the changes.
    In Q3 2007 i use :

    if (radGridView1.EditingElement != null)

    radGridView1.EditingElement.SaveValue();

    In Q1 2008 no exists and my objects don't implement iNotifyProperty ( like..this).
    when user click we need new value in object.
    thanks


  2. Dimitar Kapitanov
    Admin
    Dimitar Kapitanov avatar
    632 posts

    Posted 07 May 2008 Link to this post

    Hi JOSE MANUEL PÉREZ RAMÍREZ,

    Thank you for writing.

    We believe we know where the issue is - currently all internal logic inside the RagGridView depends on a centralized-managed context instance. This is why you can save values from the grid view, not from its editing element, as the RadGridView is aware which is the active editor and its dependent state.

    Thus instead of using the code:

    if (radGridView1.EditingElement != null)
         
    radGridView1.EditingElement.SaveValue();

    you can simply use:

    (radGridView1 as IEditorHandler).SaveValue();


    I hope this helps. If you have further questions, please contact me.

    Best wishes,
    Dimitar Kapitanov
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
  3. UI for WinForms is Visual Studio 2017 Ready
Back to Top