Welcome Guest Search | Active Topics | Sign In | Register

shortcuts in treeview Options
Ria
Posted: Saturday, August 9, 2008 9:36:58 AM
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


eo_support
Posted: Saturday, August 9, 2008 10:30:28 AM
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
Ria
Posted: Sunday, August 10, 2008 3:46:37 AM
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.
eo_support
Posted: Sunday, August 10, 2008 6:25:48 AM
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
Ria
Posted: Sunday, August 10, 2008 8:00:32 AM
Rank: Advanced Member
Groups: Member

Joined: 6/6/2007
Posts: 37
to know for sure, this is the same for the keybordnavigation?
eo_support
Posted: Sunday, August 10, 2008 8:36:35 AM
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.
Ria
Posted: Sunday, August 10, 2008 10:43:00 PM
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?
eo_support
Posted: Monday, August 11, 2008 8:22:44 AM
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!
Ria
Posted: Monday, August 11, 2008 8:35:05 AM
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.
eo_support
Posted: Monday, August 11, 2008 8:42:27 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,193
Sure. We will enable that in our next build.

Thanks


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.