Hi, I've put a WebDataMenu on a MasterPage and WebDataMenu1_ItemClick doesn't happen.
Default.aspx page (in the attachment) works as expected.
Home.aspx page displays two menus, one from masterpage and one from the page itself. No ItemClick happens in code behind.
What is going wrong?
Thank You
Claudio Mellina
Another possibility:
There is a known bug in the most recent service release. If the WebDataMenu is inside a WebSplitter pane, the WebSplitter prevents the ItemClick event from firing.
Have You had a look at the sample attached? Does it happens to You also? Do You see something wrong in code?
Hi GIOCOR,
Thank you for the reply. I ran your sample and indeed the master page WebDataMenu's handlers were not firing. I tested the scenario with a WebDataMenu on a different page and it operated as expected.
What I did in the end was to delete the WebDataMenu from the master page and copy and paste the one from your Home.aspx file (I just changed the item text and click handler name) and that resolved the matter. Can you please try this setup to see if it helps.
Please contact me if you have any questions.
Best Regards,
Petar IvanovDeveloper Support EngineerInfragistics, Inc.http://ko.infragistics.com/support
No, it didn't help. On my solution the scenario didn't change (as expected being only some html text). Can You please further investigate on the problem?
Hi Claudio,
I have researched the matter further and there seems to be an issue with build 2064 when a WebDataMenu is placed in a Master page. The issue should be resolved in the next service release.
I have modified your sample to suggest an approach to "handle" OnItemClick in your menu (although using the master page's Page_Load). Here is the relevant code:
protected void Page_Load(object sender, EventArgs e){//using the hidden field we check if the postback is caused by an ItemClick on the WebDataMenuif (HiddenField1.Value.Equals("true")) { Debug.WriteLine("This functions as a ItemClick handler"); HiddenField1.Value = "false";} }
}
Please let me know if this is helpful.
Thank You, which is the schedule plan for the next service release? Your work around could be a solution for the time being but not a long term solution.
Claudio
Thank you for your reply. The next service release for version 11.1 is planned for release around mid-Novemeber. Please let me know if I can be of further assistance.
Thank You, we will wait for mid-November hoping this issue will be solved. For the time being we will use the workaround.