NumericTextBox inside a dialog

Hi,
I would like to put two NumericTextBox inside a dialog;
I tried this way but it does not work:

     .Content("<div>" + @Html.EJS().NumericTextBox("customformat3").Value(1025).Format("$ ###.##").Min(0).Render() + "</div>")

Can you help me?
Thanks in advance for the time you dedicate to me.
Barbara Inzitari.

3 Replies

KV Karthikeyan Viswanathan Syncfusion Team August 10, 2018 08:55 AM UTC

Hi Inzitari, 

Thanks for contacting Syncfusion support. 

Based on your scenario, You can render the templates with in dialog by using contentTemplate property. 

Please find the below code example: 

<code> 

@Html.EJS().Dialog("default_dialog").Header("SYNCFUSION").ContentTemplate(@<div> 
 
        @Html.EJS().NumericTextBox("customformat3").Value(1025).Format("$ ###.##").Min(0).Render() 
    </div>).Render() 
 
</code> 


Regards, 
Karthikeyan V. 



NI nimue August 10, 2018 05:09 PM UTC

Hi Karthikeyan,
Thank you very much for your help and for the example you attached to me, it was what I needed.
Barbara Inzitari.


KV Karthikeyan Viswanathan Syncfusion Team August 11, 2018 09:32 AM UTC

Hi Inzitari,   
We are glad to hear that your issue has been resolved.    
Regards,  
Karthikeyan V.  


Loader.
Up arrow icon