Complex Grid - Custom Combos per row & more

2 posts, 0 answers
  1. Pawz
    Pawz avatar
    51 posts
    Member since:
    Aug 2007

    Posted 19 May 2008 Link to this post

    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,
  2. Georgi
    Admin
    Georgi avatar
    212 posts

    Posted 21 May 2008 Link to this post

    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
  3. UI for WinForms is Visual Studio 2017 Ready
Back to Top