I got a problem with my function "onOk" it a return call from xui.Ajax
I want to add rows to a treegrid, I use ns=this and in my switch I want to add row.
it seem that inside the switch I lost the ns variable. maybe it's a bug??? because it wont append with other languages.
I tried "this" and does't work too.
any clue?
csharp code
onOK: function(response){
ns = this;
switch(response){
case "adddomain":
var stroka=[{"value":"isv", "caption":"clientname", "id":"1"}];
ns.tg_listdomaine.insertRows(stroka);
break;
case "deletedomain":
break;
default:
}
}