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
Is there any references on the tensor product of presentable (1-)categories?
Why a symmetric relation is defined: ∀x∀y( xRy⟹yRx) and not ∀x∀y (xRy⟺yRx)?
The IT department bottlenecks progress. How should I handle this?
Open a doc from terminal, but not by its name
What is Cash Advance APR?
On a tidally locked planet, would time be quantized?
How to implement a feedback to keep the DC gain at zero for this conceptual passive filter?
Has any country ever had 2 former presidents in jail simultaneously?
Why can Carol Danvers change her suit colours in the first place?
How to explain what's wrong with this application of the chain rule?
What should you do when eye contact makes your subordinate uncomfortable?
Which one is correct as adjective “protruding” or “protruded”?
What if a revenant (monster) gains fire resistance?
How should I respond when I lied about my education and the company finds out through background check?
Redundant comparison & "if" before assignment
Is it improper etiquette to ask your opponent what his/her rating is before the game?
Why should universal income be universal?
A social experiment. What is the worst that can happen?
Is aluminum electrical wire used on aircraft?
Why does the Sun have different day lengths, but not the gas giants?
Does an advisor owe his/her student anything? Will an advisor keep a PhD student only out of pity?
Is it safe to use olive oil to clean the ear wax?
Pre-mixing cryogenic fuels and using only one fuel tank
How can "mimic phobia" be cured or prevented?
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
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
add a comment |
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
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
add a comment |
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
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
lightning-web-components lightning-datatable
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
add a comment |
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
add a comment |
1 Answer
1
active
oldest
votes
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.

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.
add a comment |
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
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
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.

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.
add a comment |
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.

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.
add a comment |
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.

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.
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.

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.
answered 3 hours ago
PatMcClellan__cPatMcClellan__c
831221
831221
add a comment |
add a comment |
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.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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
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