|
Rank: Advanced Member Groups: Member
Joined: 6/6/2007 Posts: 37
|
Hi,
I have a treeview which is populated from a dataset i made a field to create shorcuts
this is the code
TreeView1.DataSource = ds Dim binding As New EO.Web.DataBinding() binding.DataField = "Titel" binding.Property = "Text-Html" Dim bindingS As New EO.Web.DataBinding() bindingS.DataField = "Toetsen" bindingS.Property = "Shortcut" TreeView1.Bindings.Add(binding) TreeView1.Bindings.Add(bindingS) TreeView1.DataBind() TreeView1.RaisesServerEvent() = True TreeView1.EnableKeyboardNavigation = True TreeView1.Visible = True
keybordnavigation is not possible the shortcut give no reaction when i click the treeview item with the shortcut I see the shorcut in the properties as a filled keycode. it would be nice if you could help me ria
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,193
|
Hi,
I believe shortcuts are only supported by Menu, not the TreeView. Sorry about that!
Thanks
|
|
Rank: Advanced Member Groups: Member
Joined: 6/6/2007 Posts: 37
|
Are you going to support shortcuts? Is keyboardnavigation supported? the properties suggest the possibility.
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,193
|
Hi,
Not likely. The property is inherited from base class but not supported by the derived class. This is not rare. If you check AccessKey property of System.Web.UI.WebControl property, you will see all derived controls inherited it, but only some supports it.
The reason that we do not plan to support shortcut on the TreeView is because the TreeView is often used to display a lot of nodes. In such case it can significantly decrease performance if we were to check shortcut on every node for every keystoke. Another reason is people rarely use shortcut on TreeView.
Thanks
|
|
Rank: Advanced Member Groups: Member
Joined: 6/6/2007 Posts: 37
|
to know for sure, this is the same for the keybordnavigation?
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,193
|
No. I believe KeybordNavigation works with TreeView, but ShortCut does not.
Hope this helps.
|
|
Rank: Advanced Member Groups: Member
Joined: 6/6/2007 Posts: 37
|
allthough I set keybordnavigation to true it seems nothing is happening. must I do anything else?
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,193
|
Hi,
We are not aware of any problem with EnableKeyboardNavigation. Can you create a test page that demonstrates the problem? (Make sure the test page runs independently).
Thanks!
|
|
Rank: Advanced Member Groups: Member
Joined: 6/6/2007 Posts: 37
|
Hi,
is it possible that you enable it in your live demo? You can show how it works and it saves me a lot of time.
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,193
|
Sure. We will enable that in our next build.
Thanks
|
|