WebSlidingMenu OnDemand Load

7 replies. Last post: May 28, 2012 5:35 AM by Handy Surya
Tags :
  • New Discussion
  • New Question
  • New Product Feedback
Ellen WelchMember

Hello,

I am using the web sliding menu as the one of the navigation of our web page. The information is populated out of a database. The issue, that I'm having is on the last child node, it should open into into the target window, which is beside it. But it opens into the menu itself.

I believe what I'm having is a training issue, since I'm a beginner with this control and the documentation does not seem to help.   The question I have is

Here is the code for the child node

For Each dr As DataRow In dtCategory.Rows Dim item As WebSlidingMenuItem = New WebSlidingMenuItem() item.Name = dr("Description").ToString item.Text = dr("Command").ToString & " / " & dr("Description").ToString

item.AutoHeight = True

item.ContentTemplate = New LeadsTemplate(Page, dr("Command").ToString)

item.Enabled = False

itemColl.Add(item)

item.ContentMode =
WebSlidingMenuContentMode.Inline Next dr

e.NewItemsObject = itemColl

Hello,

Yes, when clicking the child node, we want to display an user control in a separate section, say the other div section on the same page. Not in a new window. So the menu will be in one section, left div. And the right div would have the user control. Each child node will navigate to a different control.

We have a large site, which have about 300 individual pages, that runs by command line. The user issue a code that displays the each page. We want the user to navigate to the pages using a menu, but as you can imagine we can not list all these pages. Example, the starting menu has 5 categories, the second selection has 4 subcategory, one of those has 4 choices. Each choice is a different page.

Attached is a zip file with two images, the beta2, is the menu expand to show what I mean. beta3 is the menu, child node choice clicked and the user control in the div beside it. the command line is also on the page, but it will be in a div above the menu, so the user can still utilize it if they want.

thanks,

Ellen

Hello Ellen,

Personally, I think the information that you want to show in another div, should not be initialized in your child menu.
We have a clientside event called "OnItemClick". When an item menu is clicked, you can write your information details in another div. But you will need to know how to get your database information in clientside.

The conclution is, if you want the details shows in another div, you must not initialize the details as your child node. I personally, suggest you to also use WebFlyPostBackManager. In OnItemClick, you can send information of what's item that you click to the server by called FlyPostBack WebMethod.
If the response is success, you can also send information from server back to client. Of course, the server information should be serialized in the client.


Regards,
Handy


Hello Handy,

I am not quite sure understand. Is there an example that I can refer to?  Or some documentation that I browse?

Dear Ellen,

I enclosed a simple sample for my explanation. I don't load the information in child level. But I write it inside a simple div. As you can see, I used our WebFlyPostBackManager control to meet this scenario. To run the sample, please add them in WebEssentials sample.

Regards,
Handy

1 attachment
All times are GMT -5. The time now is 3:15 AM.
Previous Next