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.
Unfortunately, activation email could not send to your email. Please try again.

I want serial number in grid view

Thread ID:

Created:

Updated:

Platform:

Replies:

120285 Sep 17,2015 07:27 AM Sep 18,2015 08:07 AM JavaScript 1
loading
Tags: ejGrid
Bharat Buddhadev
Asked On September 17, 2015 07:27 AM


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 08:07 AM

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>

        </div>
    </div>

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


If we misunderstood your requirement, please provide more details.

Regards,
Sunil Prabakar C

CONFIRMATION

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.

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.

;