Hi Chong,
We can access the title of Dialog using “title”
property. For adding new content, we can empty the content of Dialog and new
content can be placed using “contentUrl”. Then we can get the replaced
tile and content of Dialog control as shown as below,
[JavaSript] <code> <script type="text/javascript"> var dialog; $(function () { //
declaration dialog = $("#basicDialog").data('ejDialog'); }); function oncreate() { dialog.option("title", "Audi"); $('#basicDialog').html(""); dialog.option("contentUrl", "text.html"); } script> code> |
Note: “text.html” file is available in the project. Sample : Dialog Sample |
Please let us know
if you have further queries
Regards,
Kalpana K
Hi Chong,
Thank you for using
Syncfusion Products.
We can access the title of Dialog using “title”
property. For adding new content, we can empty the content of Dialog and new
content can be placed using “contentUrl”. Then we can get the replaced
tile and content of Dialog control.
[JavaSript] <code> <script type="text/javascript"> var dialog; $(function () { // declaration dialog =
$("#basicDialog").data('ejDialog'); }); function oncreate() {
dialog.option("title", "Audi"); $('#basicDialog').html("");
dialog.option("contentUrl", "text.html"); } script> code> |
Note: “text.html” file is available in the project. We have prepared a sample based on this and you
can find the sample under the following location: Sample : Dialog
Sample |
Please let us know if
you have further queries
Regards,
Kalpana K