0

NonselectableTags when used tab in listbox don't work

asked 2012-04-16 13:29:30 +0800

mgvv gravatar image mgvv
127 2

updated 2012-04-16 13:30:30 +0800

Hi,

I put

setNonselectableTags("");
in my listbox to select row when used inplace.
This work when click with mouse.
The problem is when i use Tab to change row selectdItem didn't change.

I'm using Zk 6.0 CE.

What i'm doing wrong?

Thanks in advance,

Miguel Goncalves

delete flag offensive retag edit

4 Replies

Sort by ยป oldest newest

answered 2012-04-17 08:09:17 +0800

mgvv gravatar image mgvv
127 2

Push

link publish delete flag offensive edit

answered 2012-04-27 02:17:54 +0800

vincentjian gravatar image vincentjian
2245 6

updated 2012-04-27 02:18:10 +0800

Hi mgw,

I tried the following sample and works fine:

<zk>
    <zscript>
        Object[] o = new Object[20];
    </zscript>
    <listbox nonselectableTags="">
        <listhead>
            <listheader label="name"></listheader>
        </listhead>
        <listitem forEach="${o}">
            <listcell>
                <textbox value="item ${forEachStatus.index}" inplace="true"></textbox>
            </listcell>
        </listitem>
    </listbox>
</zk>

Can you provide more information?

link publish delete flag offensive edit

answered 2012-04-27 09:22:08 +0800

mgvv gravatar image mgvv
127 2

Hi vincentjian,

If you use Tab key to scroll columns selectedItem mantains.
If you change row using Tab listbox doesn't change selectedItem.

Thanks,

Miguel Goncalves

link publish delete flag offensive edit

answered 2012-05-07 03:11:47 +0800

vincentjian gravatar image vincentjian
2245 6

Hi mgw,

You can try set selected item on onFocus event:

<zk>
    <zscript>
        Object[] o = new Object[20];
    </zscript>
    <listbox id="listbox">
        <listhead>
            <listheader label="name"></listheader>
        </listhead>
        <listitem forEach="${o}">
            <listcell>
                <textbox tabindex="${forEachStatus.index + 1}"
                    value="item ${forEachStatus.index}" inplace="true"
                    onFocus="listbox.setSelectedIndex(self.tabindex - 1)">
                </textbox>
            </listcell>
        </listitem>
    </listbox>
</zk>

link publish delete flag offensive edit
Your reply
Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!

[hide preview]

Question tools

Follow

RSS

Stats

Asked: 2012-04-16 13:29:30 +0800

Seen: 257 times

Last updated: May 07 '12

Support Options
  • Email Support
  • Training
  • Consulting
  • Outsourcing
Learn More