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

Rendering grid in non-minified form

1 Answer 52 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Vadim
Top achievements
Rank 1
Vadim asked on 29 May 2015, 12:58 AM

When I am rendering the grid control (using the server rendering option), I noticed that the resulting HTML is rendered as a single line.

Is there a way to render the grid's HTML as an outlined output with each table's tag on its own line aka

<table>
<tr>
    <td>value</td>
</tr>
</table>

It would be helpful for debugging and troubleshooting (in VisualStudio, browser debugger, in Fiddler, just using View Page Source option) and even in some cases for customers (to let them using Page Source option to save the raw HTML content - I had plenty of situations when that was a savvier).

1 Answer, 1 is accepted

Sort by
0
Dimiter Madjarov
Telerik team
answered on 01 Jun 2015, 08:32 AM

Hello Vadim,

This behavior is not supported. Nevertheless inspecting the element and reviewing the "Elements" tab of the browsers developer tools will always display the code in the correct format, so you could use it in this case.

Regards,
Dimiter Madjarov
Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Tags
Grid
Asked by
Vadim
Top achievements
Rank 1
Answers by
Dimiter Madjarov
Telerik team
Share this question
or