4 Answers, 1 is accepted
0
Hello Mahmoud,
The buttons in the Grid edit form can be customized with external CSS. The HTML output of the 3 types of edit forms is different, so you can use different CSS selectors to target the 3 cases:
inline
.t-grid .t-grid-edit-row td.t-edit-container .t-button { }
inform
.t-grid .t-grid-edit-row div.t-edit-form-container .t-button { }
popup
.t-window .t-edit-form-container .t-buton { }
Also take a look at the buttons help article:
http://www.telerik.com/help/aspnet-mvc/telerik-ui-components-buttons.html
Best wishes,
Dimo
the Telerik team
The buttons in the Grid edit form can be customized with external CSS. The HTML output of the 3 types of edit forms is different, so you can use different CSS selectors to target the 3 cases:
inline
.t-grid .t-grid-edit-row td.t-edit-container .t-button { }
inform
.t-grid .t-grid-edit-row div.t-edit-form-container .t-button { }
popup
.t-window .t-edit-form-container .t-buton { }
Also take a look at the buttons help article:
http://www.telerik.com/help/aspnet-mvc/telerik-ui-components-buttons.html
Best wishes,
Dimo
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the Telerik Extensions for ASP.MET MVC, subscribe to their blog feed now
0
mahmoud
Top achievements
Rank 1
answered on 28 Sep 2011, 01:49 PM
Thanks but 2 problems,
I did like this :
but it caused all other buttons inside the "inform" to be put in left side!
also how can I change the inner text? just jquery??
thanks in advance
I did like this :
.t-grid .t-grid-edit-row div.t-edit-form-container .t-button { float:left; display:inline-block; }
but it caused all other buttons inside the "inform" to be put in left side!
also how can I change the inner text? just jquery??
thanks in advance
0
Accepted
Hello Mahmoud,
Button's text can be changed manually with Javascript or by means of localization:
http://demos.telerik.com/aspnet-mvc/grid/localization
http://www.telerik.com/help/aspnet-mvc/telerik-ui-components-grid-localization.html
As for the CSS question - t-button is the most general CSS class that is used by all buttons. Instead, you can use a more specific CSS class to target specific buttons, for example
t-grid-edit
t-grid-delete
t-grid-update
t-grid-cancel
The above classes are applied on the same element as t-button. Have you inspected the Grid HTML output with Firebug? It may provide a lot of relevant information how to construct your CSS rules.
All the best,
Dimo
the Telerik team
Button's text can be changed manually with Javascript or by means of localization:
http://demos.telerik.com/aspnet-mvc/grid/localization
http://www.telerik.com/help/aspnet-mvc/telerik-ui-components-grid-localization.html
As for the CSS question - t-button is the most general CSS class that is used by all buttons. Instead, you can use a more specific CSS class to target specific buttons, for example
t-grid-edit
t-grid-delete
t-grid-update
t-grid-cancel
The above classes are applied on the same element as t-button. Have you inspected the Grid HTML output with Firebug? It may provide a lot of relevant information how to construct your CSS rules.
All the best,
Dimo
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the Telerik Extensions for ASP.MET MVC, subscribe to their blog feed now
0
mahmoud
Top achievements
Rank 1
answered on 29 Sep 2011, 11:16 AM
Thanks! It solved by your guidance :-)
