lightning-datatable row number error2019 Community Moderator ElectionLightning datatable dynamic creation issueAction menus drop down not displayed when using Lightning DatatableHow to insert a component into a lightning: datatable component rowLightning Datatable row selection issue in PaginationShow Save and Cancel buttons always on lightning datatableLightning:datatable dynamically disable checkbox per rowCan we specify a minimum height for a lightning:datatable/lightning-datatable?Hide the default row number from 1st columnlightning-datatable - remove header actionsLightning DataTable - AutoSave DraftValues

On a tidally locked planet, would time be quantized?

A social experiment. What is the worst that can happen?

Open a doc from terminal, but not by its name

How do you respond to a colleague from another team when they're wrongly expecting that you'll help them?

Removing files under particular conditions (number of files, file age)

Is (0,1] a closed or open set?

Is there a RAID 0 Equivalent for RAM?

What was this official D&D 3.5e Lovecraft-flavored rulebook?

Redundant comparison & "if" before assignment

Non-trope happy ending?

Why Shazam when there is already Superman?

The probability of Bus A arriving before Bus B

How to create ADT in Haskell?

What was the exact wording from Ivanhoe of this advice on how to free yourself from slavery?

How could a planet have erratic days?

Store Credit Card Information in Password Manager?

Symbol used to indicate indivisibility

Has any country ever had 2 former presidents in jail simultaneously?

Is this toilet slogan correct usage of the English language?

Which one is correct as adjective “protruding” or “protruded”?

What is this called? Old film camera viewer?

Lowest total scrabble score

When were female captains banned from Starfleet?

How to implement a feedback to keep the DC gain at zero for this conceptual passive filter?



lightning-datatable row number error



2019 Community Moderator ElectionLightning datatable dynamic creation issueAction menus drop down not displayed when using Lightning DatatableHow to insert a component into a lightning: datatable component rowLightning Datatable row selection issue in PaginationShow Save and Cancel buttons always on lightning datatableLightning:datatable dynamically disable checkbox per rowCan we specify a minimum height for a lightning:datatable/lightning-datatable?Hide the default row number from 1st columnlightning-datatable - remove header actionsLightning DataTable - AutoSave DraftValues










2















I have a lightning web component, using lighting-datatable with row-numbers visible. This works well up to 99 records... then I get this:



[![enter image description here][1]][1]



My component code:



 <lightning-datatable
key-field="id"
data=responses
columns=columns
onsort=handleSort
sorted-by=sortedBy
sorted-direction=sortedDirection
onrowaction=handleRowAction
enable-infinite-loading
onloadmore=handleLoadMore>
</lightning-datatable>


Is the row numbering limited, am I doing something wrong, or is this a bug? Any workarounds?










share|improve this question
























  • Please add the part that's an answer as an answer. You're allowed to answer your own questions here.

    – sfdcfox
    3 hours ago











  • Got it. I was thinking I had to wait before I could answer my own question... but I see the delay is just in accepting it.

    – PatMcClellan__c
    3 hours ago











  • yep. You're absolutely right. You've got my +1.

    – sfdcfox
    3 hours ago















2















I have a lightning web component, using lighting-datatable with row-numbers visible. This works well up to 99 records... then I get this:



[![enter image description here][1]][1]



My component code:



 <lightning-datatable
key-field="id"
data=responses
columns=columns
onsort=handleSort
sorted-by=sortedBy
sorted-direction=sortedDirection
onrowaction=handleRowAction
enable-infinite-loading
onloadmore=handleLoadMore>
</lightning-datatable>


Is the row numbering limited, am I doing something wrong, or is this a bug? Any workarounds?










share|improve this question
























  • Please add the part that's an answer as an answer. You're allowed to answer your own questions here.

    – sfdcfox
    3 hours ago











  • Got it. I was thinking I had to wait before I could answer my own question... but I see the delay is just in accepting it.

    – PatMcClellan__c
    3 hours ago











  • yep. You're absolutely right. You've got my +1.

    – sfdcfox
    3 hours ago













2












2








2








I have a lightning web component, using lighting-datatable with row-numbers visible. This works well up to 99 records... then I get this:



[![enter image description here][1]][1]



My component code:



 <lightning-datatable
key-field="id"
data=responses
columns=columns
onsort=handleSort
sorted-by=sortedBy
sorted-direction=sortedDirection
onrowaction=handleRowAction
enable-infinite-loading
onloadmore=handleLoadMore>
</lightning-datatable>


Is the row numbering limited, am I doing something wrong, or is this a bug? Any workarounds?










share|improve this question
















I have a lightning web component, using lighting-datatable with row-numbers visible. This works well up to 99 records... then I get this:



[![enter image description here][1]][1]



My component code:



 <lightning-datatable
key-field="id"
data=responses
columns=columns
onsort=handleSort
sorted-by=sortedBy
sorted-direction=sortedDirection
onrowaction=handleRowAction
enable-infinite-loading
onloadmore=handleLoadMore>
</lightning-datatable>


Is the row numbering limited, am I doing something wrong, or is this a bug? Any workarounds?







lightning-web-components lightning-datatable






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited 3 hours ago







PatMcClellan__c

















asked 4 hours ago









PatMcClellan__cPatMcClellan__c

831221




831221












  • Please add the part that's an answer as an answer. You're allowed to answer your own questions here.

    – sfdcfox
    3 hours ago











  • Got it. I was thinking I had to wait before I could answer my own question... but I see the delay is just in accepting it.

    – PatMcClellan__c
    3 hours ago











  • yep. You're absolutely right. You've got my +1.

    – sfdcfox
    3 hours ago

















  • Please add the part that's an answer as an answer. You're allowed to answer your own questions here.

    – sfdcfox
    3 hours ago











  • Got it. I was thinking I had to wait before I could answer my own question... but I see the delay is just in accepting it.

    – PatMcClellan__c
    3 hours ago











  • yep. You're absolutely right. You've got my +1.

    – sfdcfox
    3 hours ago
















Please add the part that's an answer as an answer. You're allowed to answer your own questions here.

– sfdcfox
3 hours ago





Please add the part that's an answer as an answer. You're allowed to answer your own questions here.

– sfdcfox
3 hours ago













Got it. I was thinking I had to wait before I could answer my own question... but I see the delay is just in accepting it.

– PatMcClellan__c
3 hours ago





Got it. I was thinking I had to wait before I could answer my own question... but I see the delay is just in accepting it.

– PatMcClellan__c
3 hours ago













yep. You're absolutely right. You've got my +1.

– sfdcfox
3 hours ago





yep. You're absolutely right. You've got my +1.

– sfdcfox
3 hours ago










1 Answer
1






active

oldest

votes


















2














Just figured it out myself. I didn't have show-row-number-column in the html. Now it works fine. But, that brings up a different question... what if I didn't want to show row numbers. The docs suggest that I would just leave show-row-number-column out of the markup and then they won't show. But I didn't have it in the markup before and they displayed.



enter image description here



Updated markup:



<lightning-datatable
key-field="id"
data=responses
columns=columns
onsort=handleSort
sorted-by=sortedBy
sorted-direction=sortedDirection
onrowaction=handleRowAction
show-row-number-column
enable-infinite-loading
onloadmore=handleLoadMore>
</lightning-datatable>


BTW, there's a lot more info in the dev guide here that isn't detailed in the reference materials. In particular, how to handle draftValues, which is necessary to get the Cancel/Save buttons to disappear after an inline edit.






share|improve this answer






















    Your Answer








    StackExchange.ready(function()
    var channelOptions =
    tags: "".split(" "),
    id: "459"
    ;
    initTagRenderer("".split(" "), "".split(" "), channelOptions);

    StackExchange.using("externalEditor", function()
    // Have to fire editor after snippets, if snippets enabled
    if (StackExchange.settings.snippets.snippetsEnabled)
    StackExchange.using("snippets", function()
    createEditor();
    );

    else
    createEditor();

    );

    function createEditor()
    StackExchange.prepareEditor(
    heartbeatType: 'answer',
    autoActivateHeartbeat: false,
    convertImagesToLinks: false,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: null,
    bindNavPrevention: true,
    postfix: "",
    imageUploader:
    brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
    contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
    allowUrls: true
    ,
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    );



    );













    draft saved

    draft discarded


















    StackExchange.ready(
    function ()
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsalesforce.stackexchange.com%2fquestions%2f255027%2flightning-datatable-row-number-error%23new-answer', 'question_page');

    );

    Post as a guest















    Required, but never shown

























    1 Answer
    1






    active

    oldest

    votes








    1 Answer
    1






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    2














    Just figured it out myself. I didn't have show-row-number-column in the html. Now it works fine. But, that brings up a different question... what if I didn't want to show row numbers. The docs suggest that I would just leave show-row-number-column out of the markup and then they won't show. But I didn't have it in the markup before and they displayed.



    enter image description here



    Updated markup:



    <lightning-datatable
    key-field="id"
    data=responses
    columns=columns
    onsort=handleSort
    sorted-by=sortedBy
    sorted-direction=sortedDirection
    onrowaction=handleRowAction
    show-row-number-column
    enable-infinite-loading
    onloadmore=handleLoadMore>
    </lightning-datatable>


    BTW, there's a lot more info in the dev guide here that isn't detailed in the reference materials. In particular, how to handle draftValues, which is necessary to get the Cancel/Save buttons to disappear after an inline edit.






    share|improve this answer



























      2














      Just figured it out myself. I didn't have show-row-number-column in the html. Now it works fine. But, that brings up a different question... what if I didn't want to show row numbers. The docs suggest that I would just leave show-row-number-column out of the markup and then they won't show. But I didn't have it in the markup before and they displayed.



      enter image description here



      Updated markup:



      <lightning-datatable
      key-field="id"
      data=responses
      columns=columns
      onsort=handleSort
      sorted-by=sortedBy
      sorted-direction=sortedDirection
      onrowaction=handleRowAction
      show-row-number-column
      enable-infinite-loading
      onloadmore=handleLoadMore>
      </lightning-datatable>


      BTW, there's a lot more info in the dev guide here that isn't detailed in the reference materials. In particular, how to handle draftValues, which is necessary to get the Cancel/Save buttons to disappear after an inline edit.






      share|improve this answer

























        2












        2








        2







        Just figured it out myself. I didn't have show-row-number-column in the html. Now it works fine. But, that brings up a different question... what if I didn't want to show row numbers. The docs suggest that I would just leave show-row-number-column out of the markup and then they won't show. But I didn't have it in the markup before and they displayed.



        enter image description here



        Updated markup:



        <lightning-datatable
        key-field="id"
        data=responses
        columns=columns
        onsort=handleSort
        sorted-by=sortedBy
        sorted-direction=sortedDirection
        onrowaction=handleRowAction
        show-row-number-column
        enable-infinite-loading
        onloadmore=handleLoadMore>
        </lightning-datatable>


        BTW, there's a lot more info in the dev guide here that isn't detailed in the reference materials. In particular, how to handle draftValues, which is necessary to get the Cancel/Save buttons to disappear after an inline edit.






        share|improve this answer













        Just figured it out myself. I didn't have show-row-number-column in the html. Now it works fine. But, that brings up a different question... what if I didn't want to show row numbers. The docs suggest that I would just leave show-row-number-column out of the markup and then they won't show. But I didn't have it in the markup before and they displayed.



        enter image description here



        Updated markup:



        <lightning-datatable
        key-field="id"
        data=responses
        columns=columns
        onsort=handleSort
        sorted-by=sortedBy
        sorted-direction=sortedDirection
        onrowaction=handleRowAction
        show-row-number-column
        enable-infinite-loading
        onloadmore=handleLoadMore>
        </lightning-datatable>


        BTW, there's a lot more info in the dev guide here that isn't detailed in the reference materials. In particular, how to handle draftValues, which is necessary to get the Cancel/Save buttons to disappear after an inline edit.







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered 3 hours ago









        PatMcClellan__cPatMcClellan__c

        831221




        831221



























            draft saved

            draft discarded
















































            Thanks for contributing an answer to Salesforce Stack Exchange!


            • Please be sure to answer the question. Provide details and share your research!

            But avoid


            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.

            To learn more, see our tips on writing great answers.




            draft saved


            draft discarded














            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsalesforce.stackexchange.com%2fquestions%2f255027%2flightning-datatable-row-number-error%23new-answer', 'question_page');

            );

            Post as a guest















            Required, but never shown





















































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown

































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown







            Popular posts from this blog

            Category:Fedor von Bock Media in category "Fedor von Bock"Navigation menuUpload mediaISNI: 0000 0000 5511 3417VIAF ID: 24712551GND ID: 119294796Library of Congress authority ID: n96068363BnF ID: 12534305fSUDOC authorities ID: 034604189Open Library ID: OL338253ANKCR AUT ID: jn19990000869National Library of Israel ID: 000514068National Thesaurus for Author Names ID: 341574317ReasonatorScholiaStatistics

            Reverse int within the 32-bit signed integer range: [−2^31, 2^31 − 1]Combining two 32-bit integers into one 64-bit integerDetermine if an int is within rangeLossy packing 32 bit integer to 16 bitComputing the square root of a 64-bit integerKeeping integer addition within boundsSafe multiplication of two 64-bit signed integersLeetcode 10: Regular Expression MatchingSigned integer-to-ascii x86_64 assembler macroReverse the digits of an Integer“Add two numbers given in reverse order from a linked list”

            Kiel Indholdsfortegnelse Historie | Transport og færgeforbindelser | Sejlsport og anden sport | Kultur | Kendte personer fra Kiel | Noter | Litteratur | Eksterne henvisninger | Navigationsmenuwww.kiel.de54°19′31″N 10°8′26″Ø / 54.32528°N 10.14056°Ø / 54.32528; 10.14056Oberbürgermeister Dr. Ulf Kämpferwww.statistik-nord.deDen danske Stats StatistikKiels hjemmesiderrrWorldCat312794080n790547494030481-4