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

ObjectDataSources and RadGrid Hierarchy

2 Answers 69 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Phil
Top achievements
Rank 2
Phil asked on 26 Aug 2008, 06:47 PM
Can one direct me to samples using ObjectDataSources and RadGrid Hierarchy with full editing ablity.

2 Answers, 1 is accepted

Sort by
0
Accepted
Princy
Top achievements
Rank 2
answered on 27 Aug 2008, 10:24 AM
Hi Phil,

I found the following code library submissions related to Insert/Update/Delete operations in RadGrid. Go through the links and see if it helps to some extent.

Automatic operations with ObjectDataSource control
Automatic operations in hierarchical grid with SqlDataSource control

Thanks
Princy.
0
Phil
Top achievements
Rank 2
answered on 29 Aug 2008, 03:29 PM

Hi All:

Thanks Princy ... none of the examples were a direct solution.

I was finally able to get a simple master page converted to a master/detail.  I moved the MasterTableView stuff to DetailTables/GridTableView section and had to work through a few strange problems.  I do have some code behind, where in the grid UpdateCommand I find a control and place in a temp var and in the ODS updating, place the temp var value in my class.  I have a working edit in the Detail rows (nothing in the master).

grid UpdateCommand:

DropDownList _tabDD = (DropDownList)e.Item.FindControl("TabDropDown");  
if (_tabDD != null && _tabDD.SelectedIndex > -1)  
    _tabId = _tabDD.SelectedValue; 

ODS Updating:

MyClass.MyClass _mc = (MyClass.MyClass)e.InputParameters["myClass"];  
if( _mc != null )  
    _mc.TabId = _tabId;  
 
Tags
Grid
Asked by
Phil
Top achievements
Rank 2
Answers by
Princy
Top achievements
Rank 2
Phil
Top achievements
Rank 2
Share this question
or