jQWidgets Forums
Forum Replies Created
-
Author
-
October 17, 2013 at 8:36 pm in reply to: Update grid cells in real time with jqxNumberInput Update grid cells in real time with jqxNumberInput #30969
Thanks a lot, Peter! It works perfectly fine.
October 17, 2013 at 7:02 am in reply to: Update grid cells in real time with jqxNumberInput Update grid cells in real time with jqxNumberInput #30891Peter, but in your 1st post you stated that:
“You can however use the jqxNumberInput’s event and bind to them in the column editor’s “createeditor” callback(called when an editor is created).”
I guess, I tried to do exactly what you suggested. If not, what is the right way of doing that?
October 17, 2013 at 6:37 am in reply to: Update grid cells in real time with jqxNumberInput Update grid cells in real time with jqxNumberInput #30883Is it a right way of doing that?
createeditor: function (row, cellvalue, editor, cellText, width, height) { // construct the editor. editor.jqxNumberInput({ decimalDigits: 4, inputMode: 'simple', max: 1, min: 0, theme: theme, width: width, height: height, spinButtons: true, spinMode: 'advanced' }); editor.on('valuechanged', function (event) { var value = event.args.value; alert(value); }); },
It seems to be working, but I cannot pass the row number into jqxNumberInput callback. How can I get the row number inside the “valuechanged” function?
Thanks
October 17, 2013 at 6:26 am in reply to: Update grid cells in real time with jqxNumberInput Update grid cells in real time with jqxNumberInput #30882Thanks, Peter. I am trying to figure out the right syntax where to add events in the editor’s options. This is my code:
createeditor: function (row, cellvalue, editor, cellText, width, height) { // construct the editor. editor.jqxNumberInput({ decimalDigits: 4, inputMode: 'simple', max: 1, min: 0, theme: theme, width: width, height: height, spinButtons: true, spinMode: 'advanced' }); },
How can I add “valuechanged” events?
Thanks a lot!
September 24, 2013 at 8:37 am in reply to: Grid shows raw html code for special characters on edit Grid shows raw html code for special characters on edit #29465Thanks, Dimitar – all is working now.
September 24, 2013 at 6:11 am in reply to: Grid shows raw html code for special characters on edit Grid shows raw html code for special characters on edit #29444Further to my original post. It has nothing to do with editable cells, because dragging grid scroll bars cause the same effect. The issue can be easily replicated.
September 24, 2013 at 5:19 am in reply to: Categories with JSON data Categories with JSON data #29426Hi Peter,
Thanks for the reply. Is it possible to add groups after the dropdown list is rendered with the ‘updateItem’ directive?
I’ve tried modifying an existing dropdown list, but it makes no difference and doesn’t add categories.
September 13, 2013 at 11:29 pm in reply to: jqxGrid with custom jqxCheckBox – show on selected rows jqxGrid with custom jqxCheckBox – show on selected rows #28967Hi Peter,
Thanks – it was because of the missing checkbox bounding.
I still need to fix the issue with “removing” checkboxes from selected cells. I am playing with this code:
function clearGrid(){ for(var i=0; i<3; i++){ $("#row"+i+"myGrid div:nth-child(3)").html(""); //$("#row"+i+"myGrid div:nth-child(3)").children('div').hide(); //2nd option clears also borders - not good } }$("#myGrid").on('cellvaluechanged', function (event) { clearGrid();}
Actually, it works with just a few problems. I am shooting that function clearGrid() also on ‘celldoubleclick’ and ‘cellbeginedit’. it works, but still these checkboxes appear again when I start editing other cells.
My question: what jqxGrid events should I use to make sure that my function clearGrid() is triggered every time when it “redraws” checkboxes?
Maybe you could suggest a more elegant solution how to suppress selected checkboxes.
Thanks
September 13, 2013 at 7:41 am in reply to: jqxGrid with custom jqxCheckBox – show on selected rows jqxGrid with custom jqxCheckBox – show on selected rows #28917Thanks, Peter. One more question – I have a very strange behavior of column checkboxes, when defined directly as
columns = [{ text: 'Core', datafield: 'key', columntype: 'checkbox', editable: true, width: 45 }, {....
When initialized, all boxes are unchecked, then when clicking on one of the boxes, all other boxes change their status to “undefined”. Then I can click each of these checkboxes manually and change their state. What causes all checkboxes to be undefined after the 1st click?
Also, how can I change status of grid checkboxes programmatically, after the grid is initialized?
Thanks!
-
AuthorPosts