Monday, June 25, 2018

Encoding and Decoding in Web Development


In this post , we will see how to handle encoding and decoding of data in javascript . Recently , I worked on a project where I had to read paragraphs of data stored in a database column which can be of type VARCHAR2 or CLOB .  This data needs to be transmitted as JSON and then after some processing , should be displayed on a web page . This data had some special  characters like à  stored in the database .When i rendered this content in a browser  surprisingly I saw some weird characters  instead of the character à . Debugging this issue seemed like a nightmare before understanding the encoding and decoding concepts . So let’s understand these concepts first and then see a solution to such problems .

Monday, June 11, 2018

Generate a downloadable CSV File from JSON - AngularJS



In this tutorial we will see how to generate a csv from json (client-side) and then be able to download the file in all modern browsers. The solution provided below in this post is tested in chrome , firefox  and  safari .

Friday, May 25, 2018

Using aggregation in ui-grid AngularJS


What is Aggregation and how to use aggregation in ui-grid ?

Thursday, May 24, 2018

Setup Hamburger Menu on ui-grid -AngularJS

In this post we will setup a hamburger grid menu on the ui-grid.

The hamburger grid menu enables you to show all the grid level actions at one place .This is a very simple task . Just include all the required modules and dependencies for angular ui-grid to work as shown in the example plunker below . Once this is done let’s configure the gridoptions to enable grid menu and populate the menu options .

Wednesday, May 23, 2018

Setup Right click event on a row in ui-grid - AngularJS


In this post we will see how to setup a custom right click menu (context menu) on a ui-grid row .