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?
Thank You, we will wait for mid-November hoping this issue will be solved. For the time being we will use the workaround.
Claudio
Hi 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.
Best Regards,
Petar IvanovDeveloper Support EngineerInfragistics, Inc.http://ko.infragistics.com/support
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.
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.
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?