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

[Solved] Dynamic Columns of Infinity

1 Answer 80 Views
Grid
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Shrinath
Top achievements
Rank 1
Shrinath asked on 25 Jan 2012, 05:46 PM
If I have a object of the following:

public class FormResult {
    public string Name { get; set; }
    public string Description { get; set; }
    public string Data { get; set; }
}

Name and Description are simple values but Data is a json string which can have X amount of columns. For example:
{ "some column name" : "some column data", "some column name" : "some column data" }

So an example of the object could be:
Name: Insurance
Description: Insurance Information
Data: { "type" : "none", "co-pay": "20", "exceptions" : "1,2,3" }

I was wondering if telerik can accept this Data object and be able to create the necessary columns and list the values with the proper columns. So the resulting sortable telerik grid would be:

Name | Description | Type | Co-Pay | Exceptions |
Insurance| Insu Info| none | 20         | 1,2,3

If I can't use json, then is there something else that Telerik would accept?

1 Answer, 1 is accepted

Sort by
0
Daniel
Telerik team
answered on 26 Jan 2012, 03:41 PM
Hello Shrinath,

Setting the columns on the client is not supported. The Grid columns should be defined on the server.


Greetings,
Daniel
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the Telerik Extensions for ASP.MET MVC, subscribe to their blog feed now
Tags
Grid
Asked by
Shrinath
Top achievements
Rank 1
Answers by
Daniel
Telerik team
Share this question
or