javascript - Create dynamic column Kendo Grid -
I am trying to create a dynamic column of kando grid using javascript. Now I can dynamically generate columns. But every time I give an error like this
Here is the code I used
function createDetailsGrid () {gridDetails = $ ("# gridDetails"); remove gridDetails.children (). GridDetails.kendoGrid ({Columns: [], Data Source: []}) // var column from Cheema = []; //columnSchema.push ({title: 'one', field: 'one', width: '100px'}); //columnSchema.push ({title: 'two', field: 'two', width: '100px'}); Var DataSourceTent = GetCustomers (); Var len = dataSourceContent.model.length; Var columnSama = []; Var data source = []; (Var i = 0; i & lt; len; i ++) {columnSchema.push ({title: String (dataSourceContent.model [i] columnname), field: string (datasource resource. Model [i] .columnName) Width: '100px'}); } // (var i = 0; i & lt; len; i ++) {// dataSourceSchema.push ({columnSchema [i] .field: 10, smv: 2.3, tot_target: 23}); //} gridDetails.kendoGrid ({// .. other properties .. Columns: Columns, Data Databases: [], Pages Qualified: True, Sortable: True // editable: true,}); and the like
Is there anything left here?
Thanks
If you can not escape '\' with this one error Throws.
You need to avoid the '#' mentioned in your HTML template below:
& lt; a href = "\\ # Dashboard" & gt; Dashboard & lt; / A & gt;
Comments
Post a Comment