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

[Solved] editing RadGridView data using toolbar buttons

1 Answer 173 Views
GridView
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
reema
Top achievements
Rank 1
reema asked on 28 Mar 2009, 11:41 AM

hi,


In my application I have a toolbar  and a  gridview , the toolbar contains 3 buttons :

1.Add new row

2.delete

3.save all

Is it possible to call “radGridView1.AddingNewDataItem event handler” by clicking on add new row (cause by trying I found that pressing  “insert” is  a must)?

another thing is how to save data to database only if the user click “save all” and in that case how to check if he inserted all required fields.  


sample code Plz.....

T&R

1 Answer, 1 is accepted

Sort by
0
Stefan Dobrev
Telerik team
answered on 30 Mar 2009, 10:22 AM
Hello reema,

Currently the only way to show the "Add New Item" UI is to use this code in your toolbar button event handler:
this.radGridView1.ChildrenOfType<GridViewNewRow>().First().BeginEdit(); 
We will provide simpler API for the service pack release.

Regarding your other questions you can check our online examples for data updating here and for validation here.

Hope this helps.

Greetings,
Stefan Dobrev
the Telerik team

Check out Telerik Trainer , the state of the art learning tool for Telerik products.
Tags
GridView
Asked by
reema
Top achievements
Rank 1
Answers by
Stefan Dobrev
Telerik team
Share this question
or