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

Extra spacing after setting dir="rtl"

1 Answer 73 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Dimitry
Top achievements
Rank 1
Dimitry asked on 26 Jul 2011, 02:58 PM
Hey,

When I'm setting my page body tag to dir="rtl" its adding extra spaces to radgrid control.

Thanks for help.

1 Answer, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 27 Jul 2011, 05:46 AM
Hello Dimitry,
I have tried to reproduce the issue locally, but no avail. Here is the sample code which I tried.
aspx:
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="ExportOrientation.aspx.cs"
    Inherits="RadGrid_ExportOrientation" %>
<%@ Register TagPrefix="telerik" Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<head runat="server">
    <title></title>
    <style type="text/css">
        body
        {
            direction: rtl;
        }
    </style>
</head>
<body>
    <form id="form1" runat="server">
    <div>
      <asp:ScriptManager runat="server" ID="ScriptManager1" />
      <telerik:RadGrid ID="RadGrid1" runat="server" OnNeedDataSource="RadGrid1_NeedDataSource" onprerender="RadGrid1_PreRender" ShowStatusBar="true" Width="100px" >
          <MasterTableView CommandItemDisplay="Top" >
          </MasterTableView>
      </telerik:RadGrid>
    </div>
    </form>
</body>
</html>
C#:
protected void RadGrid1_NeedDataSource(object sender, GridNeedDataSourceEventArgs e)
   {
       RadGrid1.DataSource = new string[] { "Test" };
   }

Thanks,
Shinu.
Tags
Grid
Asked by
Dimitry
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Share this question
or