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

Generic RadGrid

0 Answers 44 Views
Grid
This is a migrated thread and some comments may be shown as answers.
yigal
Top achievements
Rank 1
yigal asked on 26 Jul 2016, 02:34 PM

Hi

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?

 

Thanks,

Eliran

No answers yet. Maybe you can help?

Tags
Grid
Asked by
yigal
Top achievements
Rank 1
Share this question
or