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. (Last updated on: June 24, 2019).
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:

Created:

Updated:

Platform:

Replies:

150457 Jan 7,2020 10:05 PM UTC Jan 8,2020 09:05 AM UTC Angular - EJ 2 1
loading
Tags: Grid
ICS
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 

App.component.html 

 <ejs-grid [dataSource]='data' allowPaging='true' (actionComplete)='actionComplete($event)' [pageSettings]='pageSettings' [editSettings]='editSettings' [toolbar]='toolbar'> 
  <e-columns> 
            <e-column field='CustomerName' headerText='Customer Name' width='120' [validationRules]='customeridrules'></e-column> 
. ..  
        </e-columns> 
 
    </ejs-grid> 
 
App.component.ts 
. . . 
    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'; 
} 
    } 
} 
 

Screenshot:  

 


If you are using Dialog template(EditSettingsTemplate

App.component.html 

<div class="control-section"> 
    <ejs-grid [dataSource]='data' allowPaging='true' [pageSettings]='pageSettings' [editSettings]='editSettings' [toolbar]='toolbar' (actionBegin)='actionBegin($event)'  
(actionComplete)='actionComplete($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> 
. . . 
        </ng-template> 
    </ejs-grid> 
</div> 
 

Screenshot:  

 


Please let us know, if you need further assistance. 

Regards, 
R.Dhivya 


CONFIRMATION

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