Beautiful Buttons with Kendo UI in Angular v5 app

You may have used CSS for styling your buttons. Here is an easy solution to make your application buttons more effective and user-friendly without the hassle of CSS, i.e., Kendo UI Buttons. These buttons provide a clickable UI functionality with arbitrary content.

For using Kendo UI buttons, you need to install Kendo in your Angular application. To learn the process of installation, follow my previous article and make your Angular app ready.

Power Up your Angular 5 Application with Kendo UI

Kendo provides four types of buttons:

  1. Button
  2. ButtonGroup
  3. DropDownButton
  4. SplitButton

Example:

To get all the package components, import the ‘ButtonsModule’ in your application root module, like in this code:

imports: [

BrowserModule,

FormsModule,

HttpModule,


// Register the modules

BrowserAnimationsModule,

ButtonsModule

]

The package also exports the following modules for individual components:

  • ButtonModule
  • ButtonGroupModule
  • DropDownButtonModule
  • SplitButtonModule

Button:

Button is an Angular directive which detects user interaction and triggers a corresponding event. In Kendo UI Button, we have some wonderful features:

  1. Default Button

For example, I need to use a button for selecting a file from my local computer, so I can use this button with only text (which is the default type), or with text and icon, or may be with only folder icon without text.

Then, select a button acording to your need :

  1. Only Text : <button
    kendoButton>Open</button>
  2. Text with Icon: <button
    kendoButton [icon]=“‘folder'”>Open</button>
  3. Only Icon: <button
    kendoButton [icon]=“‘folder'”></button>
  1. Bare Button

you just need to use [look] property of kendo UI Buttons and change it to ‘[look]=bare’.

Examples:

  1. Only Text : <button
    kendoButton [look]=“‘bare'”>Open</button>
  2. Text with Icon: <button
    kendoButton [icon]=“‘folder'” [look]=“‘bare'”>Open</button>
  3. Only Icon: <button
    kendoButton [icon]=“‘folder'” [look]=“‘bare'”></button>
  1. Flat Button

Again, just change the [look] property to ‘flat’ like ‘ [look]=”‘flat'” ‘. The bare and flat buttons look almost same but select or mouse hover styles are a little bit different.

Examples:

  1. Only Text : <button
    kendoButton [look]=“‘flat'”>Open</button>
  2. Text with Icon: <button
    kendoButton [icon]=“‘folder'” [look]=“‘flat'”>Open</button>
  3. Only Icon: <button
    kendoButton [icon]=“‘folder'” [look]=“‘flat'”></button>
  1. Outline Button

Outline Button is used to have a button with in-built border style. Change your [look] property to ‘outline’.

Examples:

  1. Only Text : <button
    kendoButton [look]=“‘outline'”>Open</button>
  2. Text with Icon: <button
    kendoButton [icon]=“‘folder'” [look]=” ‘outline'”>Open</button>
  3. Only Icon: <button
    kendoButton [icon]=“‘folder'” [look]=” ‘outline'”></button>

More Features and Functionalities of Kendo UI Buttons:

  • Disabled Button

To make any button Disabled, set the disabled property to true only.

Examples:

<button
kendoButton [disabled]=“true”>Save</button>

You can use the same property with any type of buttons.

  • Icon Button

You can create your buttons more user-friendly by adding image, predefined, or custom icons to it. The button provides three properties for it:

  1. icon: For using the built-in Kendo UI icons, Like Folder, Open Folder, and more.

    <button
    kendoButton [icon]=“‘calendar'”>Events</button>

  2. iconClass: Adding FontAwesome and other font icons from required third-party CSS classes, use iconClass property.

    CSS URL

    <link
    rel=“stylesheet”
    href=https://maxcdn.bootstrapcdn.com/font-awesome/4.5.0/css/font-awesome.min.css&#8221;>

    Using in Button

    <button
    kendoButton [iconClass]=“‘fa fa-calendar fa fw'”> Events</button>

  3. imageURL: for using third-party images as icon from a specified URL.

    <button
    kendoButton [imageUrl]=“‘https://demos.telerik.com/kendo-ui/content/shared/icons/sports/snowboarding.png'&#8221;>Snowboarding</button>

    Your buttons must be like this:

  • Primary Button

    The Button enables you to highlight the actions to the user by enhancing its appearance.

    For making any type of button as Primary, set the primary property to true. Like:

<button
kendoButton [primary]=“true”>Open</button>

And your output will be like:

  • Toggleable Button

    Toggleable Button enables you to indicate whether it is active or inactive. To get this behavior, use the togglable property and set it to true.

<button
kendoButton [look]=“‘bare'” [togglable]=“true”>Submit</button>

See the output when it’s in Inactive mode:

Active:

Manage Events of Kendo UI Buttons:

If you need to manage your events in Kendo Button, just write your event name in small brackets (), with event name, like if you need to use Click event then write like this:
(click)=“functionName ()”

Use the bellow code for button:

<button
kendoButton [primary]=“true” (click)=“testClick()”
>Click Me</button>

“testClick” its function Name replace this with your function, need to be call. Now create a function in “aap.component.ts”, like:

public testClick(): void {

alert(“Kendo Button Click Event is Working !!”);

}

Now run your app in browser, check the page:


Now click to test your click event.


Now you can use any Events Click, focus or more.

Advertisements

Is Blockchain right for your business?

The Government of India, in its 2018 budget, has undertaken to explore the use of blockchain proactively for ushering in a digital economy. It has also made clear the distinction between blockchain (that is supports) and Bitcoin cryptocurrency (that it doesn’t support).

When is the right time for your business to implement blockchain technology? Is it the right time to invest your capital in the technology and if yes, then will your current capacity or core capabilities be able to bear the overwhelming potential that blockchain has to offer?

But what is blockchain exactly?
And what capabilities make it so attractive for enterprises? Blockchain is a disruptive technology trend that enables a shared, authentic, decentralized ledger that is:

SECURE: Blockchain uses strong cryptography to create transactions that are impervious to fraud and establishes a shared truth. Also, all the transactions are signed with the digital certificate.

SHARED: The real benefits of blockchain, over conventional technology, are achieved when we use it to link organizations to share information on a distributed ledger.

DISTRIBUTED: A blockchain can be distributed across multiple organizations and becomes more secure as replicas are added.

LEDGER: Every transaction is written into the ledger once and cannot be changed after the fact.


What kind of businesses is blockchain best for?

First and foremost, blockchain technology is adept for businesses where large amounts of data is transferred, updated and filtered by multiple users. The potential scenario to apply blockchain depends largely on that. Once we realize that there is a situation that requires the capabilities of blockchain, there arises the need to understand whether a public blockchain is required or an enterprise blockchain is essential.

But what is an enterprise blockchain? An enterprise blockchain (i.e. Hyperlegder, Ethereum Enterprise, Ripple, Quorum, etc.) is a distributed ledger with the following characteristics:

  • All the participants, and their digital identities, are known from one or many trusted organizations
  • Writes and read permissions are roles-based and usually requires consensus of several participants
  • Multiple algorithms are used for consensus

There are two types of enterprise blockchain:

  • Private: Usually managed by a single organization. Typically, the network participants are internal business units or divisions.
  • Consortium: In this case, the blockchain network is managed by multiple trusted organizations. New participants require a consensus of several participants.

Which industries can use blockchain? The potential impact of blockchain is significant across all sectors and industries—from banking to government to healthcare and beyond, as it:

  • Eliminates intermediaries increasing efficiency and speed.
  • Simplifies operations by reducing cost and time related to reconciliations and disputes.
  • Potentially enables new business models increasing revenue and savings.

According to top market analysts and leading consulting firms, the top five industries that blockchain will likely disrupt by 2020 are
financial services, government, real estate, supply chain management, and media distribution. Currently, most active customers using blockchain are financial services institutions, including insurance companies. However, the trend is rapidly shifting to other industries.

More interestingly, a sizeable percentage of blockchain implementations involve at least one participant from a second industry such as manufacturing, government or retail. A few sample customer examples include:

  • Bank of America and Microsoft Treasury using Blockchain in a Trade Finance scenario to improve the process of issuing a Standby Letter of Credit to a customer (SBLC) to a customer.
    Impact: The process has been reduced from 3-5 weeks to just 3-5 days.
  • Renault Group is working together with Microsoft and VISEO to create the first digital car maintenance book based on Blockchain and using Microsoft Azure capabilities.
  • Large food manufacturers and distributors are using blockchain to track their premium products journey from source to consumption efficiently, and to have a shared ledger as the single source of truth.

An easy way to get started with Blockchain technologies in the cloud. Microsoft Azure is taken up as a use case here. Microsoft Azure Blockchain is the cloud platform for BankChain, a blockchain consortium of 30 top banks. Companies are creating innovative applications on top of Azure for near real-time cross-border remittance at near zero cost, real-time peer-to-peer transfer systems with automated reconciliation, end-to-end loan syndication process management, vendor onboarding, NDA processing, and vendor rating and many more. The State Bank of India, India’s largest bank is using Primechain’s blockchain-enabled smart contracts and KYC.

For enterprises, they can look forward to using cloud technology to test the waters with blockchain’s enterprise readiness. Currently, Microsoft Azure supports the most widely used blockchain and distributed ledger protocols on Azure, including HyperLedger Fabric, R3 Corda, Quorum, Chain Core and BlockApps.

Some principles that enterprises should look forward to are as follows:

  • Blockchain on your terms: No one-size-fits-all approach — The platform and the ecosystem partners should make it easy to get started and iterate quickly with the blockchain of your choice, both on-premises and in the cloud.
  • Integrated with your business: Merge blockchain with the IT assets you already have. The platform should let you integrate blockchain with the cloud services your organization uses to power shared processes.
  • Ready for the enterprise: With the Coco Framework, Cryptlets, and Azure services integrations, Microsoft is addressing existing technology gaps with blockchain and helps organizations build durable enterprise-grade applications.

Contact us at info@gtmcatalyst.com if you want to get started on this new and exciting journey!!

Power Up your Angular 5 Application with Kendo UI

Are you an Angular Developer? If yes so which CSS or SCSS you are using for making your application better in User Experience?

In this post, I’ll tell you how you can use Kendo UI by Telerik to make applications that pop out to users. We will use the minimalist approach in this article by simply “enhancing” a button on the webpage.

I’ve divided this article into three steps:

  1. Download Kendo UI for React, Angular, jQuery.
  2. Create an Angular Application by Angular CLI
  3. Include Kendo UI to showcase the improved User Experience

So, let’s start and see what is Kendo UI and how to get it?

What is Kendo UI?

Kendo UI is an easy to use HTML 5 JavaScript framework by Telerik for building interactive and high-performance modern web applications and websites. Kendo UI comes with JavaScript files, images and style sheets and offers a library of 70+ UI widgets and features. The best part is that Kendo UI provides AngularJS and Bootstrap integration.

To get Kendo UI, browse to:  https://www.telerik.com/kendo-ui and login if you have a Telerik account already or click to ‘Get a Free Trial’.

Now you need to select an option to indicate in which Application you want to use Kendo UI. I selected Angular because I’ll be creating an Angular 5 application.

Next you will need to create a telerik.com account. After the account is created, you will be shown a Getting Started document by Telerik Developers. This is a quick start guide that you can refer.

As the next step, we will create a vanilla Angular app in which we will install Kendo UI.

For Angular development, we need to have Angular CLI installed on our computer. We can check the same as follows:

  1. Open Command Prompt and type "ng -v" use to check angular version.

If we do not have angular installed, the command prompt will give an error. In this case,  please install Angular CLI, from the following URL: https://cli.angular.io/

Type the following command at Node command prompt or Command Prompt of windows: "npm install -g @angular/cli"

After successful installation of Angular CLI try again the last Command to check Angular Version "ng -v". I hope now you’ll get version info on command prompt.

Let’s create our first Angular App using CLI  by using the following command:
"ng new my-first-project –style=scss"

Now your Angular application is successfully created. But still we don’t have Kendo UI in our app.

To add Kendo UI in the Angular app, use the following command:

"npm install --save @progress/kendo-angular-buttons @progress/kendo-angular-l10n @angular/animations"

Note: The Kendo UI components use Angular animations. As of the Angular 4/5 release, you have to install the @angular/animations package separately.

Now you have Kendo buttons available in your Angular application.

We need to edit our project and I’ll be using Visual Studio Code by Microsoft for the same.

Open that folder where created your Angular application “my-first-project”.

Now you can see all files and folders of your project in your Visual studio Explorer. src is that folder where your application is existing.

As we know in Angular application we have a module file “src/app/app.module.ts” so update that file with following code:

import { BrowserModule } from ‘@angular/platform-browser’;

import { NgModule } from ‘@angular/core’;

import { FormsModule } from ‘@angular/forms’;

import { HttpModule } from ‘@angular/http’;

import { AppComponent } from ‘./app.component’;

// Import the Animations module

import { BrowserAnimationsModule } from ‘@angular/platform-browser/animations’;

// Import the ButtonsModule

import { ButtonsModule } from ‘@progress/kendo-angular-buttons’;

@NgModule({

declarations: [

AppComponent

],

imports: [

BrowserModule,

FormsModule,

HttpModule,
// Register the modules

BrowserAnimationsModule,

ButtonsModule

],

providers: [],

bootstrap: [AppComponent]

})

export
class AppModule { }

Your code should look like the below:

Now we will add an input button from Kendo UI. Update your view file from path ‘src/app/app.component.html’ with the following code:

{{title}}

kendoButton (click)=“onButtonClick()”

[primary]=“true”>My Kendo UI Button

The code should look like the following:

We are almost done. The last change is to include a function in your default component that can be called on button click which updates the model value.

Update your app component ‘src/app/app.component.ts ‘ as follows:

import { Component } from ‘@angular/core’;

@Component({

selector: ‘app-root’,

templateUrl: ‘./app.component.html’,

styleUrls: [‘./app.component.scss’]

})

export class AppComponent {

title = ‘Hello World!’;

onButtonClick() {
this.title = ‘Hello from Kendo UI!’;

}

}

It is time to run the application. Now open terminal or Command prompt to start your application.

For built-in terminal in Visual Studio code press (ctrl + `) and run command:

'ng serve' to start web pack for angular application.

Note: The Kendo UI components use @angular-devkit/core from node modules. If you get the error as shown:

Then you have to install the @angular-devkit/core package separately by using command:

'npm I @angular-devkit/core'

After this again run 'ng serve' or 'ng serve –open' it’ll start listening our request on a default port 4200 in windows. We can change it if this port is busy by using command: 'ng serve –port <1234>' 1234 is any free port.

So, here is your first look of your application with a simple and plain button.

Now install Kendo Default Theme for you scss in application with command:

'npm install --save @progress/kendo-theme-default'

It will update your packages in application.

Now just update last file of this project ‘src/styles.scss’ to import the Kendo Theme:

@import “~@progress/kendo-theme-default/scss/all”;

This is how easy it is to get Kendo UI in your Angular v5 app.

Just run your application again with same command: 'ng serve –open'

With the stylesheet in place, you should see something like this in the browser:

012018_1355_powerupyour25

Hope you have enjoyed this simple tutorial on Getting Started with Angular with Kendo UI. The source code for this simple application will be available shortly.

To explore the other features of Kendo UI button, please visit: https://www.telerik.com/kendo-angular-ui/components/buttons/button/

We will be publishing more such guides. Come back for more!

Telerik Products now easily available in India via India Distributor

Diwali has just passed and the festivities are dialling down. Diwali has brought changes for Telerik in India and now I write this as an evangelist for Telerik/ Progress. In this blog post, I will list the changes and attempt to clarify if it has any impact on our community:

Telerik (a part of Progress) has changed its operations structurally in India. Indian Rupee billing was number one request from businesses who found USD billing to a US entity time taking and troublesome.

Telerik products will now be sold in India in Indian Rupees only via a distributor.While this does not affect you as a developer, your accounts team and business managers would love this change due to the following:

  1. A lot less hassle in making the payments done. Earlier, they had to get multiple forms (Form 15 CA & Form 15 CB) signed from a Chartered Accounts and make the payment via a wire transfer through the bank. This could take over 4-5 days to make a single payment and accrue additional charges for the wire transfer. Now, it is a simple NEFT or a UPI transfer.
  2. Lowering cost of projects to the customers. Earlier products like Telerik DevCraft couldn’t be used to offset indirect tax liability. With the new GST regime, your accounts team can offset the tax on their project lowering the cost of the implementation for their customers in India.

Isn’t this just great?

GTM final logo_512The new distributor is GTM Catalyst for the India market. What is even better is that I will be handling this new distributor organisation. This will bring the familiarity and continuity of business for you.

You may reach GTM Catalyst team for any questions or comments at: info@gtmcatalyst.com

To allay any questions in your mind, all the Telerik products continue to be available for sales and are fully supported by Telerik/ Progress. All products are moving full steam ahead including DevCraft, Kendo UI, Telerik Platform, Telerik Reporting, Sitefinity and Test Studio. Telerik (a Progress company) will continue to release new updates on a rigorous pace and continue to provide you with benefits of the latest technologies.

The latest webinar for R3 release for Telerik controls is now available here: https://www.youtube.com/watch?time_continue=10&v=sxv_7RnOwVI 

Lastly, we are eager to continue our India webinar series to share our learnings with you. We will be sending the webinar schedule to you shortly with an update here.

Remember to stay tuned here!

Getting Customers to Commit to your Mobile Application

The most obvious assumption on technology that is made by the product teams today is the need to be mobile first. A nice looking mobile app is built as the MVP in the spirit of mobile first. However, this mobile app fails to capture user attention. Familiar story?

There is a big realisation that I recently had while mentoring a startup that I am sharing here:

The goal of every business is to move customers to the Advocacy stage which enables a virtuous cycle to set in. This journey requires an important ingredient that is hard earned – Customer Commitment.

Here is a simple question – if you knew that there is a one time service that requires you to:

  1. Download an app
  2. Create an account
  3. Then do your first task

Would you use that service? Probably too much for a single use, right?

However, if you knew that this service is likely going to be used repeatedly by you, there would be little hesitation in downloading and using a mobile application (think Facebook/ Whatsapp/ Mobile Banking).  You can see that customer commitment is directly indicated by the UI they use.

Most business applications are unlikely to have the virality of Facebook/ Whatsapp or the criticality of  a banking/ payment app. In these cases, UI customer’s choice is like a commitment they make to a service. The web interface requires the least resistance followed by a phone call and mobile app requiring the most commitment. There is an emerging capability that sits somewhere between  phone call and mobile app – bots running on other highly utilized platforms like Facebook Messenger, Telegram, Skype. Customer Continuum

The business would definitely want the customer to use its mobile app due to its sticky nature or the tonne of data it provides. The indirect assumption is that the customer is now at the Affinity/ Advocacy stage.

The user commitment needs to be gradually earned from least resistance UI by providing them value there and then moving them to the next level of UI. Business otherwise may have a tough time convincing a customer to directly download a mobile app.

If you are responsible for customer adoption, then think about this continuum and creating Aha moments with the website experiences itself. Graduate them to bot experience in the mobile app they are familiar with. Structure this bot experience to be more awarding for the customer. The heightened customer stickiness would result in the customer committing to your mobile application.

This approach would yield better commitment to your mobile app from your customers.

Intelligent Process Automation is Eating the Outsourcing Cake

cogwheelprocessautomation_3310x1650-1024x510The IT revolution in India started with a need met by offshoring. The expensive human resources were replaced with cheaper human beings in another country.

With advent of new technology, the low end offshoring is finding their cake being eaten by an invisible opponent. This is visible in the lower revenues being forecasted by major Indian SIs. Somehow, the amount of outsourcing that the firms were doing earlier is not continuing. Intelligent Process Automation may be to be blamed. Continue reading

Demonetisation and Support by Progress Technologies

500currencynoteThe demonetisation of INR 500 and INR 1000 currency notes sent a shock wave across India. While people have been facing inconvenience because of this, the majority believe that this is an important step in clearing out our economy from the evils of “black” or unaccounted money.

The general implication is that the banking industry will attract huge deposits from CASA. This will enable better liquidity in the market leading to lower interest rates and improved business investments. Softening of inflation due to reduced monetary supply is also likely. Continue reading

Log Management and Analysis for Cloud Applications – Session Resources

Have you ever wondered what technology stack does professional cloud SaaS companies use for log management and analysis?

In this session, we cover a logging stack that can be considered for professional SaaS deployments. We compare log management tools for applications deployed in Cloud. We will dive deep into one such tool called SumoLogic. Continue reading

Tips to Improve Database Connectivity in .NET Applications

connection_string_iconWhen it comes to Data Access performance of .NET application, many people focus on the tuning and optimizing the Backend datasources. But there is lot to gain from just tuning your connectivity solutions for the need of your application.
This presentation focuses on how to tune your ADO.NET connectivity solution to get the best performance out of them.

 

Continue reading