Read Only dialog box

Hi,

I want the display of the dialog box to be read only. No edit should be done.

  $("#basicDialog").ejDialog({
            width: 800,
            minWidth: 310,
            minHeight: 215,
            close: "onDialogClose",
            // target: ".control",
            enableModal: true,
            showOnInit: false,
            // position: { X: 250, Y: 200 },
            enableAnimation: true


        });


What extra must be added??

1 Reply

NP Narayanasamy Panneer Selvam Syncfusion Team February 23, 2018 01:57 PM UTC

Hi Shalini Raj, 
 
Thanks for using Syncfusion products. 
 
We have analyzed your query with shared code snippets. We can achieve read-only for all input based elements (such as textbox, numeric textbox, autocomplete, multiselect, etc.) which has used inside Dialog. Please use this below code snippet. 
 
Code Example: 
var inputElements = document.getElementById('formId'); 
for(var i=0,elementLength=inputElements.length;i<elementLength;i++) { 
           inputElements.elements[i].readOnly = true; 
 
Also, could you please confirm whether you are using “Essential JavaScript 1” or “Essential JavaScript 2” Dialog? So that, it will be helpful to address your query quickly from our end. 
 
Regards, 
Narayanasamy P. 


Loader.
Up arrow icon