jQWidgets Forums
Forum Replies Created
-
Author
-
October 12, 2018 at 1:48 pm in reply to: JqxGrid shift + mouse click selection problem JqxGrid shift + mouse click selection problem #102373
hi i am fresher can anyone help me it very urgent in my combobox i have three option a,b,c and a is selected automatically its jqwidgets by default function or anything else if not so please reply me .i want to show when a is selected then b will be show as disable and when b is selected a show as disable.i can try with this code but not work please help me.
$(‘#hello’).on(‘select’, function (event) {
var args = event.args;
//console.log(“it is for selcet the item in box”+JSON.stringify(args));
if (args) {
// index represents the item’s index.
var index = args.index;
var item = args.item;
var label = item.label;
var id = item.id;
console.log(“id:”+index);
if (label === ‘a’)
{
$(“#network_tags”).jqxComboBox(‘disableItem’, ‘b’);
}
if(label === ‘b’)
{
$(“#network_tags”).jqxComboBox(‘disableItem’, ‘a’);
}
$scope.networkTagsSelected.push(label);
console.log(“$scope.networkTagsSelected: ” + JSON.stringify($scope.networkTagsSelected));
}
});i try it but it not work for me
October 12, 2018 at 1:44 pm in reply to: Using array.push to add and then update combox source Using array.push to add and then update combox source #102372hi i am fresher can anyone help me it very urgent in my combobox i have three option a,b,c and a is selected automatically its jqwidgets by default function or anything else if not so please reply me .i want to show when a is selected then b will be show as disable and when b is selected a show as disable.i can try with this code but not work please help me.
$(‘#hello’).on(‘select’, function (event) {
var args = event.args;
//console.log(“it is for selcet the item in box”+JSON.stringify(args));
if (args) {
// index represents the item’s index.
var index = args.index;
var item = args.item;
var label = item.label;
var id = item.id;
console.log(“id:”+index);
if (label === ‘a’)
{
$(“#network_tags”).jqxComboBox(‘disableItem’, ‘b’);
}
if(label === ‘b’)
{
$(“#network_tags”).jqxComboBox(‘disableItem’, ‘a’);
}
$scope.networkTagsSelected.push(label);
console.log(“$scope.networkTagsSelected: ” + JSON.stringify($scope.networkTagsSelected));
}
});October 12, 2018 at 1:16 pm in reply to: How I can set selected value to jqxdropdownlist on pageload How I can set selected value to jqxdropdownlist on pageload #102370hi i am fresher can anyone help me it very urgent in my combobox i have three option a,b,c and a is selected automatically its jqwidgets by default function or anything else if not so please reply me .i want to show when a is selected then b will be show as disable and when b is selected a show as disable.i can try with this code but not work please help me.
$(‘#hello’).on(‘select’, function (event) {
var args = event.args;
//console.log(“it is for selcet the item in box”+JSON.stringify(args));
if (args) {
// index represents the item’s index.
var index = args.index;
var item = args.item;
var label = item.label;
var id = item.id;
console.log(“id:”+index);
if (label === ‘a’)
{
$(“#network_tags”).jqxComboBox(‘disableItem’, ‘b’);
}
if(label === ‘b’)
{
$(“#network_tags”).jqxComboBox(‘disableItem’, ‘a’);
}
$scope.networkTagsSelected.push(label);
console.log(“$scope.networkTagsSelected: ” + JSON.stringify($scope.networkTagsSelected));
}
}); -
AuthorPosts