Jun 05, 2014, 8:37 PM
[CLOSED] How to send parameters to listener with options
Ive been searching for a while but haven't had luck. I want to send a parameter to the DirectMethod defined on the listener. Thanks
Ext.Net.MenuItem mni = new Ext.Net.MenuItem();
mni.ID="mniRev"+row["EXPEDIENTE_RENEWAL_FORM"].ToString();
mni.Text="Revisi?n: "+row["EXPEDIENTE_RENEWAL_FORM"].ToString();
mni.AddListener("click", "function() { App.direct.Click_Event({isUpload: true, formId: 'form1'}); }");
mni.Render(mnuPrint, RenderMode.AddTo, true);
[DirectMethod]
public void Click_Event(string revID)
{
OpenPrint(revID);
}
Last edited by Daniil; Jun 06, 2014 at 4:40 AM.
Reason: [CLOSED]