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

Display Column With NoTitle/Text

2 Answers 1405 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Patrick
Top achievements
Rank 1
Patrick asked on 01 Aug 2012, 05:45 PM
I need to have a column (the last one) in the grid not have any text displayed. I tried putting the title to an empty string but it did not work. Solutions? Code is below:

function init() {     
$('#dealerDetailsGrid').kendoGrid({         
dataSource: {             
type: "json",             
transport: {                 
read: "GetDealerDetails"             
},             
schema: {                 
data: "data",                 
total: "total"             
},             
pageSize: 10         
},         
sortable: true,         
pageable: true,         
columns: [            
  { field: "Oracle", title: "Oracle #" }, 
{ field: "Dealer" }, { field: "DealerType", title: "Dealer Type" }, 
{ field: "City" }, { field: "State" }, { field: "Status" }, 
{ field: "Remove", title: "" }         
]     
});
}

2 Answers, 1 is accepted

Sort by
0
Aaron
Top achievements
Rank 1
answered on 11 May 2017, 08:05 PM

What worked for me was to change "" to be " ", so in your case:

{ field: "Remove", title: " " }

0
Preslav
Telerik team
answered on 15 May 2017, 12:26 PM
Hi Aaron,

Another possible solution is using the non-breaking space HTML character: " "

For example:

{ field: "Remove", title: " "  }

Regards,
Preslav
Telerik by Progress
Try our brand new, jQuery-free Angular 2 components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
Tags
Grid
Asked by
Patrick
Top achievements
Rank 1
Answers by
Aaron
Top achievements
Rank 1
Preslav
Telerik team
Share this question
or