How to make jquery-datatables-rails inline editable ? - ruby-on-rails-3

I am using jquery-datatables-rails in one of my application and displaying a grid.
In order to make it editable I added jquery-datatables-editable-rails in my gemfile.
However, I can't find a way to make the rows editable.
Any help would be highly appreciated.
Here is how my coffee script file for enabling datatable looks like
jQuery ->
$('#products').dataTable
sPaginationType: "full_numbers"
bJQueryUI: true

This may be useful:
http://www.datatables.net/forums/discussion/17213/table-editing-with-best-in-place-in-ruby-on-rails
It describes how to make your datatables editable with the best_in_place gem.

Related

how can i upgrade bootstrap framework without changing html

I have a requirement like,i need to migrate from bootstrap2 to bootstrap3,but there should not be any change in html side.is it possible,if so how can we acheive it.
If you have to change the code, try this before: http://code.divshot.com/bootstrap3_upgrader/
It's not possible to migrate from Bootstrap 2 to 3 without many changes to the HTML markup. There are a lot of changes in CSS class names between the 2 versions. You can use a tool like this to help with code migration: http://upgrade-bootstrap.bootply.com/

Dgrid grouping based on checkbox and grid values

I am wondering how to use dgrid so that I can get a structure like in attached image. I am using dgrid, dstore and dojo 1.10 .
I need to create folder type structure when I check the checkbox or any structure which is supported by dgrid. Any help how to proceed further would be great and appreciated.
Have you looked into using a the dgrid tree plugin? There's quite a bit of useful information here and some examples here and here.
What you're trying to achieve seems like it should be possible with just using the regular tree plugin but I could be misinterpreting your question. Correct me if I've missed anything

What options are there for customizing a scrollbar with dojo 1.8?

I'm currently working on a dojo application, but have a need for some customization of the scroll bars. Basically anything that mimics any one of the multiple jQuery based custom scrollbar plugins should be sufficient.
Any ideas?
there doesn't seem to be something out there yet mimicking the jquery scrollbar plugins, you can customize their look using css though !
Lucian
Source:
http://dojo-toolkit.33424.n3.nabble.com/Custom-Scrollbars-tp2776041.html

Dojo 1.8: Seems that there's no way to load dojo file into contentpane, is it?

Hi I have tried every ways and means to load dojo page into ContentPane.
It seems That I am not able to do that. Correct me if I am wrong.
Looks like the only solution is through the creation and destroy of any widget while running
Clement
The dojo docs for dojox/layout/ContentPane (which allows references to script files) mentions your issue:
NOTE that dojo.require in script in the fetched file isn't recommended Many widgets need to be required at page load to work properly
#see http://dojotoolkit.org/api/1.8/dojox/layout/ContentPane
It looks like you just need to require these files in the parent widget.

Dojo Grid Template

In asp.net the DataGrid supports templates. You can provide your own template and have the grid fill the data in your template.
With Dojo Grid, it seems like I can't make my own template outside of the the rigid simplistic cell style grid that Dojo provides.
Does anyone know a way to use a custom template with Dojo Grid? Specifically, with Dojo you're forced to use a cell that corresponds to a data item. I'm looking to use a table as a template with any styling that I choose (rows,columns,rowspans,colspans, more than one data items in a single cell, etc).
Any clues please?
Thanks
Firstly, it sounds like everything you want is available by customizing the grid. You can do nesting of cells and even have things like Filtering Selects in rows. Unfortunately the docs on this are not awesome so it takes Googling and trial and error if you want very customized features.
Secondly, because of the OO nature of Dojo you can always use inheritance to create mixes of various widgets. Specifically the _templated class allows you to specify an HTML template for your widget, which themselves can included templated widgets.
If that sounds non-trivial, you're right, which is why I would suggest digging deeper into the Enhanced grid and probably open up the code before trying to write something yourself.
I can tell you that I struggled getting it working correctly, but I have hence been pleasantly surprised by features that I needed that I thought I would need to build myself but were built into the grid.