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

I want to generate column and rows with unique ids

Thread ID:





120270 Sep 16,2015 09:14 AM UTC Sep 17,2015 10:41 AM UTC JavaScript 1
Tags: ejGrid
Bharat Buddhadev
Asked On September 16, 2015 09:14 AM UTC

Technology must be angularjs and mvc

 I have three columns in my grid

like a, b , c 

Now I want to assign unique id to each row of column b.

So as a result all  td  of particular column should have unique id.

At column I want to generate unique id of grid cells

Balaji Marimuthu [Syncfusion]
Replied On September 17, 2015 10:41 AM UTC

Hi Bharat,

Thank you for contacting Syncfusion support.

Your requirement can be achieved by using the customAttributes property in the Grid columns. By using this property you can modify the styles and appearance of a particular column.
Please refer to the following sample and code example:
Sample: angularsupport

  angular.module('listCtrl', ['ejangular'])

        .controller("PhoneListCtrl", function ($scope) {

            $scope.columns =  [

                          { field: "EmployeeID", headerText: 'Employee ID', textAlign: ej.TextAlign.Right, width: 75 },

                          { field: "FirstName", headerText: 'First Name', textAlign: ej.TextAlign.Left, width: 100 },

                          { field: "City", headerText: 'City', textAlign: ej.TextAlign.Left, width: 100, customAttributes: { "id": "{{:EmployeeID}}" } },  // jsrender syntax usage in custom Attribute

                          { field: "Title", headerText: 'Title', textAlign: ej.TextAlign.Left, width: 120 },

                          { field: "Country", headerText: 'Country', textAlign: ej.TextAlign.Left, width: 100 }


            $scope.onLoadClick = function () {

                var data = window.employeeView;

                var targetsGrid = $("#targetsGrid").data("ejGrid");

                $scope.data = data;



Please refer to the help document in the following link:

Balaji Marimuthu


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