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
3788
Two components with the same id 'Menu' can't be added to the application error
posted

Hi,

If i have changed the dropDown1 value then

Two components with the same id 'Menu' can't be added to the application error

is coming. problem is to refresh the infragistics menu, can you tell me how to resolve this problem?

<table style="margin-top: 7px; min-width: 800px;">
  <tr>
    <td>
      <table runat="server" id="tblSearch">
        <tr>
          <td>
            <asp:Label ID="lblSearch" runat="server" Text="Search By"></asp:Label>
          </td>
          <td>

              <ContentTemplate>
                <asp:DropDownList ID="dropDown1" runat="server" OnTextChanged="ValChange" AutoPostBack="true" Width="200px">
              
          </td>
          <td>
            <asp:UpdatePanel ID="u2" runat="server">
              <ContentTemplate>
                <asp:DropDownList ID="dd2" runat="server" Width="200px" AutoPostBack="True">
                </asp:DropDownList>
              </ContentTemplate>
              <Triggers>
                <asp:AsyncPostBackTrigger ControlID="dropDown1" />
              </Triggers>
            </asp:UpdatePanel>
          </td>
          
          <td>
            <asp:Button ID="btn1" Text="Go" ToolTip="Search" runat="server">
            </asp:Button>
          </td>
        </tr>
      </table>
    </td>
  </tr>
  <tr>
    <td>
      <div>
        <asp:UpdatePanel ID="pnlGrid" runat="server">
          <ContentTemplate>
            <ig:WebDataGrid ID="webGrid" runat="server" EnableDataViewState="True" AutoGenerateColumns="False"
              OnColumnMoved="webTableGrid_ColumnMoved" OnColumnResized="webTableGrid_ColumnResized">
              <ClientEvents MouseDown="GridMouseDown" DoubleClick="OpenWindow" />
              <Columns>
              </Columns>
          </ig:WebDataGrid>
          </ContentTemplate>
          <Triggers>
            <asp:AsyncPostBackTrigger ControlID="btn1" />
          </Triggers>
        </asp:UpdatePanel>
       
       <ig:WebDataMenu ID="Menu" runat="server" IsContextMenu="true" BorderWidth="1"
              BorderColor="#CCCCCC">
              <ClientEvents />
            </ig:WebDataMenu>
         
      </div>
    </td>
  </tr>
</table>

  • 4493
    posted

    Hello,

    With the current implementation the WebDataMenu can't work when it is rendered from within an update panel and is used as Context Menu. The best aproach would be to contact Developer support to open a case with feature request, and what I can do is to follow up with you here on that feature request is being processed.

  • 1370
    Offline posted

    i've just got the same problem.

    WebDataMenu in an updatePanel rise this error  on clicking  on a button