-1

Is it possible to add jQuery UI spinner on jqgrid table column ?

I have a jqgrid table with more than 7000+ records, I am want to apply spinner on one column. Does jqgrid allow to do this?

Thanks in advance!

marc_s
  • 732,580
  • 175
  • 1,330
  • 1,459
sandip
  • 3,279
  • 5
  • 31
  • 54
  • A spinner that allows for inline updating? – Mark Mar 01 '13 at 17:08
  • 1
    Please provide simple jsfiddle example that uses jqgrid. – Dom Mar 01 '13 at 18:44
  • Hm, are you seriously willing to present a table with 7000 'editable' rows on a single page? That's a lot of rows. Even if it will work, browsers will not be very happy with that and performance will have a serious impact – thaJeztah Mar 16 '13 at 11:01
  • @thaJeztah I am displaying 50 records at time, not 7000 records at once – sandip Mar 16 '13 at 11:19

1 Answers1

0

Yes, there are a number of ways.

You can either pass the html as the cell data, so instead of just a number pass something like (not the best way):

<input class="spinner" name="value">

after the grid has loaded use:

your_jqgrid.gridComplete(function(){$(".spinner")..spinner();

Better yet, you could also set up a formatter for the column and do everything in one go there.

Justin Levene
  • 1,630
  • 19
  • 17