Hi Telerik,
We have problem with RadGrid localization. Our web page (which contains the RadGrid) is localized by local resources using the functionality „Generate Local Resource“. Applying such function adds the meta information into the RadGrid. Thus, here is the problem. The RadGrid doesn’t work correctly with those meta information. So, when the AJAX is used the RadGrid doesn’t load the data, or more exactly in other words: the “NeedDataSource” event is not fired and therefore the RadGridData_NeedDataSource handler is not called.
Here is the code snippet of our implementation:
protected void Page_Load(object sender, EventArgs e)
{
RadAjaxManager.GetCurrent(this.Page).AjaxSettings.AddAjaxSetting(RadGridData, RadGridData, RadAjaxLoadingPanel);
if (IsPostBack == false)
RadGridData.Rebind();
}
protected void RadGridData_NeedDataSource(object sender, GridNeedDataSourceEventArgs e)
{
DataTable dataTable = GetObjectData();
RadGridData.DataSource = dataTable;
}
If the meta information are deleted, the RadGrid works normally again. The other telerik controls are localized as well, and they’re working normally. If we keep at least one meta information at some place, the problem appears again.
We found an example of using Global resources for telerik controls localization on your websites. We’ve tried it, however it didn’t make desired effect. We’ve copied the file RadGrid.Main. sk-SK.resx into the App_GlobalResources folder. Although the entire page is localized, the RadGrid is not. In addition, these settings is not working although the property (Culture = "sk-SK") is set directly.
Is there any way to perform mentioned localization using the ‘local resources‘ approach?
Thank you very much for your advice.
Kind regards,
SCT