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

status bar with rtl

2 Answers 39 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Roy
Top achievements
Rank 1
Roy asked on 17 Aug 2008, 12:24 PM
I've just started incorporating RadGrid into my web application.
One of the problems i've incountered (as my previous datagrid exp. was limited to winforms) was that the status bar text does not correpond with the overall direction of the grid (although i've already noticed that i had to set the align in the ItemStyle of each column to right).
After a few interrogations of my own, i've noticed that you encapsulated the text of the status using a span with the style property - float:left.
Thus the status text ignores the overall style.
Is there anything i can do to fix it?
tnx for any reply...

2 Answers, 1 is accepted

Sort by
0
Accepted
Dimo
Telerik team
answered on 18 Aug 2008, 01:07 PM
Hello Roy,

The hard-coded float style must have been left over from the older RadGrid for ASP.NET. As far as I can see, it is not needed now, so I removed it and changes will take effect in the coming Q2 2008 SP1.

In the meantime, you can remove the float style like this:

ASPX

<telerik:RadGrid ID="RadGrid1" OnItemCreated="RadGrid1_ItemCreated" />

C#

        protected void RadGrid1_ItemCreated(object sender, GridItemEventArgs e)
        {
            if (e.Item is GridStatusBarItem)
            {
                ((e.Item as GridStatusBarItem).FindControl("StatusLabel") as Label).Style.Remove("float");
            }
        }



By the way, in case you don't know, if you place RadGrid inside a container with a dir="rtl" attribute, some other elements (e.g. inside the pager) will change their orientation automatically. For example:

<div dir="rtl">
      <telerik:RadGrid  ID="RadGrid1"  runat="server"  />
</div>


Let us know if you need additional information.

Best wishes,
Dimo
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Roy
Top achievements
Rank 1
answered on 19 Aug 2008, 05:18 AM
Thank you for the answer.
As a metter of fact, i set the dir in the body tag, i.e.
<body dir="rtl">
I will add the neccessary code inorder to fix the problem.

tnx again...
Tags
Grid
Asked by
Roy
Top achievements
Rank 1
Answers by
Dimo
Telerik team
Roy
Top achievements
Rank 1
Share this question
or