Alireza Fattahi
Alireza Fattahi

Reputation: 45593

jqGrid wrong scroll position in RTL direction

I am using jqGrid plugin 4.6, when I set grid direction direction to rtl and grid height to (for example 200), the scroll will be shown

But the scroll positioned in the left of grid instead of its right.

Please see attached (It is in Persian). enter image description here Is there any way to fix it ?!

Upvotes: 0

Views: 318

Answers (1)

Rajshekar Reddy
Rajshekar Reddy

Reputation: 19007

Well you can give a try, Since you have not posted your HTML I think you should replace the selectors correctly to your HTML.

#table{
    direction:ltr;        
}

#table tbody, #table thead{
    direction:rtl;
}

So the basic idea is, make the table ltr (so on overflow it scrolls as usual) then you can make the inside content like thead and tbody rtl (so the text is in the direction rtl). But I think the scroll bar being on the left itself would be the correct thing. But still you know whats better for your work.

Upvotes: 1

Related Questions