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!
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,194
|
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!
|