EJ2 grid dialog truncates input (textbox) value when containing spaces; Also, eidt dialog displays blank (empty) text as '/'

I am using PHP / MySQL to fetch data and bind to grid. I have some data with white space. This data displays correctly in grid. However, when I try to edit in dialog, only the text before space is displayed in input. (Refer images attached)


Also, in edit dialog, if a value is blank (i.e. empty space) it is displayed as '/'


(Refer image attached)


Attachment: Display_issue_in_EJ2_edit_dialog_fd2bbf78.zip


1 Reply

PS Pavithra Subramaniyam Syncfusion Team October 15, 2021 12:47 PM UTC

Hi Sathya, 

Greetings from Syncfusion support. 

You can overcome this behavior by using the “” (use “${ShipAddress}” instead of ${ShipAddress}) while setting value to the input element inside the Dialog Template. Please refer to the below code example and sample link for more information. 

[index.html] 
 <input id="ShipAddress" name="ShipAddress" type="text" value="${ShipAddress}" /> 
  


Please get back to us if you need any further assistance on this. 

Regards, 
Pavithra S 


Loader.
Up arrow icon