Heirarchal data binding tips?


Author
Message
Wil Cantrell
Wil Cantrell
StrataFrame Beginner (27 reputation)StrataFrame Beginner (27 reputation)StrataFrame Beginner (27 reputation)StrataFrame Beginner (27 reputation)StrataFrame Beginner (27 reputation)StrataFrame Beginner (27 reputation)StrataFrame Beginner (27 reputation)StrataFrame Beginner (27 reputation)StrataFrame Beginner (27 reputation)
Group: Forum Members
Posts: 23, Visits: 129
Anyone have any tips on binding simple hierarchal business objects to an Infragistics grid?

I'm positive I have the ParentRelationship properties set for the objects and have instances on my form. Also included is a BusinessBindingSource instance pointing to the top level business object. And the binding source is bound to the grid.

Should the grid pick up on the nested data simply through binding? Or do I need to go ahead and extract the tables, set relationships and bind that way? The data is mostly for presentation so this is ok. I was hoping there was a more elegant solution?

____________________
Programmer/Analyst
Captain D's, LLC

Trent Taylor
Trent Taylor
StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)
Group: StrataFrame Developers
Posts: 6.6K, Visits: 6.9K
The grid will respect the filter of the business object.  So if you have a relationship setup between the two business objects, and you use the ChildAutoFilterOption property of the parent BO, then the filter will be automatically applied.  This filter does, however, expect the records to already be within the BO.  So at this point you have have already called the FillByParentPrimeryKey or something to that effect and already have the proper child records.

But in short, the grid will respect the filter of the BO if you are using the BusinessBindingSource control to wrap the BO.

Wil Cantrell
Wil Cantrell
StrataFrame Beginner (27 reputation)StrataFrame Beginner (27 reputation)StrataFrame Beginner (27 reputation)StrataFrame Beginner (27 reputation)StrataFrame Beginner (27 reputation)StrataFrame Beginner (27 reputation)StrataFrame Beginner (27 reputation)StrataFrame Beginner (27 reputation)StrataFrame Beginner (27 reputation)
Group: Forum Members
Posts: 23, Visits: 129
Ah. Interesting. Thanks!

____________________
Programmer/Analyst
Captain D's, LLC

Trent Taylor
Trent Taylor
StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)
Group: StrataFrame Developers
Posts: 6.6K, Visits: 6.9K
Sure. Smile
Wil Cantrell
Wil Cantrell
StrataFrame Beginner (27 reputation)StrataFrame Beginner (27 reputation)StrataFrame Beginner (27 reputation)StrataFrame Beginner (27 reputation)StrataFrame Beginner (27 reputation)StrataFrame Beginner (27 reputation)StrataFrame Beginner (27 reputation)StrataFrame Beginner (27 reputation)StrataFrame Beginner (27 reputation)
Group: Forum Members
Posts: 23, Visits: 129
Hmm. This still doesn't seem to do the trick for me. Any more insight? Also, would the grid show more bands if I have this correctly wired up in design mode?

Thanks

____________________
Programmer/Analyst
Captain D's, LLC

Trent Taylor
Trent Taylor
StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)
Group: StrataFrame Developers
Posts: 6.6K, Visits: 6.9K
Are you trying to use two different BOs in the same grid?  In this case I would have to play with the specific grid you are trying to use before I could give you any type of answer.
Michael Reese
Michael Reese
StrataFrame User (403 reputation)StrataFrame User (403 reputation)StrataFrame User (403 reputation)StrataFrame User (403 reputation)StrataFrame User (403 reputation)StrataFrame User (403 reputation)StrataFrame User (403 reputation)StrataFrame User (403 reputation)StrataFrame User (403 reputation)
Group: StrataFrame Users
Posts: 235, Visits: 1.6K
Can I dove tail off this thread and say that I am attempting to do the same thing. Have a hierarchal view or mutiple bands display. One for Parent and the other for the child utilizing ultragrid.

Thanks guys

Tony Katona
Tony Katona
StrataFrame Beginner (6 reputation)StrataFrame Beginner (6 reputation)StrataFrame Beginner (6 reputation)StrataFrame Beginner (6 reputation)StrataFrame Beginner (6 reputation)StrataFrame Beginner (6 reputation)StrataFrame Beginner (6 reputation)StrataFrame Beginner (6 reputation)StrataFrame Beginner (6 reputation)
Group: Forum Members
Posts: 6, Visits: 13
Trent...

"This filter does, however, expect the records to already be within the BO.  So at this point you have have already called the FillByParentPrimeryKey or something to that effect and already have the proper child records."

Does that mean we can't employ 'lazy-loading' ?

Or, am I just dreaming:

A) navigator of Customers (treeview, listbox, combobox);

B) grid of lazy-loaded Orders based on selected Customer;

c) nested grid of lazy-loaded Items based on selection (click the "+") of an Order.

Trent Taylor
Trent Taylor
StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)
Group: StrataFrame Developers
Posts: 6.6K, Visits: 6.9K
You can definitely "lazy-load" and we do this all of the time.  The quote you used was directed specifiy to someone trying to load grids and bands within grids.  We plan to release a sample shortly after the release showing how to create children bands within the Infragistics Ultragrid using the SF BOs.

As for lazy-loading, we use this all of the time by loading child records in through the parents Navigated event.  There are a number of samples that show this including the AdvancedListView sample and the CRM sample.

Tony Katona
Tony Katona
StrataFrame Beginner (6 reputation)StrataFrame Beginner (6 reputation)StrataFrame Beginner (6 reputation)StrataFrame Beginner (6 reputation)StrataFrame Beginner (6 reputation)StrataFrame Beginner (6 reputation)StrataFrame Beginner (6 reputation)StrataFrame Beginner (6 reputation)StrataFrame Beginner (6 reputation)
Group: Forum Members
Posts: 6, Visits: 13
OK!

Being brand new to SF, and having gone thru most of the tutorial in 2 days, I'm just getting some handle on SF. Of course my "dream" question is a small part of the impending GUI 'wars' here ! But, still, I want to prototype my ideas; they have to be better than the - to be polite - "menu mania" that I've been hired to rewrite.

GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Similar Topics

Reading This Topic

Login

Explore
Messages
Mentions
Search