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
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:
Use CSS
Hook to the OnEdit event and hide them with JavaScript
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 {
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