status bar with rtl

3 posts, 1 answers
  1. Roy
    Roy avatar
    36 posts
    Member since:
    Jun 2008

    Posted 17 Aug 2008 Link to this post

    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. Answer
    Dimo
    Admin
    Dimo avatar
    8333 posts

    Posted 18 Aug 2008 Link to this post

    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.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Roy
    Roy avatar
    36 posts
    Member since:
    Jun 2008

    Posted 19 Aug 2008 Link to this post

    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...
Back to Top