We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

Syncfusion controls in Dialog with ajax

Hi,

how to use ejControls in an external page that serves the content for ejDialog (contentType="ajax")
They are only initialized after opening the Dialog the second time.

And how to populate the dropdown control in that dialog?
When the dialog content was on the same page I used:
$("#dropdownReason").ejDropDownList({ dataSource: ej.DataManager({ url: "../AllocationInvoice/GetAllocationInvoiceReason", adaptor: new ej.WebApiAdaptor() }) });

I can set some values for the controls in the dialog from the page I am calling it, but not the dropdown.

Thank you.

1 Reply

SS Selvamani Sankarappan Syncfusion Team October 24, 2016 05:28 PM UTC

Hi Sember, 
Thanks for contacting Syncfusion Support, 
We have prepared the sample based on your requirement. Please refer to the following sample: 
 
In this sample, we have populated the data into the DropDownList and it’s called using ContentUrl property of the Dialog component. 
If you still face any difficulties, kindly get back to us. We will be happy to help you. 
Regards, 
Selvamani S 


Loader.
Up arrow icon