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

[Solved] Default Edit Mode for DetailTableView

1 Answer 110 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Jake
Top achievements
Rank 1
Jake asked on 17 Jul 2009, 04:26 PM
How would someone put all items in a DetailTableView into edit mode when the parent is expanded?

I have already viewed the documentation outlining how to put everything into edit mode by default using the PreRender event.  Not only does this put the DetailTableView items in edit mode, but also the MasterTableView (unwanted).  In addition, this causes the paging mechanism to become useless as the first page is always displayed.

In another article, a method of adding the indexes to the EditIndexes collection is covered.  I do not see how you can add the indexes of the DetailTableView items to this collection.

Any help would be greatly appreciated.  The current mechanism which requires users to click an Edit button next to each row and then update is "cumbersome" according to my users.  Providing the ability to edit in batch (updating in batch is covered in one of your articles) would be priceless.

Regards,
Jake

1 Answer, 1 is accepted

Sort by
0
Daniel
Telerik team
answered on 23 Jul 2009, 01:51 PM
Hello Jake,

For convenience of our community I post the code-snippet from your support ticket here.
protected void RadGrid1_ItemCreated(object sender, GridItemEventArgs e) 
    if (e.Item is GridEditableItem && e.Item.OwnerTableView.Name == "DetailTable"
        e.Item.Edit = true

Regards,
Daniel
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
Tags
Grid
Asked by
Jake
Top achievements
Rank 1
Answers by
Daniel
Telerik team
Share this question
or