Hey there,
I have a grid and for several columns I have the data type set as numeric. The filtering works great it allows numbers only positive and negative. Perfect, but my client just discovered that if you hit up and down arrow keys it will auto increment the values. They would like to disable this feature but I haven't found a method to do just that. I could switch the data type to text, but then I'd lose all masking that the numeric editor provides.
Any ideas?
Thanks,
That worked. I would not have figured this one out anytime soon. Many thanks!
I did have to wrap it in a try/catch statement because refreshing the page did invoke a prototype not recognized exception. Other then that, it works perfectly!
Try this. var base = { _spin: $.ui.igEditor.prototype._spin };
$.extend(true, $.ui.igNumericEditor.prototype, { _create: function(s) { this.options.spinEnabled = false; var extendedEditor = base._createEditor.apply(this, arguments); } });
$.extend(true, $.ui.igEditor.prototype, { _spin: function(j) { if (this.options.spinEnabled) { base._spin.apply(this, arguments); } } });
This is still an open issue. Anyone have any work arounds?