jQWidgets Forums
Forum Replies Created
-
Author
-
April 3, 2015 at 8:37 pm in reply to: WORKAROUND: custom-tooltip w/ jqxGrid WORKAROUND: custom-tooltip w/ jqxGrid #69555
Created a simple JSFiddle to show: http://jsfiddle.net/ei7024/acjhz/13/
Custom toolTip applied to first column!I was also looking for the same information and came across this posting. If what u say above is the case then what about this post?
http://www.jqwidgets.com/community/topic/grid-tooltip/#post-46399 and this method is still applicable.September 11, 2014 at 8:02 pm in reply to: Fire endcelledit on editor.jqxDropDownList select? Fire endcelledit on editor.jqxDropDownList select? #59453Thanks for the help! It would have taken me a while to reach the same conclusion!
September 11, 2014 at 7:32 pm in reply to: Confirmation on editing the grid Confirmation on editing the grid #59452btw gonley I think this may come in handy as a solution;
if (!oldvalue) {conf = true;} else {conf = confirm('Are you sure ?');} if(conf == true) { // IF TRUE alert(newvalue); return newvalue; } else { // IF FALSE - SHOW OLD VALUE alert(oldvalue); return oldvalue; }
the above code is added in the cellvaluechanging: function (row, column, columntype, oldvalue, newvalue) { //ABOVE CODE }
and then your code to update or not in the $(“#jqxgrid”).on(‘cellendedit’, function (event) {}If the user clicks cancel then the cellendedit will have newvalue = oldvalues…..
Hope it helps!
September 11, 2014 at 6:59 pm in reply to: Confirmation on editing the grid Confirmation on editing the grid #59449I was about to post a same request and would also like to know the answer to this question please!
In my case the cellendedit function is called at the time of select in the initeditor: function ()
editor.on('select',function(){ $("#jqxgrid").jqxGrid('endcelledit', row, "datafield", false);});
the following is the cellendedit function()
$("#jqxgrid").on('cellendedit', function (event) { var column = args.datafield; var row = args.rowindex; var value = args.value; var oldvalue = args.oldvalue; r = -1; if(oldvalue != '') { conf = confirm('Are you sure?'); } else { conf = true; } if(conf) { //PROCEED WITH CHANGES AND REFRESH GRID } else { //CANCEL REQUEST AND SET COLUMN TO OLD VALUE $("#jqxgrid").jqxGrid('setcellvalue', row, column, oldvalue); //<------DOES NOT SET THE VALUE } alert(oldvalue + '---->' + value); });
June 30, 2014 at 3:58 am in reply to: Jqxgrid Row Details expand and collapse Jqxgrid Row Details expand and collapse #56534Okay I managed to fix it…It now work as i intended it to the same principle as the OP had in mind. You can find the code here. It commented at the last few lines
June 30, 2014 at 1:19 am in reply to: Jqxgrid Row Details expand and collapse Jqxgrid Row Details expand and collapse #56533Hi Peter,
I was going to create a similar thread but though on continuing this as it may also prove beneficial to the OP. Now to the main reason, I am not sure if there was an error in the way I designed the function or not but I have come across an issue and not sure how to rectify it. The issue occurs only when a filter of some sort has been applied! I have modified the previous code here. If you apply a filter to the first name, I tried ‘an’, you will observe that the first 3 records may collapse fine but the last record will not! But if the filters are cleared there will be no issue.
The only thing i noticed was the (selectedrowindexes: [event.args.rowindex]) does not select the row that are visible.
Any input will be appreciated!
Thanks,
-
AuthorPosts