robinvanderknaap / MvcJqGrid

Fluent jqGrid Html Helper for ASP.NET MVC
www.playground.webpirates.nl/mvcjqgrid
GNU Lesser General Public License v3.0
101 stars 74 forks source link

Right-to-Left direction #25

Closed ghost closed 9 years ago

ghost commented 11 years ago

Hi all. Is there any way to change the direction of the grid?

daanl commented 11 years ago

Could you explain your question and situation something more please?

ghost commented 11 years ago

In the name of God Hi. Tnx for response

As you know, the jqGrid itself has a property named "direction" and we can set it like this

direction: 'rtl'

You know, I'm using Persian lang in my app which is Right-to-Left. In fact, my problem is that the caption of grid is shown in left and columns also is showed from left. However, the pager section is correctly right-to-left and is suitable for my culture!

I tried to find some relative property in helper but it seems that you had not a plan to implement the direction property. Now, is there any simple way for me to change this default behavior?

Thanks a lot for your help

daanl commented 11 years ago

Hi,

Looks like our helper indeed doesnt support it for now.

You could use $.jgrid.defaults.direction = 'rtl';

Before the helper code this will set the default to rtl.

I'll leave the issue open so we can add this in future.

SalmanTheExorcist commented 10 years ago

Hi guys Thanks Daanl, that worked for me too. Though I am using Asp.Net webforms and recently started playing around with JQgrid. Really cool stuff.

Thanks once again.

Peace ~Salman~