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

RadGrid EditingElement q1 2008

1 Answer 34 Views
GridView
This is a migrated thread and some comments may be shown as answers.
JOSE MANUEL PÉREZ RAMÍREZ
Top achievements
Rank 1
JOSE MANUEL PÉREZ RAMÍREZ asked on 05 May 2008, 11:06 AM
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


1 Answer, 1 is accepted

Sort by
0
Dimitar Kapitanov
Telerik team
answered on 07 May 2008, 08:20 AM
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
Tags
GridView
Asked by
JOSE MANUEL PÉREZ RAMÍREZ
Top achievements
Rank 1
Answers by
Dimitar Kapitanov
Telerik team
Share this question
or