Pending Review
Last Updated: 20 Dec 2018 08:46 by Richard
Created on: 20 Dec 2018 08:46
Category: Kendo UI for jQuery
Type: Feature Request
Provide an option to turn on line numbers in the Kendo UI Editor

The controller is returning the HtmlEncoded contents of a text file that the server reads in from the local operating system on the server, and I would like to display that information in a window or editor such that there is a left hand 'gutter' displaying line numbers and the file content has vertical and horizontal scroll bars.  The line numbers would scroll-y with the content, but should be fixed with respect to scroll-x.

A good example would be

 - the code panel in the Sources tab in Chrome developer tools, or
 -, or
 - (not my first choice though)

This dojo demonstrates a close solution I made using Window.

The 'gutter' is not locked (or fixed) though.  After many iterations I though of the Editor component and how it might already have line numbers built into it, and I could use it in a read-only manner to display the text file contents with line-numbers.