C1Menu and C1Grid in the same page -> ERROR

Posted by: baurez on 10 September 2017, 11:41 am EST

  • Posted 10 September 2017, 11:41 am EST

    Hi,

    I try to put a C1Menu extender and a C1Grid in the same page, but it result in a JAVASCRIPT error: "TypeError: Object [object Object] has no method 'wijgrid'"

    The same page with only one control works fine.

    Maybe someone have an idea to have it working...

    Thanks a lot.
  • Replied 10 September 2017, 11:41 am EST

    Hello Baurez,

    The issue is fixed in C1Wijmo lastest build 3.5/4.0.20112.29 which is available at :
    http://prerelease.componentone.com/dotnet30/c1webwijmo.webforms/2011-t2/C1WebWijmo.Webforms_3.5.20112.29.zip

    Thanks,
    Richa
  • Replied 10 September 2017, 11:41 am EST

    Hello,

    It seems OK in a simple page with a c1tabs extender and a c1tabs control in the same page.

    But it seems a problem is here when I use a c1controls and a c1formdecorator in the same page...

    Exemple:

    - c1Tabs
    - C1ButtonExtender

    Javascript error:
    TypeError: Object [object Object] has no method 'c1tabs'

    Maybe another issue from the same problem ?

    Thanks.
  • Replied 10 September 2017, 11:41 am EST

    Hello Baurez,

    What all controls are placed on the webpage where the problem is observed?

    Thanks,
    Richa
  • Replied 10 September 2017, 11:41 am EST

    Hello Baurez,

    This is the design behaviour of the controls.

    When you place C1WebWijmo Controls (C1GridView) and C1WebWijmo Extenders (C1MenuExtender) on the same webpage, it will register 2 script references of jquery library. The jquery loaded at first time will be overwritten after the second loaded. then the widget loaded at first shows javascript error.

    However, if you want to use both these control you can change the order i.e. place Wijmo gridView after MenuExtender.

    Thanks,
    Richa
  • Replied 10 September 2017, 11:41 am EST

    ok...

    My page is made like this:

    - Masterpage = Usercontrol (c1MenuExtender) + PlaceHolder

    - Place Holder = C1Tabs

    How could I make a trick to have it working ?


    I put the usercontrol before and after the placeholder, it doesn't work...

    :(
  • Replied 10 September 2017, 11:41 am EST

    Hello Baurez,

    I am able to replicate the issue. I have escalated the issue to the concerned team. The issue id is 17407.

    Thanks,
    Richa
  • Replied 10 September 2017, 11:41 am EST

    Thanks a lot...
  • Replied 10 September 2017, 11:41 am EST

    Here the source code:

    <%@ Page Language="VB" AutoEventWireup="false" CodeFile="Default.aspx.vb" Inherits="_Default" %>
    <%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>
    <%@ Register Assembly="C1.Web.Wijmo.Controls.4" Namespace="C1.Web.Wijmo.Controls.C1Tabs" TagPrefix="wijmo" %>
    <%@ Register Assembly="C1.Web.Wijmo.Extenders.4" Namespace="C1.Web.Wijmo.Extenders.C1FormDecorator" TagPrefix="wijmo" %>
    <%@ Register Assembly="C1.Web.Wijmo.Extenders.4" Namespace="C1.Web.Wijmo.Extenders.C1Input" TagPrefix="wijmo" %>
    <%@ Register Assembly="C1.Web.Wijmo.Extenders.4" Namespace="C1.Web.Wijmo.Extenders.C1Tabs" TagPrefix="wijmo" %>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head runat="server">
    <title></title>
    </head>
    <body>
    <form id="form1" runat="server">
    <asp:ToolkitScriptManager ID="ToolkitScriptManager1" runat="server">
    </asp:ToolkitScriptManager>
    <div>
    <asp:TextBox runat="server" ID="blo">
    </asp:TextBox>
    <wijmo:C1InputDateExtender ID="blo_C1InputDateExtender" runat="server" Culture="fr-FR" TargetControlID="blo">
    <PopupPosition>
    <Offset Top="4"></Offset>
    </PopupPosition>
    </wijmo:C1InputDateExtender>
    <asp:TextBox runat="server" ID="TextBox1">
    </asp:TextBox>
    <wijmo:C1InputDateExtender ID="C1InputDateExtender1" runat="server" Culture="fr-FR" TargetControlID="TextBox1">
    <PopupPosition>
    <Offset Top="4"></Offset>
    </PopupPosition>
    </wijmo:C1InputDateExtender>
    <asp:Panel ID="Panel1" runat="server">
    <ul>
    <li><a href="#tabs-1">Nunc tincidunt</a></li>
    <li><a href="#tabs-2">Proin dolor</a></li>
    <li><a href="#tabs-3">Aenean lacinia</a></li>
    </ul>
    <div id="tabs-1">
    <p>
    Proin elit arcu</p>
    </div>
    <div id="tabs-2">
    <p>
    <p>
    Proin elit arcu</p>
    </div>
    <div id="tabs-3">
    <p>
    Proin elit arcu</p>
    </div>
    </asp:Panel>
    <wijmo:C1TabsExtender ID="TabsExtender1" runat="server" TargetControlID="Panel1" />
    <wijmo:C1Tabs ID="C1Tabs1" runat="server">
    <Pages>
    <wijmo:C1TabPage runat="server" Text="Tab1" ID="Tab1">
    </wijmo:C1TabPage>
    <wijmo:C1TabPage runat="server" Text="Tab2" ID="Tab2">
    </wijmo:C1TabPage>
    <wijmo:C1TabPage runat="server" Text="Tab3" ID="Tab3">
    </wijmo:C1TabPage>
    <wijmo:C1TabPage runat="server" Text="Tab4" ID="Tab4">
    </wijmo:C1TabPage>
    </Pages>
    </wijmo:C1Tabs>
    <wijmo:C1ButtonExtender ID="C1ButtonExtender8" runat="server" TargetSelector=".submit.search" Icons-Primary="ui-icon-search">
    </wijmo:C1ButtonExtender>
    </div>
    </form>
    </body>
    </html>
  • Replied 10 September 2017, 11:41 am EST

    Another thing...

    If I put only one extender c1tab, it doesn't work, and I have this error msg (in french):
    L'assembly 'C1.Web.Wijmo.Extenders.4, Version=4.0.20112.29, Culture=neutral, PublicKeyToken=9b75583953471eea' ne contient pas de ressource Web nommée 'C1.Web.Wijmo.Extenders.Resources.wijmo.jquery.cookie.js'.

    If I put a C1TAB control in the same page, it works... :s
Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels