I have a situation where I have a collection of parent objects named "contact" bound to the radgrid. That contact object has a child object called "products". It's a one to many relationship from contact to products (one contact has many products, but will be limited to around 10 products per contact).
So I'm basically rolling up the description of the product collection into one string for display purposes in the last column of the grid, but I'm also keeping them as separate properties in the products object for updating and adding records to it.
So it's displayed like this in the grid:
contact name contact address contact phone products covered
---------------------------------------------------------------------------------------------------
Bob Jones 123 oak st. 123-123-1234 loans, accounts, sales
But it's standard object in code.
class products
{
int contactid;
int productid;
string description;
}
When I go into edit mode I would like to be able to have checkboxes for each product type description so I can select or deselect them for each contact before saving them. I followed an example I found to edit child objects in a radgrid and it ends up just giving me a single textbox with a comma separated list of products exactly how they are listed in the grid. I need to be able to have checkboxes for each product item in the edit popup box. Is there a way to do this? I've had no luck finding an example.
So I'm basically rolling up the description of the product collection into one string for display purposes in the last column of the grid, but I'm also keeping them as separate properties in the products object for updating and adding records to it.
So it's displayed like this in the grid:
contact name contact address contact phone products covered
---------------------------------------------------------------------------------------------------
Bob Jones 123 oak st. 123-123-1234 loans, accounts, sales
But it's standard object in code.
class products
{
int contactid;
int productid;
string description;
}
When I go into edit mode I would like to be able to have checkboxes for each product type description so I can select or deselect them for each contact before saving them. I followed an example I found to edit child objects in a radgrid and it ends up just giving me a single textbox with a comma separated list of products exactly how they are listed in the grid. I need to be able to have checkboxes for each product item in the edit popup box. Is there a way to do this? I've had no luck finding an example.