Hi!
We use a lot of Grids in our application, so I've created a class (that inherits from RadGrid:
We use a lot of Grids in our application, so I've created a class (that inherits from RadGrid:
| public class BaseGrid : Telerik.Web.UI.RadGrid |
| { |
| protected override void OnPreRender(EventArgs e) |
| { |
| this.AllowMultiRowEdit = false; |
| this.Skin = "Telerik"; |
| this.GridLines = GridLines.None; |
| this.MasterTableView.NoMasterRecordsText = "No records custom message!"; |
| // Call the base class's OnLoad method! |
| base.OnPreRender(e); |
| } |
This helps me to reduce the time whenever the Client wants to change the appearance of all grids in the application.
The Skin property works great, I mean, if I change the skin on the base class every grid will change its appearance too.
The problem is that I'm trying to localize the grid messages the same way. But the line :
this.MasterTableView.NoMasterRecordsText = "No records custom message!";
produces no effect, since I'm getting the default "No records to display." message.
Is this the best approach to localize every message in all the grids in my application? Does anybody knows why this isn't working?
Thanks!