How can the text be changed for the insert command button on a Telerik MVC Grid.
I am using Master-Detail with 2 sub-levels and I want to personalize each level individually. The only way I know now is to change all the insert buttons from jQuery.
I am thinking that the solution should be something with custom commands and an action that emulates the insert functionality.
Solution from Chrissav:
.ToolBar(commands => commands.Insert().HtmlAttributes( new { id = "addLvl1" }))
.ClientEvents(e => e.OnLoad("changeText")
Function
function changeText() {
$('[id=addLvl1]').text('Insert Level 1');
$('[id=addLvl2]').text('Insert Level 2');
$("[id=addLvl3]").text('Insert Level 3');
}