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

Conditional Load of Child Grid Template

1 Answer 94 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Barry
Top achievements
Rank 1
Barry asked on 22 Sep 2010, 10:24 AM
Hi 

Suppose I have a Grid with the following columns:

  • CustomerCode
  • AccountNumber
  • AccountDescription
  • Balances

And suppose I have a Child Grid which contains the following columns

  • CustomerCode
  • AccountNumber
  • Amount
  • ReferenceNumber

The realtionship between the grids is by AccountNumber

An example of the Main Grid data would be:

123456 12345600 Savings 1000.00
123456 12345601 Fixed 5000.00
123456 12345600 Transactions 2000.00


I am dealing with a large amount of data and so I only what to populate the Child Grid where the AccountTypeDescription has a value of "Transactions"  At the moment the Child Grid is loading the transactions 3 times which I don't need.  It only needs to populate for the "Transactions" row.

Is it possible to do this?

I am using Telerik WinForms Rad Controls Q2 2009

Thanks

1 Answer, 1 is accepted

Sort by
0
Accepted
Julian Benkov
Telerik team
answered on 28 Sep 2010, 11:03 AM
Hi Barry,

This depends on the object used for data binding. In case your scenario concerns a typed DataSet, you can change the TableAdapter query to filter the data before binding the GridViewTemplate. Please review the attached screenshot.

Greetings,

Julian Benkov
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
GridView
Asked by
Barry
Top achievements
Rank 1
Answers by
Julian Benkov
Telerik team
Share this question
or