jQWidgets Forums
Forum Replies Created
-
Author
-
June 5, 2015 at 12:19 am in reply to: Paste value to grid cells of jqxNumberInput Paste value to grid cells of jqxNumberInput #72053
Thanks Peter. Still I have to find the way of doing it as the client requires a mouse paste functionality.
Can you point me into a right direction? I understand that I should bind ‘paste’ event and set the cell value equal to the pasted value, but cannot figure out as where to extract the pasted value from jqxNumberInput….
Any advice would be appreciated.
Thanks, Peter. It works fine.
December 3, 2014 at 6:49 am in reply to: Removing labels in aggregates Removing labels in aggregates #63682Answered my own question: aggregatesrenderer is the solution to render any output strings in labels. Perhaps Peter or Dimitar can suggest a more simple way of doing that.
November 26, 2014 at 4:46 am in reply to: Excel export number format Excel export number format #63325Hello Dimitar,
The cells are rendered as jqxInputNumber editor. The example of such column:
var getNumCol = function(gridID,ttl,dfld, minv,maxv,clname,w,dec,hdn,inpmode){ if(clname === undefined)clname = ""; if(w === undefined)w = 80; if(inpmode === undefined)inpmode = 'simple'; if(dec === undefined)dec = 4; if(hdn === undefined)hdn = false; var wObj = { text: ttl, width: w, //cellsformat: 'f4', columntype: 'custom', align: 'right', cellclassname: clname, datafield: dfld, cellsalign: 'right', hidden: hdn, createeditor: function(row, cellvalue, editor, cellText, width, height){ editor.jqxNumberInput({ decimalDigits: dec, inputMode: inpmode, max: maxv, min: minv, theme: theme, value: 0, width: width, height: height, spinButtons: true, spinMode: 'advanced' }); editor.on('valuechanged', function (event) { if (currentRow == -1) currentRow = row; var value = editor.val(); if (typeof gridID == 'string'){ $(gridID).jqxGrid('setcellvalue', currentRow, dfld, value); }else{ gridID.jqxGrid('setcellvalue', currentRow, dfld, value); } }); }, initeditor: function (row, cellvalue, editor, celltext, pressedkey) { currentRow = row; if(cellvalue === undefined){ var v = 0; }else{ var v = parseFloat(cellvalue); } editor.jqxNumberInput({ decimal: v }); }, geteditorvalue: function (row, cellvalue, editor) { return editor.val(); } }; return [wObj]; }
If I add a property
cellsformat: "f2"
, the jqxNumberInput doesn’t work: jqxgrid.edit.js generates an error: TypeError: Object has no method ‘indexOf’It looks like adding cells formats to column property conflicts with jqxNumberInput.
Any sugestions?
November 21, 2014 at 1:09 am in reply to: Grid column sorting: mixed types Grid column sorting: mixed types #63107Thanks, Peter. It helped a lot.
Cheers,
AndyNovember 10, 2014 at 10:27 pm in reply to: Change properties of columntype: 'button' dynamically Change properties of columntype: 'button' dynamically #62491Thank you, Dimitar!
November 6, 2014 at 7:06 am in reply to: Change jqxDropDownList editor dynamically Change jqxDropDownList editor dynamically #62260I have figured it out. It looks as the only way of changing the source of jqxDropDownList is to add conditions in initeditor, i.e. trigger the source change when revoking the editor.
Thanks, Dimitar. It seems to be working.
A quick question. When I click on the date field, it shows a bold number (day) on the right. How can I show the calendar icon here, like in that example (http://www.jqwidgets.com/jquery-widgets-demo/demos/jqxgrid/cellediting.htm?classic)?
Thanks!
June 20, 2014 at 6:20 am in reply to: Context menu on dropdown list Context menu on dropdown list #56130Anyway, I’ve managed to get it working on the jqxDropDownList with checkboxes. Thanks.
June 19, 2014 at 10:59 pm in reply to: Context menu on dropdown list Context menu on dropdown list #56116Hello Dimitar,
What about dropdown with checkboxes? The right click doesn’t close the dropdown. Can it be done for checkboxes?
Thanks
May 29, 2014 at 10:55 am in reply to: Re-size grid width – best solution Re-size grid width – best solution #55074Thanks, Peter. Let me try this. Actually, it could be quite a nice feature to resize the grid directly – similar to column resize.
May 7, 2014 at 6:18 am in reply to: Incorrect item pointing for Group Lists Incorrect item pointing for Group Lists #54083Thanks, Peter. Reloading the source data is exactly what I am doing now, but it is not a very good solution, because involves an extra call to the server and additional database queries. Any chances you can get this issue fixed in the next release?
May 7, 2014 at 3:12 am in reply to: Wrong selected item for Group lists Wrong selected item for Group lists #54070Hello Peter,
It doesn’t work – take a look: http://jsfiddle.net/6yfCg/5/
Select “test1298” and click “check this”. You will see that it returns a different value/label.
Any suggestions?
Thanks
April 3, 2014 at 5:31 am in reply to: How to set up dropDown of grid column programmatically How to set up dropDown of grid column programmatically #52459OK, I understand that. Is there a way to enter an edit mode programmatically, i.e. without clicking the cell manually? I guess I could do it via begincelledit which will invoke the initeditor. Correct?
April 3, 2014 at 5:16 am in reply to: How to set up dropDown of grid column programmatically How to set up dropDown of grid column programmatically #52457Peter, still I don’t understand – is it possible to set up all dropdowns in a column programmatically? If yes, could you please share am example?
-
AuthorPosts