Hi
I am binding columns dynamcially in jquery without template column header spacing working file becuase i have added "[ ]" this symbol.
but when try to add anchor tag link with onclick method then i am getting issue.
i have attached file java script error please provide some solutions.
Hello Sreenath,
The field names that the Grid columns are bound to should not contain any spaces in order for the components to work as expected. I would recommend updating the Model on the server-side and removing the spaces or replacing them with underscore.
Regards,
Viktor Tachev
Progress Telerik
Hi Viktor
so if we have spaces in column name fileds then we can't create template for that filed in kendo grid.
Note : Provide me some solution how to come out this problem.please give me answer it possbile or not.becuase click on that hyper link i need to read particluar clicked row data and i need to pass this infromation to another page or etc..
Hi viktor Tachev,
my Question is in template render filed Name will contains spaces getting above issue.for exmple please find below Code
Note: File Name="Student Id";
var GridTitleArray[i]="Student Id";
GridColumnGeneration.push({
title: "Student",
field: "[\"" + GridTitleArray[i] + "\"]",
template: "<a href='\\\\#' style='text-decoration:underline' class='link' onclick='studentProfile(\"#=[StudentId]\#\")' \"> #=[Student Id]#</a>",
headerAttributes: { class: "header_text" }, attributes: { class: className }
});