locked
HoverMenuExtender RRS feed

  • Question

  • User116004496 posted

    How to write code for HoverMenuExtender, tel me clearly anybody pls, i want to use this  in gridview

    Tuesday, May 22, 2012 6:26 AM

Answers

All replies

  • Tuesday, May 22, 2012 6:43 AM
  • User116004496 posted
    <asp:GridView ID="GridView1" runat="server">

    <asp:TemplateField HeaderText="Travels">  <ItemTemplate>

    <asp:Label ID="lbltravels" runat="server" Text='
    <%#Eval("provider") %>' ></asp:Label>

    <asp:LinkButton ID="lblstatus" runat="server" Text='
    <%#Eval("boardingPointName") %>' style="display:none;" mouseover="show_btn(this.id);"/>


    </ItemTemplate >

     
    </asp:TemplateField>

    <asp:TemplateField HeaderText="Seats">

    <ItemTemplate>  <asp:Label ID="lblseats" runat="server" Text='<%#Eval("availableSeats") %>' ></asp:Label>  </ItemTemplate >

    </asp:TemplateField>
     
    <asp:GridView />

     
    <script type="text/javascript">

    funtion show_btn
    (obj)//Error Expected ;
    {
    document
    .getElementById(obj).setAttribute('display','block');
    }
    </script>
    Tuesday, May 22, 2012 7:26 AM
  • User116004496 posted

    Warning    2    Expected ';'  

    <script type="text/javascript">
    funtion show_btn(obj)//Error
    {
    document.getElementById(obj).setAttribute('display','block');
    }
    </script>


      <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False">
            <Columns>
              <asp:TemplateField HeaderText="boardingpointname">
              <ItemTemplate>
              <asp:Label ID="lbltravels" runat="server" Text='<%#Eval("boardingPointName") %>' ></asp:Label>
             <asp:LinkButton ID="lblstatus" runat="server" Text='<%#Eval("boardingPointName") %>' style="display:none;" mouseover="show_btn(this.id);"/>
             </ItemTemplate> </asp:TemplateField>
            </Columns>
          </asp:GridView>

    Tuesday, May 22, 2012 8:46 AM
  • Tuesday, May 22, 2012 8:49 AM
  • User-578657687 posted

    Hi,

    How to write code for HoverMenuExtender, tel me clearly anybody pls, i want to use this  in gridview

    This video tutorial demonstrate how to use the HoverMenu extender control. You can follow it and make practice with it:

    http://www.asp.net/web-forms/videos/ajax-control-toolkit/how-do-i-use-the-aspnet-ajax-hovermenu-extender

    funtion show_btn(obj)//Error
    {
    document.getElementById(obj).setAttribute('display','block');
    }

    Need to modify the funtion to function.

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Tuesday, May 29, 2012 1:15 AM