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

Grid PagerStyle in RighttoLeft

6 Answers 71 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Hamdy
Top achievements
Rank 1
Hamdy asked on 26 Apr 2010, 02:49 PM
I have grid 
the PagerStyle  is NextPrevAndNumeric

in right to left mode (Arabic mode) the number of the pages is come up to each others not beside each others like English


please check the attachment

6 Answers, 1 is accepted

Sort by
0
Dimo
Telerik team
answered on 26 Apr 2010, 03:05 PM
Hi Hamdy,

The following demo works as expected, please compare with yours:

http://demos.telerik.com/aspnet-ajax/grid/examples/styles/righttoleft/defaultcs.aspx

Greetings,
Dimo
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
0
Hamdy
Top achievements
Rank 1
answered on 26 Apr 2010, 03:11 PM
I used the same style
.RadGrid .rgPager .rgNumPart
{
width:80px;
}



but it did not work
0
Dimo
Telerik team
answered on 26 Apr 2010, 03:15 PM
Hello Hamdy,

Sending a complete runnable web page, which reproduces the problem will be more useful for us. Thank you.

Sincerely yours,
Dimo
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
0
Hamdy
Top achievements
Rank 1
answered on 28 Apr 2010, 12:31 PM
OK, the project is not on the web

but I try to rectify the problem and I got this note

the grid in the RadSplitter 
after rendering is is OK , just a second then it will wrap
I appreciate ur help

0
Dimo
Telerik team
answered on 29 Apr 2010, 11:40 AM
Hi Hamdy,

Are you able to reproduce the problem on a simple standalone page? If yes, please send the page. Thank you. Here is my test page, which works as expected. You can try modifying it and send it back for inspection.

<%@ Page Language="C#" %>
<%@ Import Namespace="System.Data" %>
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
 
<script runat="server">
 
    protected void RadGrid_NeedDataSource(object sender, GridNeedDataSourceEventArgs e)
    {
        DataTable dt = new DataTable();
        DataRow dr;
        int colsNum = 4;
        int rowsNum = 50;
        string colName = "Column";
 
        for (int j = 1; j <= colsNum; j++)
        {
            dt.Columns.Add(String.Format("{0}{1}", colName, j));
        }
 
        for (int i = 1; i <= rowsNum; i++)
        {
            dr = dt.NewRow();
 
            for (int k = 1; k <= colsNum; k++)
            {
                dr[String.Format("{0}{1}", colName, k)] = String.Format("{0}{1} Row{2}", colName, k, i);
            }
            dt.Rows.Add(dr);
        }
 
        (sender as RadGrid).DataSource = dt;
    }
 
</script>
 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
 
<head id="Head1" runat="server">
<meta http-equiv="content-type" content="text/html;charset=utf-8" />
<title>RadControls</title>
<style type="text/css">
 
div.RadGridRTL .rgNumPart
{
    width:100px;
}
 
</style>
</head>
<body dir="rtl">
<form id="form1" runat="server">
<asp:ScriptManager ID="ScriptManager1" runat="server" />
 
<telerik:RadSplitter ID="RadSplitter1" runat="server" Width="800px">
<telerik:RadPane ID="Pane1" runat="server">
<telerik:RadGrid
    ID="RadGrid1"
    runat="server"
    Skin="Office2007"
    AllowPaging="true"
    OnNeedDataSource="RadGrid_NeedDataSource">
    <MasterTableView Dir="RTL" />
</telerik:RadGrid>
</telerik:RadPane>
</telerik:RadSplitter>
 
</form>
</body>
</html>


Best wishes,
Dimo
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
0
Hamdy
Top achievements
Rank 1
answered on 29 Apr 2010, 11:45 AM
Could not reproduced 
I found the error
small line in the code changing the style in the code behind another developer put it before to test something and forgot it

it is working great now
sorry

Tags
Grid
Asked by
Hamdy
Top achievements
Rank 1
Answers by
Dimo
Telerik team
Hamdy
Top achievements
Rank 1
Share this question
or