Generic RadGrid

1 posts, 0 answers
  1. yigal
    yigal avatar
    4 posts
    Member since:
    Dec 2013

    Posted 26 Jul 2016 Link to this post


    We use RadGrid as a single Grid for many tables.

    We bind the radGrid at runtime at the OnInit event, and showing the values is not an issue, it works fine.

    We have for example table of Users with some columns such as: Name, ID, Phone number and UserType, this UserType column holds a foreign key number in DB, but those keys represent text from another table, let's say "UserTypeTable".

    The grid should show the text - so we bind the grid with a view, and it works great.

    The problem starts when we need to allow to edit, then we should know whether it's a "Normal" field or "ForeignKey" field and if it's ForeignKey field, it should be a combobox with relevant values.

    Same about filters, for normal fields the filter is normal, but for ForeignKey fields, the filter should be combobox.

    All this should be dynamically and work at runtime.

    Is it possible at all?




Back to Top