This is a migrated thread and some comments may be shown as answers.

Telerik grid doesn't load locales for 'Delete' and 'Edit' buttons when records are loaded using AJAX (JSON)

0 Answers 28 Views
Grid
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Andrei
Top achievements
Rank 1
Andrei asked on 15 Apr 2012, 06:25 AM
I have a grid and custom class implementing 'Telerik.Web.Mvc.Infrastructure.ILocalizationService' interface. This grid has 'Edit' and 'Delete' buttons. Everything works fine when a page is requested via 'GET' and all records for the grid are returned with HTML. But buttons could not be translated when my GET request returns only a grid without any records. Then records are requested via AJAX (JSON), but buttons are not localized.


If you cannot reproduce it, then try it in nopCommerce open source shopping cart (www.nopCommerce.com).
1. Install nopCommerce
2. Go to admin area > configuration > languages > View string resource.
3. Edit "Admin.Telerik.GridLocalization.Delete" and "Admin.Telerik.GridLocalization.Edit" to something like "Delete2" and "Edit2" (for testing purposes)
4. Then open admin area > catalog > products > Bulk Edit Product Variants.
5. As you can see buttons are not localized (still "Delete" and "Edit")

Note that the buttons are not localizable only when records are requested via AJAX (JSON) 
Tags
Grid
Asked by
Andrei
Top achievements
Rank 1
Share this question
or