Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
2745
igGrid dynamic columns based on model
posted

This is going to be hard to conceptualize so bear with me.

I have a model that contains some static customer data.  Within this model, there are a list of priorities that need to be represented in a grid so mass maintenance can be applied to wide range of customers at once.  Here's the model object:

int CustomerId (readonly)
string AccountNumber (readonly)
string AccountName (readonly)
string[] Priorities

The grid will be represented as follows:

CustomerId | AccountNumber | AccountName | Priority 1 | Priority 2 | Priority 3 | Priority N...

We want to be able to change the priorities on a mass level so our employees don't have to manage each record one at a time.

Question:  How can I PIVOT the property 'Priorities', so it can be represented as a dynamic column in an igGrid?  The number of columns = the max count of priorities in the collection of models.  Also the index of the priority in the property represents the column it belongs too.

I am very open to alternate suggestions and designs.  How can I better represent this action?

Parents Reply Children
No Data