
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
<telerik:RadGrid ID="RadGridMeasuresList" runat="server" AllowPaging="True" AutoGenerateColumns="False" Width="700px" ShowFooter="false" Skin="WebBlue" BorderColor="White" BackColor="White" ItemStyle-BorderColor="Black" Height="300px" HeaderStyle-ForeColor="Black" onitemdatabound="RadGridMeasuresList_ItemDataBound" onitemcreated="RadGridMeasuresList_ItemCreated">
<ItemStyle BorderColor="Black" />
<MasterTableView>
<Columns>
<telerik:GridBoundColumn HeaderText="Measure" DataField="MeasureName" HeaderStyle-Wrap="false" ItemStyle-Wrap="true" HeaderStyle-Width="250px" ItemStyle-HorizontalAlign="Left" HeaderStyle-Font-Bold="false">
</telerik:GridBoundColumn>
<telerik:GridBoundColumn HeaderText = "Total Opportunities" DataField="Opportunities" HeaderStyle-Wrap="false" UniqueName="Opportunities" ItemStyle-HorizontalAlign="Left" HeaderStyle-Font-Bold="false">
<ItemStyle Wrap="True"/>
</telerik:GridBoundColumn >
<telerik:GridHyperLinkColumn HeaderText = "Patients with Clinical Alerts" DataTextField="NonComplianceCount" ItemStyle-HorizontalAlign="Left" UniqueName="NonComplianceCount" HeaderStyle-Font-Bold="false" HeaderStyle-Wrap="false" DataNavigateUrlFields="Condition,Measure" DataNavigateUrlFormatString="IPClinicalAlerts.aspx?Condition={0}&Measure={1}&IsCompliant=False&PatientSearch=0" HeaderStyle-Width="150px">
<ItemStyle Wrap="True" Font-Underline="true"/>
</telerik:GridHyperLinkColumn>
<telerik:GridBoundColumn HeaderText = "Compliance Rate" DataField="Rate" HeaderStyle-Wrap="false" UniqueName="Rate" ItemStyle-HorizontalAlign="Left" HeaderStyle-Font-Bold="false">
<ItemStyle Wrap="True" />
</telerik:GridBoundColumn>
</Columns>
</MasterTableView>
<HeaderStyle BackColor="#E1E1E1" Font-Bold="True"/>
<clientsettings enablerowhoverstyle="True" >
<selecting allowrowselect="True" />
<scrolling AllowScroll="true" usestaticheaders="True" />
</clientsettings>
</telerik:RadGrid>
Here are the 2 problems i am facing
1.When i view this grid in browser i am not getting a Underline for the values in the Hyperlink column even after setting Underline property as true for the Items. Even i tried setting using CssClass but i am not able to acheive it.
2.On mouse over the values in the HyperLink columns i am getting a tooltip displaying the same values. How to hide the tooltip.
Thanks in advance,
Sharath