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

[Solved] running RadGrid_InsertCommand

1 Answer 98 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Brett
Top achievements
Rank 1
Brett asked on 23 Apr 2008, 05:14 AM

I have a working user control, with update/insert/cancel buttons on it. I also have a RadTabStrip on the user control too. Then in the RadTabStrip_tabClick event, what I want to do, when a user clicks on a tab in the RadTabStrip is call the RadGird_InsertCommand from the main form. 

What would be the best way to call the RadGrid_InsertCommand from the main form?

Thanks,

Brett

 

1 Answer, 1 is accepted

Sort by
0
Yavor
Telerik team
answered on 29 Apr 2008, 06:44 AM
Hi Brett,

You can basically call the FireCommandEvent, but yet a more straightforward solution would be to put the whole control in insert mode :

.cs
RadGrid1.MasterTableView.IsItemInserted = true;  
RadGrid1.MasterTableView.Rebind(); 

Depending on the particular scenario you may also need to call the Rebind method of the control.
I hope this information helps.

All the best,
Yavor
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
Tags
Grid
Asked by
Brett
Top achievements
Rank 1
Answers by
Yavor
Telerik team
Share this question
or