[SOLVED] Eval and EvalAsync

Answered
0
0

Hi,

I have the following declaration for my widget (widget_txtTotal)

var num= $(this.container).dxNumberBox({
        value: 0.00,
        format: ' #,##0.00',
        rtlEnabled: true,
        showSpinButtons: false,
        showClearButton: false,
    });
    this.total = num.dxNumberBox('instance');


Then there is a problem I don't understand the difference

async private void button1_Click(object sender, EventArgs e)
 {
    await widget_txtTotal.EvalAsync("this.total.option('value',888)"); --System.ApplicationException: 'Unable to get property 'option' of undefined or null reference'
    widget_txtTotal.Eval("this.total.option('value',888)"); //successfully executed
 }

What did I miss? Please tell me how to do it correctly.

Thank you.

 

  • Levie (ITG)
    Please let me know if you’re still having this issue after updating to the latest release of Wisej. Best, Levie
  • You must to post comments
Great Answer
0
0

Hi Glenn,

 

Thanks for bringing this to our attention!  The fix for this issue should be available in the next development build within the next couple days!

Let us know if you still have issues after the update!

Best,

Levie

  • You must to post comments
Showing 1 result
Your Answer

Please first to submit.