Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Selection when focus lost #33

Open
thebrauer opened this issue Jun 20, 2016 · 4 comments
Open

Selection when focus lost #33

thebrauer opened this issue Jun 20, 2016 · 4 comments

Comments

@thebrauer
Copy link

Is it possible for the table to keep the selection when it loses focus? It seems to always set -1 as selectedIndex now.

@AMBudnik
Copy link

Hi @thebrauer
I'm not sure what you would like to achieve.

You can grammatically select a cell by the selectCell() method you can also prevent the table of loosing focus (when you click outside the table) with outsideClickDeselects option set to false like in this example: http://jsfiddle.net/563vq3ku/

@thebrauer
Copy link
Author

thebrauer commented Jun 20, 2016

The server programmer told me that sending -1 to the server created some issues for him and I am afraid I don't know what.

Can outsideClickDeselects be added as a property to this?:

<hot-table id="Hot-table1" datarows="{{model.Modules.Selectables}}" class="htLeft" stretch-h="all" highlighted-row="{{model.Modules.SelectedIndex$}}" manual-column-move manual-column-resize fill-handle="false" column-sorting sort-indicator prevent-overflow="horizontal">
    <hot-column value="NameUrl" header="Name" read-only renderer="html"></hot-column>
    <hot-column value="Version" header="Version" read-only></hot-column>
    <hot-column value="OS" header="OS" read-only></hot-column>
    <hot-column value="Platform" header="Platform" read-only></hot-column>
</hot-table>

@AMBudnik
Copy link

AMBudnik commented Jun 21, 2016

I'm not an expert in Hot-table but as I was told by one of our devs it should work.

@vchuquimia
Copy link

outsideClickDeselects option set to false

this option works for this issue, thank you dude.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants