Quantcast
Channel: Telerik Forums RSS
Viewing all articles
Browse latest Browse all 94857

Binding KendoUI Grid to Dynamic Column and Values

$
0
0

I also have a dynamic grid populated from a CSV file and using the header row as the column title and field name.

My solution was to just wrap the fieldname with "["  "]" which allowed the user to use anything for the column titles.

 I'm now here trying to get my date format handling working! :)

 Rob

functiongenerateColumnsImport(fieldnamedetail) {
                       varcolumns = [];
                       for(vari = 0, l = fieldnamedetail.length; i < l; i++) {
                           varfieldname = fieldnamedetail[i];
                              column = {
                                field: "['"+ fieldname + "']",
                                title: fieldname
                            };
                            columns.push(column);
                       }
                       returncolumns;
                   }

Viewing all articles
Browse latest Browse all 94857

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>