fluentui icon indicating copy to clipboard operation
fluentui copied to clipboard

[DetailsList] Could you add a prop to disable the select event on the specified column? Or recommand a workaround?

Open jieqiu0129 opened this issue 7 years ago • 7 comments

Describe the feature that you would like added

In the single page website, when I render a link in the details list and then click on the link, it always trigger the onSelectionChanged event, then trigger the link click event. For some perf reasons, I need: when I click link, it doesn't trigger onSelectionChanged event...

So could you add a prop to disable the onSelect event on the specified column?Or some workaround you recommend? Thanks

What component or utility would this be added to

DetailsList

Additional context/screenshots

jieqiu0129 avatar Oct 17 '19 01:10 jieqiu0129

This may already be possible with the existing SelectionZone related props. Requires some testing.

KevinTCoughlin avatar Oct 17 '19 04:10 KevinTCoughlin

This may already be possible with the existing SelectionZone related props. Requires some testing.

Thanks for the reply. I didn't find a prop can resolve this problem: https://docs.microsoft.com/en-us/javascript/api/office-ui-fabric-react/iselectionzoneprops?view=office-ui-fabric-react-latest#oniteminvoked Could you tell me if you find? :)

jieqiu0129 avatar Oct 17 '19 06:10 jieqiu0129

This may already be possible with the existing SelectionZone related props. Requires some testing.

Thanks for the reply. I didn't find a prop can resolve this problem: https://docs.microsoft.com/en-us/javascript/api/office-ui-fabric-react/iselectionzoneprops?view=office-ui-fabric-react-latest#oniteminvoked Could you tell me if you find? :)

I believe @KevinTCoughlin is referring to the SelectionZone props within DetailsList

marygans avatar Oct 17 '19 16:10 marygans

This issue has been automatically marked as stale because it has marked as requiring author feedback but has not had any activity for 4 days. It will be closed if no further activity occurs within 3 days of this comment. Thank you for your contributions to Fabric React!

msft-github-bot avatar Oct 21 '19 17:10 msft-github-bot

Any update?

jieqiu0129 avatar Oct 22 '19 01:10 jieqiu0129

Any update?

@jieqiu0129, the following selectable DetailsList example does not invoke onSelectionChanged when an anchor link rendered in a column cell is clicked: https://developer.microsoft.com/en-us/fabric#/controls/web/detailslist/variablerowheights

Can you employ the same strategy for your use-case?

I'm not sure a prop for this is something we want or have the capacity to add right now. If the above doesn't work for you and you wish to raise a PR, please do so.

KevinTCoughlin avatar Oct 23 '19 20:10 KevinTCoughlin

This issue has been automatically marked as stale because it has marked as requiring author feedback but has not had any activity for 4 days. It will be closed if no further activity occurs within 3 days of this comment. Thank you for your contributions to Fabric React!

msft-github-bot avatar Oct 27 '19 21:10 msft-github-bot