Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
935
How to Get WebDatamenuItem ID and to show fancy box iframe
posted

WebDataMenu:

 

<ig:WebDataMenu ID="WebDataMenu1" runat="server" Width="100%" Height="30%">

                <Items>

                  <ig:DataMenuItem NavigateUrl="Default.aspx" Text="Home" Value="0">

                  </ig:DataMenuItem>

 

                   <ig:DataMenuItem Text="Transactions" Value="0">

                       <Items>

                           <ig:DataMenuItem NavigateUrl="../Forms/Issue.aspx" Text="Issue/Return" 

                               Key="Issue">

                           </ig:DataMenuItem>

                           <ig:DataMenuItem IsSeparator="True" Text="[Separator]">

                           </ig:DataMenuItem>

                           <ig:DataMenuItem NavigateUrl="../Forms/Request.aspx" Text="Request" 

                               Key="Return">

                           </ig:DataMenuItem>          

                       </Items>

                  </ig:DataMenuItem>

              </Items>

                       <GroupSettings Orientation="Horizontal" EnableAnimation="False" />

              </ig:WebDataMenu>

Example:

if i click Issue DataMenu Item,fancy Box will Display.

Thanks in Regards

 

 

 

 

Parents
No Data
Reply
  • 49378
    posted

    Hi NewbApps,

    It has been some time since your post, however in case you still need assistance I would be glad to help.

    You can handle the ItemClick client-side event to set the src of your iframe if the clicked item is the desired one. For instance:


    function WebDataMenu1_ItemClick(sender, eventArgs)
    {
       
    if (eventArgs.getItem().get_key() == "iframeItem") {
            document.getElementById(
    "iframe1").src = "Default2.aspx";
        }
    }

    Please do not hesitate to contact me if you have any questions.

    Best Regards,

    Petar Ivanov
    Developer Support Engineer
    Infragistics, Inc.
    http://ko.infragistics.com/support

Children
No Data