On views/layout.html you have to include/ or replace the code that loads
jquery-ui theme

   <!-- uncomment here to load jquery-ui
   <link rel="stylesheet" href="
http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.16/themes/base/jquery-ui.css";
type="text/css" media="all" />
   <script src="
http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.16/jquery-ui.min.js";
type="text/javascript"></script>
   uncomment to load jquery-ui //--> Change it for your downloaded
theme    <!--
uncomment here to load jquery-ui
   <link rel="stylesheet" href="*{{=URL('static', 'css',
'jquery-ui.custom.css')}}*" type="text/css" media="all" />
   <script src="*{{=URL('static', 'js', 'jquery-ui.min.js**')}}*"
type="text/javascript"></script>    uncomment to load jquery-ui //-->
This *{{=URL('static', 'css', 'jquery-ui.custom.css')}} is your jquery ui
theme under /static/css/*

On Mon, Nov 14, 2011 at 12:45 AM, tomt <tom_tren...@yahoo.com> wrote:

> Hi,
>
> I'm looking for an example of how to install and use a jquery theme
> for SQLFORM.grid
>
> I see that I can implement jquery-ui by defining:
> form = SQLFORM.grid(query=db.table.field=='3',ui='jquery-ui')
>
> I see that I can download a theme from http://jqueryui.com/download
> but I don't know where to install it, or how to enable it.  I searched
> the web2py group for examples, but I failed to find any.
>
> I'd appreciate it if someone could post a working example of this
> feature.
>
> Thanks in advance,  - Tom
>
>


-- 

Bruno Rocha
[http://rochacbruno.com.br]

Reply via email to