Welcome Guest Search | Active Topics | Sign In | Register

Slidemenu depth Options
AndreaZ
Posted: Tuesday, November 11, 2008 3:40:15 PM
Rank: Advanced Member
Groups: Member

Joined: 10/20/2008
Posts: 75
Hello,
can i set the depth programmatically?

Code: Visual Basic.NET
SlideMenu1.DataSource = myds
        binding3.DataFormatString = "products.aspx?cat={0}"
        binding3.DataField = "id"
        binding3.Property = "NavigateUrl"
        binding3.Depth= "myLevelDepth"
        SlideMenu1.Bindings.Add(binding3)
        SlideMenu1.DataBind()


myLevelDepth is a columns of my dataset!

eo_support
Posted: Wednesday, November 12, 2008 7:30:28 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,097
Hi,

Depth is an integer. So you will do something like:

binding3.Depth = 1

Or if myLevelDepth is an integer, you would do:

binding3.Depth = myLevelDepth

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.