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

Complex Grid - Custom Combos per row & more

1 Answer 39 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Pawz
Top achievements
Rank 1
Pawz asked on 20 May 2008, 01:58 AM
Hi,

I've got a bit of a problem I'm thinking the rad grid might be able to help out with, but I'm really not sure how to tackle this at all.

I've got a UI that has 10 fields on it, each one is a combo box. They are all linked to an underlying business object, and changing one will repopulate all the others down the line with information based on the selection.

What I'm wondering is - how can I implement this with the Rad Grid? Each row is a business object, with each combo being linked to a property on that object, and each property, when updated, also updates the list of the subsequent properties.

Second to this, I want to be able to add a grouping to the grid - I want to have a field linked to that group, so that if the user adds a new record in the grid under a group, the group field is also filled in.


How would I start figuring out how to do this?

thanks,

1 Answer, 1 is accepted

Sort by
0
Georgi
Telerik team
answered on 21 May 2008, 01:50 PM
Hi Pawz,

Although the data binding mechanism of the RadGridView may not fully support arbitrary business objects, I think your case is possible to be implemented by this control. In fact, your scenario looks very similar to one that has been already been discussed in this forum post and where the EditorRequired event is used as solution.

Please try this approach and tell us if this works for you.

Currently, we do not support adding rows for any group level, this feature is only applied in hierarchy mode. You may use the DefaultValueNeeded event to initialize a new row with the preferred group field value:

void gridView_DefaultValuesNeeded(object sender, GridViewRowEventArgs e)  
{  
    e.Row.Cells["GroupField"].Value = Preferred your grouping value....  

I hope this helps. If you have any further questions, please contact me.

Greetings,
Georgi
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
Tags
GridView
Asked by
Pawz
Top achievements
Rank 1
Answers by
Georgi
Telerik team
Share this question
or