serial numbers in grid

  1. #1

    serial numbers in grid

    Hi All,
    can somebody tell me, how to add seial numbers in first column of grid. ie if my grid is having 10 records then the first should column should show the 1 to 10 number for each row.


    Thanks and Regards
    Harshad Jadhav.
  2. #2

    RE: serial numbers in grid

    Hi Harshad,

    You can add a <ext:RowNumbererColumn /> to the ColumnModel of the GridPanel.


    Hope this helps.


    Geoffrey McGill
    Founder & CEO
  3. #3

    RE: serial numbers in grid

    Hi Geoffrey,

    Thanks for your help, but it is still not working. after adding that column i am getting following error.

    "Microsoft JScript runtime error: 'this.ds.fields.get(...).name' is null or not an object"

    i am atttatching code please have a look

    <ColumnModel ID="ColumnModel1" runat="server">
    <Columns>
    <ext:RowNumbererColumn />
    <ext:Column ColumnID="Id" Header="ID" Width="150" Hidden="true"/>
    <ext:Column ColumnID="DateTime" Header="Date" Width="150" />
    <ext:Column ColumnID="Name" Header="Name" />
    <ext:Column ColumnID="GroupId" Header="GroupId" />
    <ext:CommandColumn Header="View" Width="50">
    <Commands>
    <ext:GridCommand Icon="ApplicationViewGallery" CommandName="View" Text="" ToolTip-Text="View Record" />
    </Commands>
    </ext:CommandColumn>
    </Columns>
    </ColumnModel>


    Thanks and regards
    Harshad Jadhav

Similar Threads

  1. Format numbers
    By idtny in forum 1.x Help
    Replies: 5
    Last Post: Apr 17, 2014, 4:31 PM
  2. [CLOSED] textarea with line numbers
    By bogc in forum 1.x Premium Help
    Replies: 4
    Last Post: Sep 27, 2011, 11:37 AM
  3. Grid Serial no is not coming properly
    By vs.mukesh in forum 1.x Help
    Replies: 0
    Last Post: Apr 07, 2011, 10:32 AM
  4. Excel export, with numbers
    By FreddieBooo in forum 1.x Help
    Replies: 0
    Last Post: Jun 01, 2010, 5:46 AM
  5. Replies: 5
    Last Post: Feb 03, 2009, 11:49 AM

Posting Permissions