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

Remove Labels on Popup Editor

1 Answer 72 Views
Grid
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Shane
Top achievements
Rank 1
Shane asked on 06 May 2011, 06:46 PM
Is there any simple way to hide a field label on the grid's popup editor? Am I stuck either defining my own edit template for the entire grid or hiding the generated labels in javascript? 
Thanks!

1 Answer, 1 is accepted

Sort by
0
Atanas Korchev
Telerik team
answered on 09 May 2011, 06:37 AM
Hello Shane, 

The grid uses the Html.EditorForModel extension method which in return generates the labels for the fields. You can hide them in one of the following ways:

  1. Use CSS
  2. Hook to the OnEdit event and hide them with JavaScript
  3. Create a custom editor template for your model

To us the first approach is the easiest. Here is the relevant CSS:

.t-edit-form-container .editor-label {
  1. visibility: hidden; // or display: none;
}


Regards,
Atanas Korchev
the Telerik team
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 Public Issue Tracking system and vote to affect the priority of the items
Tags
Grid
Asked by
Shane
Top achievements
Rank 1
Answers by
Atanas Korchev
Telerik team
Share this question
or