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

Demo application with Angular2 integration?

Thread ID:

Created:

Updated:

Platform:

Replies:

124068 May 12,2016 10:37 PM UTC May 13,2016 12:44 PM UTC JavaScript 2
loading
Tags: ejmGrid
Stefan Tsalapatis
Asked On May 12, 2016 10:37 PM UTC

Do you have a demo application converted in Angular2 ?
thank you
Stefan

Stefan Tsalapatis
Replied On May 12, 2016 11:02 PM UTC

I would like to see how you handle in Angular2 the grid editing events
foe example the http://js.syncfusion.com/demos/web/#!/azure/grid/editing/externalformonlocaldata

Madhu Sudhanan P [Syncfusion]
Replied On May 13, 2016 12:44 PM UTC

Hi Stefan,  

Thanks for choosing Syncfusion products. 

The Grid events can be specified in the Angular 2 template as below. 

Template 


<ej-grid . . . (actionBegin)="onActionBegin($event)"> 
        <e-columns> 
            <e-column field="OrderID" headerText="Order ID" width="75" textalign="right"></e-column> 
. .  
        </e-columns> 
</ej-grid> 

 


Component 


@Component({ 
    . . . .  
   directives: [EJ_GRID_COMPONENTS, CORE_DIRECTIVES], 
    . . .  
}) 
export class DefaultComponent { 
    . . . . 
    onActionBegin(e: any){ 
        if(e.requestType == "beginedit" || e.requestType == "add") { 
            //Do something; 
        } 
    } 
} 
 

For your convenience we have also created a simple sample and the same can be downloaded from the below location. 


Please refer to the below link for available events in Grid. 


Regards, 
Madhu Sudhanan P 


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

or the page will be automatically redirected to 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

;