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

[Solved] RadGrid > Hierarchical > ObjectDataSource > and a twist!

1 Answer 114 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Christopher Tallos
Top achievements
Rank 1
Christopher Tallos asked on 09 Oct 2009, 07:07 PM
25 Days and $999 spent and I'm still no closer to determining if these products were worth the purchase price. 

This article is very close to what I am trying to accomplish, with some exceptions and many of the samples I have looked at are using inline SQL versus ObjectDataSource or even CslaDataSource. 

I have already created a grid, populated it with Company profile data using CslaDataSource.  Then I have a details grid inside the Company profile grid which I populate with Company Address information.  The Company profile information is pretty straightforward  (Name, Description, etc.) nothing which requires another control with databinding. 

The Company Address grid however, needs to have three RadComboxes on Insert and Update which are databound in the form of: (Select Country, country causes a postback passing countryId to a stored proc to select Regions for that country and bind region; Select Region, region causes a postback passing countryId and regionId to get States for the region and country selected and bind States ComboBox.  For the life of me I cannot figure things out like what events to use during insert versus update or vice versa.  This is really becoming a frustrating product to use.   Both tables have an EditFormType=Template, but I'm willing to not go this route if I find a solution on how to implement the ComboBoxes. 

I faithfully followed the follwing video and was able to make it work very well: http://tv.telerik.com/aspnet/radgrid/telerik-trainer-+-radgrid-nested-tables
I read everything under the following location (everything under the hierarchy folder): http://demos.telerik.com/aspnet-ajax/grid/examples/hierarchy/declarativerelations/defaultcs.aspx, unfortunately there's not much there for objectdatasources and nothing for csladatasource.

Something like this using objectDataSource would be very helpful: http://demos.telerik.com/aspnet-ajax/grid/examples/dataediting/threelevel/defaultcs.aspx

Can anyone give me a sample that uses either object datasource or csladatasource with hierarchal grid, using templates and bound controls inside the nested table's edit and inert template?????

 

1 Answer, 1 is accepted

Sort by
0
Accepted
Rosen
Telerik team
answered on 15 Oct 2009, 02:18 PM
Hello Christopher,

I have attached a small sample which demonstrates a possible implementation of the scenario in question. I hope this will point you in the right direction.

Sincerely yours,
Rosen
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Tags
Grid
Asked by
Christopher Tallos
Top achievements
Rank 1
Answers by
Rosen
Telerik team
Share this question
or