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

Free Text column value with Kendo Grid Column

3 Answers 310 Views
Integration with other JS libraries
This is a migrated thread and some comments may be shown as answers.
Hitesh
Top achievements
Rank 1
Hitesh asked on 28 Aug 2015, 02:37 PM

Hi 

(1) We need to show free text column value in Grid column, it might contain spaces, carriage return kind of text also  to show in the grid column.

         Any default support for it.

(2) Is there any way that we can fix row hight for the grid giving some fix size.

 

Regards,

Hitesh Taneja

3 Answers, 1 is accepted

Sort by
0
Boyan Dimitrov
Telerik team
answered on 01 Sep 2015, 11:29 AM

Hello Hitesh,

Straight to your questions: 

    1. There is a restriction only that columns.field should  be a valid Javascript identifier and should contain no spaces, no special characters, and the first character should be a letter.

     2. There is a style applied to the td elements  (using the .k-grid td selector) with line-height: 1.6em; If you use higher specificity you can apply your own line height value in order to override the default one. 

 

Regards,
Boyan Dimitrov
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
0
Luke
Top achievements
Rank 1
answered on 08 Mar 2016, 09:19 PM

[quote]1. There is a restriction only that columns.field should  be a valid Javascript identifier and should contain no spaces, no special characters, and the first character should be a letter.[/quote]

 

Is there a work around to allow carriage returns in the text fields? Thanks.

0
Boyan Dimitrov
Telerik team
answered on 10 Mar 2016, 01:57 PM

Hello Luke,

 

There is a workaround that allows users to have special characters in the column.field, but it partially resolved the problem (please refer to the http://dojo.telerik.com/ufenA example). It works only for displaying data, but operations such as filtering, sorting and etc are not working. This is why we do not support having special characters or empty spaces in the column field names. 

 

 

 

Regards,
Boyan Dimitrov
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
Tags
Integration with other JS libraries
Asked by
Hitesh
Top achievements
Rank 1
Answers by
Boyan Dimitrov
Telerik team
Luke
Top achievements
Rank 1
Share this question
or