Hi Telerik,
First off I would like to say I just love this control. I asked about this type of control in Q1 2010 and you brougth it soon after. Thanks.
I now have a task of displaying a dynamic number of columns (booleans), so I can't simply create a view object on which to bind. What is the best approach to achieve this? Is it possible to do this using a datatable as source, and in code behind add the needed columns?
Also, is it possible to define one or more columns as fixed (not autogenerated) and let the rest dynamic columns be autogenerated?
Here's a simple overview of the "problem":
Order | Customer | Supplier | Parameter1 | Parameter2 | ... | ParameterX
1 c1 s1 Y N Y N
2 c1 s1 N Y Y Y
2a c2 s2 Y Y Y Y
The problem is that the number of parameters (and their names) is not available until retrieving this from the datasource, hence I need to create the parameter columns dynamically.
Important to note though is that the number of parameters will be the same for all orders in the data retrieved.
Any advice would be appriciated!
Best regards,
Kasper Schou
First off I would like to say I just love this control. I asked about this type of control in Q1 2010 and you brougth it soon after. Thanks.
I now have a task of displaying a dynamic number of columns (booleans), so I can't simply create a view object on which to bind. What is the best approach to achieve this? Is it possible to do this using a datatable as source, and in code behind add the needed columns?
Also, is it possible to define one or more columns as fixed (not autogenerated) and let the rest dynamic columns be autogenerated?
Here's a simple overview of the "problem":
Order | Customer | Supplier | Parameter1 | Parameter2 | ... | ParameterX
1 c1 s1 Y N Y N
2 c1 s1 N Y Y Y
2a c2 s2 Y Y Y Y
The problem is that the number of parameters (and their names) is not available until retrieving this from the datasource, hence I need to create the parameter columns dynamically.
Important to note though is that the number of parameters will be the same for all orders in the data retrieved.
Any advice would be appriciated!
Best regards,
Kasper Schou