i have drop down list in grid popup editor. It works ok for update. But when i click on Add new record it gives me error "TypeError:language is null. Error is returned due to template applied in Grid Columns to show value in grid. I want to use condition some thing like tha
t
But it gives me error.
Please help me to solve this issue
columns: [
{ field: "contactId",title: "ContactId", hidden: true },
{ field: "businessName", title: "Business Name", width: 200 },
{ field: "firstName", title: "Contact Title", width: 200 },
{ field: "lastName", title: "Last Name", hidden: true },
{ field: "language", title: "Language", width: 100, editor: langDropDownEditor,template: "#if(language!=null){=language.value}#"},
{ field: "country", title: "Country", width: "100px", editor: countryDropDownEditor },
{ field: "address", title: "Address", hidden: true },
{ field: "city", title: "City", width: 100 },
{ field: "gsm", title:"GSM",hidden: true },
{ field: "email",title:"Email", hidden: true },
{ field: "isActive",title:"Active", hidden: true },
{ command: ["edit", "destroy"], title: " ", width: "160px" },
],
But it gives me error.
Please help me to solve this issue