jQWidgets Forums
jQuery UI Widgets › Forums › Grid › Setting RTL property with programming not working
Tagged: jqxgrid, programatically, RTL
This topic contains 7 replies, has 3 voices, and was last updated by Tahir Nazir 10 years ago.
-
Author
-
Hi,
I have seen that jqxGrid support RTL. I have tried to use to set property using
$('#jqxGrid').jqxGrid({rtl : true});
In Debug mode I can see that rtl parameter is set accordingly but the direction of grid won’t change.How to do this programatically?
I can do this by doing so
$('#jqxGrid').jqxGrid({rtl : true, columns: myColumnsArray});
But why it won’t render the grid again only passing rtl:true.
Second thing is that why data inside grid won’t align from right to left on setting the parameter? If I want to do that then how can I do this that data inside grid direction also change and header of the grid too? (does it work also for toolbar and pager too ?)
Hello Tahir Nazir,
Please, provide us with sample code or jsfiddle example which demonstrates such an issue.
Best Regards,
NadezhdajQWidgets team
http://www.jqwidgets.com/Dear Nadezhda
here is the URL of jsfiddle http://jsfiddle.net/ej0xgdmu/
Please have a look and let me know where I am wrong.Hey Tahir, call “render” after you call “rtl: true”
Hello Peter Stoev,
thanks for your reply. But I had told you more problem. The Grid also won’t change the alignment of the Grid contents. Please have a look on this.http://jsfiddle.net/ej0xgdmu/1/
After rendering the Grid, only columns changes RTL but the contents inside grid (column header + data) remain left align. How to do that?
Moreover, after setting RTL to false and true two time, left side of the grid remain the scrollbar div as empty…
(is this also possible to change the direction of pager and toolbar too ?)Scrolling behavior also changed on setting RTL true
Hi Tahir Nazir,
Columns have properties for setting the Alignment – align and cellsalign for aligning Header and Cells.
Best Regards,
Peter StoevjQWidgets Team
http://www.jqwidgets.comAnd what about Scrolling behavior ?
-
AuthorPosts
You must be logged in to reply to this topic.