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 all rows , all cells with unique ids of gridview

Thread ID:





120271 Sep 16,2015 09:32 AM UTC Sep 17,2015 11:14 AM UTC JavaScript 1
Tags: ejGrid
Rakesh Advani
Asked On September 16, 2015 09:32 AM UTC

Technology must be angular js and mvc

 <div  id="targetsGrid" ej-grid e-datasource="data"

   $scope.setTargetList = function (targetList) {
            $scope.data = targetList


  I am sending some portion of code for your better understanding.

  I want to generate all rows , all cells with unique ids
Waiting for your quick reply.

Balaji Marimuthu [Syncfusion]
Replied On September 17, 2015 11:14 AM UTC

Hi Rakesh,

Thank you for contacting Syncfusion support.

Query:  I want to generate all rows , all cells with unique ids
If you want to generate the cells (td) with unique ids, use the customAttributes in the Grid columns. By using this property you can modify the styles and appearance of a particular column.

Please refer to the sample and help document in the following link:
Sample: sample120271
Document: http://help.syncfusion.com/js/grid/columns#custom-attribute

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

                           . . . .


            $scope.groupedcol = ["EmployeeID"];

            $scope.onLoadClick = function () {

                var data = window.employeeView;

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

                $scope.data = data;



Before proceeding further, could you please share the following details?
1.       Are you want to generate unique id’s to all rows (tr) and all cells (td)?
2.       Share the requirement to generate all rows and cells with unique ids.
3.       Please explain more details about how you want the unique ids which will be helpful to analyze your requirement and provide the better solution at the earliest.

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

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