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
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Is it possible to Add a placeholder in Grid Popup's Add action

Thread ID:





150457 Jan 7,2020 10:05 PM UTC Jan 8,2020 09:05 AM UTC Angular - EJ 2 1
Tags: Grid
Asked On January 7, 2020 10:05 PM UTC

Is it possible to add a placeholder in Grid Poppup in only 

1. Add action 
2. Few columns (Address column )  as shown in screen shot below. 

Dhivya Rajendran [Syncfusion]
Replied On January 8, 2020 09:05 AM UTC

Hi Billing, 

Thanks for contacting us. 

Query: Is it possible to add a placeholder in Grid Poppup in only  

Yes. Is it possible to add a placeholder in Grid Popup in only.  If you are using Dialog editing, you can add the placeholder, like the below example 


 <ejs-grid [dataSource]='data' allowPaging='true' (actionComplete)='actionComplete($event)' [pageSettings]='pageSettings' [editSettings]='editSettings' [toolbar]='toolbar'> 
            <e-column field='CustomerName' headerText='Customer Name' width='120' [validationRules]='customeridrules'></e-column> 
. ..  
. . . 
    public ngOnInit(): void { 
        this.data = orderDetails; 
        this.editSettings = { allowEditing: true, allowAdding: true, allowDeleting: true, mode: 'Dialog' }; 
. ..  
    actionComplete (e) { 
if (e.requestType === 'add') { 
  e.form.elements.namedItem('CustomerName').placeholder = 'Enter the Customer Name'; 



If you are using Dialog template(EditSettingsTemplate


<div class="control-section"> 
    <ejs-grid [dataSource]='data' allowPaging='true' [pageSettings]='pageSettings' [editSettings]='editSettings' [toolbar]='toolbar' (actionBegin)='actionBegin($event)'  
        <ng-template #editSettingsTemplate let-data> 
             . . . 
                <div class="form-row"> 
                    <div class="form-group col-md-12"> 
                        <div class="e-float-input e-control-wrapper"> 
                            <textarea formControlName="ShipAddress" placeholder="Address should be in city/locality format"  id="ShipAddress" name="ShipAddress" type="text"></textarea> 
                            <span class="e-float-line"></span> 
. . . 



Please let us know, if you need further assistance. 



This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

Live Chat Icon For mobile
Live Chat Icon