jQWidgets Forums
Forum Replies Created
-
Author
-
Hi Hristo,
This doesn’t work…Set the initial value of $scope.isCurrent = false; in the controller. the menu item is displayed in the output….it should be based on the initial value of the scope variable.
Here is the updated fiddle
Updated exampleActually now i am getting in Chrome too.
angular.js:13920 SyntaxError: Unexpected token <
at eval (<anonymous>)
at Function.globalEval (http://localhost:49553/Static/External/jquery-2.2.3.min.js:2:2640)
at ua (http://localhost:49553/Static/External/jquery-2.2.3.min.js:3:13185)
at n.fn.init.append (http://localhost:49553/Static/External/jquery-2.2.3.min.js:3:14467)
at b.(anonymous function)._render (http://localhost:49553/Static/External/jqwidgets/jqx-all.js:7:1588387)
at b.jqx.dataview.dataview.update (http://localhost:49553/Static/External/jqwidgets/jqx-all.js:7:1545023)
at Object.l [as func] (http://localhost:49553/Static/External/jqwidgets/jqx-all.js:7:1750891)
at i.jqx.dataAdapter.callBindingUpdate (http://localhost:49553/Static/External/jqwidgets/jqx-all.js:7:123061)
at i.jqx.dataAdapter.dataBind (http://localhost:49553/Static/External/jqwidgets/jqx-all.js:7:110371)
at http://localhost:49553/Static/App/AccountsCertification/accountsCertification.grid.directive.js:664:35Hi Hristo,
Here is the jsFiddle i created.
http://jsfiddle.net/0g0cocaz/4/
What i am trying to do is end the cell edit when a user selects a value in the column dropdown. this seems to be working for a few times and then the initeditor stops working for no reason….i click through some cells (10-15 times) and then the combobox doesn’t showup when i click in the cell.
createeditor: function (row, value, editor) {
editor.jqxComboBox({ source: countriesAdapter, displayMember: ‘label’, valueMember: ‘value’ });
},
initeditor: function(row, value, editor) {editor.on(‘select’, function(event) {
$(“#jqxgrid”).jqxGrid(‘endcelledit’, row, “countryCode”, false);
editor.off(‘select’);console.log(event);
})
}August 9, 2016 at 2:50 am in reply to: Change CELL background color when value changes Change CELL background color when value changes #86407There seems to be problem with this code
var cellendedit = function (row, datafield, columntype, oldvalue, newvalue)
{
if (oldvalue !== newvalue)
{
editedCells.push({ row: row, column: datafield });
}
};For Checkbox columns The OLDVALUE seems to have the new value and the newvalue is always undefined. Below is the link to jsfiddle
August 9, 2016 at 2:16 am in reply to: Change CELL background color when value changes Change CELL background color when value changes #86406Thanks for the reply….All cells seem to be changing except for the checkbox column….when I change the checkbox column the first time the color doesn’t change…but when I click on the checkbox again the color changes.
-
AuthorPosts