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

[Solved] Hebrew support

4 Answers 202 Views
Grid
This is a migrated thread and some comments may be shown as answers.
lea ginsberger
Top achievements
Rank 1
lea ginsberger asked on 01 Feb 2010, 10:06 AM

When using Grid for Hebrew (right to left) together with scrolling.

<Scrolling AllowScroll="True"  UseStaticHeaders="true" />

 

 

 

 

 

 

an empty column is added to the grid header row, on the left side as if it's left to right grid (English) and it's not suitable for Hebrew.

Attached is a screenshot for demonstrating the problem.
As you can see, the scroll is added correctly on the left side of the grid, but the rectangular added to the header row is put on the right side of the grid.

 

 
 

 Thank you!

 

 

 

 

 

 

 

4 Answers, 1 is accepted

Sort by
0
lea ginsberger
Top achievements
Rank 1
answered on 02 Feb 2010, 08:18 AM
Attached is a screenshot for demonstrating the problem.
As you can see, the scroll is added correctly on the left side of the grid, but the rectangular added to the header row is put on the right side of the grid.
0
Martin
Telerik team
answered on 05 Feb 2010, 08:28 AM
Hello Lea ginsberger,

It looks like the attachment did not make it through in both of your posts.
Could you also provide the full markup code of your RadGrid?

Regards,
Martin
the Telerik team

Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Follow the status of features or bugs in PITS and vote for them to affect their priority.
0
lea ginsberger
Top achievements
Rank 1
answered on 07 Feb 2010, 07:15 AM

full markup code of your RadGrid!

 

 

<telerik:RadGrid ID="Grid_mdr_Midrasha" runat="server" AutoGenerateColumns="False"

 

 

GridLines="None" AllowPaging="True" PageSize="15" AllowSorting="True" Font-Strikeout="False"

 

 

 

 

 

AllowMultiRowSelection="True" AllowFilteringByColumn="True" OnInsertCommand="Grid_mdr_Midrasha_InsertCommand"

 

 

 

 

 

OnItemCommand="Grid_mdr_Midrasha_ItemCommand"

 

 

 

 

 

OnNeedDataSource="Grid_mdr_Midrasha_NeedDataSource" OnItemCreated="Grid_mdr_Midrasha_ItemCreated"

 

 

 

 

 

OnItemDataBound="Grid_mdr_Midrasha_ItemDataBound">

 

 

 

 

 

<MasterTableView DataKeyNames="iMidrashaId" AllowMultiColumnSorting="True" CommandItemDisplay="Top"

 

 

 

 

 

EditMode="PopUp" Width="100%" AutoGenerateColumns="false">

 

 

 

 

 

<CommandItemTemplate>

 

 

 

 

 

<asp:LinkButton runat="server" ID="AddNew" Text="" CommandName="InitInsert">

 

 

 

 

 

<asp:Image ID="imgAdd" runat="server" ImageUrl="~/Images/Icons/New.png" />

 

 

 

 

 

</asp:LinkButton>

 

 

 

 

 

</CommandItemTemplate>

 

 

 

 

 

<PagerStyle AlwaysVisible="true" PageSizeLabelText="" FirstPageText="" LastPageText=""

 

 

 

 

 

NextPageText="" PrevPageText="" PagerTextFormat="Change page: {4} {0} {1}, {2} {3} {5}" />

 

 

 

 

 

<Columns>

 

 

 

 

 

<telerik:GridTemplateColumn HeaderText="" UniqueName="TemplateEditColumn" AllowFiltering="false">

 

 

 

 

 

</telerik:GridTemplateColumn>

 

 

 

 

 

<telerik:GridBoundColumn EditFormColumnIndex="0" UniqueName="nvMidrashaName" DataField="nvMidrashaName"

 

 

 

 

 

HeaderText="" AutoPostBackOnFilter="true" ShowFilterIcon="false" CurrentFilterFunction="Contains">

 

 

 

 

 

</telerik:GridBoundColumn>

 

 

 

 

 

<telerik:GridBoundColumn EditFormColumnIndex="0" UniqueName="nvPhoneNumber" DataField="nvPhoneNumber"

 

 

 

 

 

HeaderText="" Visible="false" ReadOnly="true" AutoPostBackOnFilter="true"

 

 

 

 

 

ShowFilterIcon="false" CurrentFilterFunction="Contains">

 

 

 

 

 

</telerik:GridBoundColumn>

 

 

 

 

 

<telerik:GridBoundColumn UniqueName="nvAddress" DataField="nvAddress" HeaderText=""

 

 

 

 

 

Visible="false" ReadOnly="true" AutoPostBackOnFilter="true" ShowFilterIcon="false"

 

 

 

 

 

CurrentFilterFunction="Contains">

 

 

 

 

 

</telerik:GridBoundColumn>

 

 

 

 

 

<telerik:GridBoundColumn EditFormColumnIndex="0" UniqueName="iHouseNumber" DataField="iHouseNumber"

 

 

 

 

 

HeaderText=" " Visible="false" ReadOnly="true">

 

 

 

 

 

</telerik:GridBoundColumn>

 

 

 

 

 

<telerik:GridDateTimeColumn EditFormColumnIndex="1" UniqueName="dtOpenDate" DataField="dtOpenDate"

 

 

 

 

 

HeaderText=" " Visible="false">

 

 

 

 

 

</telerik:GridDateTimeColumn>

 

 

 

 

 

<telerik:GridBoundColumn UniqueName="nvOrganizationName" DataField="nvOrganizationName"

 

 

 

 

 

HeaderText="" ReadOnly="true" AutoPostBackOnFilter="true" ShowFilterIcon="false"

 

 

 

 

 

CurrentFilterFunction="Contains">

 

 

 

 

 

</telerik:GridBoundColumn>

 

 

 

 

 

<telerik:GridDropDownColumn EditFormColumnIndex="0" UniqueName="iOrganizationId"

 

 

 

 

 

ListDataMember="tbl_sys_Organization" SortExpression="nvOrganizationName" ListTextField="nvOrganizationName"

 

 

 

 

 

ListValueField="iOrganizationId" HeaderText="" DataField="iOrganizationId"

 

 

 

 

 

EmptyListItemText=" " Visible="false" DropDownControlType="RadComboBox">

 

 

 

 

 

</telerik:GridDropDownColumn>

 

 

 

 

 

<telerik:GridBoundColumn UniqueName="nvCitySynonymName" DataField="nvCitySynonymName"

 

 

 

 

 

HeaderText="" AutoPostBackOnFilter="true" ShowFilterIcon="false" CurrentFilterFunction="Contains"

 

 

 

 

 

ReadOnly="true">

 

 

 

 

 

</telerik:GridBoundColumn>

 

 

 

 

 

<telerik:GridBoundColumn UniqueName="nvLocationTypeName" DataField="nvLocationTypeName"

 

 

 

 

 

HeaderText=" " ReadOnly="true" AutoPostBackOnFilter="true" ShowFilterIcon="false"

 

 

 

 

 

CurrentFilterFunction="Contains">

 

 

 

 

 

</telerik:GridBoundColumn>

 

 

 

 

 

<telerik:GridDropDownColumn UniqueName="iLocationTypeId" ListDataMember="tbl_sys_LocationType"

 

 

 

 

 

SortExpression="nvLocationTypeName" ListTextField="nvLocationTypeName" ListValueField="iLocationTypeId"

 

 

 

 

 

HeaderText=" " DataField="iLocationTypeId" EmptyListItemText=" " Visible="false">

 

 

 

 

 

</telerik:GridDropDownColumn>

 

 

 

 

 

<telerik:GridDropDownColumn EditFormColumnIndex="0" UniqueName="iPopulationGenderId"

 

 

 

 

 

ListDataMember="tbl_sys_PopulationGender" SortExpression="nvPopulationGenderName"

 

 

 

 

 

ListTextField="nvPopulationGenderName" ListValueField="iPopulationGenderId" HeaderText=""

 

 

 

 

 

DataField="iPopulationGenderId" EmptyListItemText=" " Visible="true">

 

 

 

 

 

</telerik:GridDropDownColumn>

 

 

 

 

 

<telerik:GridBoundColumn UniqueName="nvParticipantNumberRangeName" DataField="nvParticipantNumberRangeName"

 

 

 

 

 

HeaderText=" " ReadOnly="true" AutoPostBackOnFilter="true" ShowFilterIcon="false"

 

 

 

 

 

CurrentFilterFunction="Contains">

 

 

 

 

 

</telerik:GridBoundColumn>

 

 

 

 

 

<telerik:GridDropDownColumn EditFormColumnIndex="1" UniqueName="iParticipantNumberRangeId"

 

 

 

 

 

ListDataMember="tbl_sys_ParticipantNumberRange" SortExpression="nvParticipantNumberRangeName"

 

 

 

 

 

ListTextField="nvParticipantNumberRangeName" ListValueField="iParticipantNumberRangeId"

 

 

 

 

 

HeaderText=" " DataField="iParticipantNumberRangeId" EmptyListItemText=" "

 

 

 

 

 

Visible="false">

 

 

 

 

 

</telerik:GridDropDownColumn>

 

 

 

 

 

<telerik:GridDropDownColumn EditFormColumnIndex="1" UniqueName="iPopulationLevelId"

 

 

 

 

 

ListDataMember="tbl_sys_PopulationLevel" SortExpression="nvPopulationLevelName"

 

 

 

 

 

ListTextField="nvPopulationLevelName" ListValueField="iPopulationLevelId" HeaderText=" "

 

 

 

 

 

DataField="iPopulationLevelId" EmptyListItemText=" " Visible="false">

 

 

 

 

 

</telerik:GridDropDownColumn>

 

 

 

 

 

<telerik:GridDateTimeColumn UniqueName="dtLastUpdateDate" DataField="dtLastUpdateDate"

 

 

 

 

 

HeaderText=" " Visible="false" ReadOnly="true">

 

 

 

 

 

</telerik:GridDateTimeColumn>

 

 

 

 

 

<telerik:GridBoundColumn UniqueName="columnNvMidrashaID" DataField="iMidrashaId"

 

 

 

 

 

HeaderText="ID--> " Visible="false" ReadOnly="true">

 

 

 

 

 

</telerik:GridBoundColumn>

 

 

 

 

 

</Columns>

 

 

 

 

 

<EditFormSettings ColumnNumber="2" InsertCaption=" "

 

 

PopUpSettings-Modal="true" PopUpSettings-Width="500px">

 

 

 

 

 

<FormTableStyle GridLines="None" CellSpacing="0" CellPadding="2"></FormTableStyle>

 

 

 

 

 

<EditColumn ButtonType="ImageButton" />

 

 

 

 

 

</EditFormSettings>

 

 

 

 

 

</MasterTableView>

 

 

 

 

 

<SelectedItemStyle BackColor="#99CCFF" BorderColor="#CCFFFF" />

 

 

 

 

 

<ClientSettings>

 

 

 

 

 

<ClientEvents OnPopUpShowing="PopUpShowing" />

 

 

 

 

 

<Scrolling AllowScroll="true" UseStaticHeaders="true"/>

 

 

 

 

 

</ClientSettings>

 

 

 

 

 

</telerik:RadGrid>

 

0
Martin
Telerik team
answered on 09 Feb 2010, 05:10 PM
Hello Lea ginsberger,

The reported issue is actually a browser specific behavior. To go through it you can wire the GridCreated client-side event and apply the following code:

function GridCreated(sender, args)
        {
            if ($telerik.isIE)
            {
                sender.GridHeaderDiv.style.paddingRight = "0px";
            }
        }


I hope this helps,
Martin
the Telerik team

Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Follow the status of features or bugs in PITS and vote for them to affect their priority.
Tags
Grid
Asked by
lea ginsberger
Top achievements
Rank 1
Answers by
lea ginsberger
Top achievements
Rank 1
Martin
Telerik team
Share this question
or