Apr 21, 2013, 10:04 PM
[CLOSED] RAZOR javascript / gridpanel issue getActiveRecord.set
Hi Guys
Trying to set and value on an other column after changing a drop and with blur, of the back of a combobox, edit in a gridpanel
This Works
This does not
Javascript function run and gives back the expected value
.... Stuck
Trying to set and value on an other column after changing a drop and with blur, of the back of a combobox, edit in a gridpanel
This Works
l.Blur.Handler = "App." + "GridPanel_" + TempData["tabNumber"] + ".editingPlugin.getActiveRecord().set('AccountId','64');";
..... Gives me back the value and my renderer displays what I expectThis does not
l.Blur.Handler = "App." + "GridPanel_" + TempData["tabNumber"] + ".editingPlugin.getActiveRecord().set('AccountId',getDefaultAccount(App." + "GridPanel_" + TempData["tabNumber"] + ".editingPlugin.getActiveRecord().get('partyId')));";
Trying to do it dynamicallyJavascript function run and gives back the expected value
var getDefaultAccount = function (counterpartyId) {
Ext.net.DirectMethod.request({
url: 'ExtNet/getDefaultAccount?partyId=' + partyId,
success: function (result) {
var str = '' + result.data;
return str;
}
});
}
.... Stuck
Last edited by Daniil; Apr 24, 2013 at 5:17 PM.
Reason: [CLOSED]