Change the text of an insert button

Using Telerik’s Extensions for ASP.NET MVC
Specifically the grid component

I was attempting to change the text of the Insert button and it was not obvious, to me at least, how to do so….
so jquery to the rescue!!

I’m using Telerik’s mvc grid in an MVC 2 application using Visual Studio 2008

In the view, tie the view to a javascript file

in the javascript file, type the following…
$(“.t-grid-add”).text(“Add New Invoice”);

Note that the class for the insert command in the grid is t-grid-add

as you can see from the firebug screenshot below, one of the classes for the button/link is t-grid-add

I’ve also added a shot of the button with the modified text.

Advertisements

About w4ik

software engineer...in the trenches
This entry was posted in mvc and tagged . Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s