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 serial number in grid view

Thread ID:





120285 Sep 17,2015 11:27 AM UTC Sep 18,2015 12:07 PM UTC JavaScript 1
Tags: ejGrid
Bharat Buddhadev
Asked On September 17, 2015 11:27 AM UTC

Thanks for your previous reply.

 Technology Angular js and mvc

I want to display Sr.No in gridview.

 1 column name  Sr.No
 2 column like student Name 

Sunil Prabakar C [Syncfusion]
Replied On September 18, 2015 12:07 PM UTC

Hi Bharat,

Thanks for contacting Syncfusion support. Since we used dot for complex dataSource, it cannot be used (.) in field name. Hence if we use dot in field name, it will consider as a complex property. So, please remove dot from Sr. No field name and bind it to the Grid using field API of column property. You are able to use any other special characters or using full name instead of using dot in field name.  Please refer to the below code example and sample for more information on field API

  <div id="grid" ej-grid e-datasource="data" e-allowkeyboardnavigation='true'  e-pagesettings-pagesize="6" e-pagesettings-currentpage="1" e-pagesettings-pagecount="6" e-allowpaging="true">

        <div e-columns>

            <div e-column e-headertext="SrNo" e-field="Sr.No" e-isprimarykey=" true" e-textalign="right"></div>

            <div e-column e-field="StudentName" e-textalign="right"></div>


Sample link: http://jsplayground.syncfusion.com/2xerq5p3

If we misunderstood your requirement, please provide more details.

Sunil Prabakar C


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