Forum Replies Created

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • in reply to: jqwidget not displayed jqwidget not displayed #102258

    kagel
    Participant

    Hi Hristo,

    thanks for your help. In the meantime I did the following:

    1 Removed the reference

    <script src="~/lib/jquery/dist/jquery.js"></script>

    2 Added the reference

    @inject Microsoft.ApplicationInsights.Extensibility.TelemetryConfiguration TelemetryConfiguration
    in the _ViewImports.cshtml after having added the nuget package Microsoft.ApplicationInsights version 2.7.2

    Now I get an ugly error

    InvalidOperationException: No service for type 'Microsoft.ApplicationInsights.Extensibility.TelemetryConfiguration' has been registered.

    on starting the application (asp.mvc core 2.1) ..?

    Second: before I added the @inject line in _ViewImports.cshtml
    on debugging the page at

    <jqx-grid theme="@ViewData["Theme"]" sortable="true" filterable="true" height="500" width="850" source="Model">

    the “Model” contain a List of IEnumerable<Person> passed by the Controller

        public class GridController : Controller
        {
            List<Person> data;
    
            [HttpGet]
            public ViewResult List()
            {
                PersonService ps = new PersonService();
                data = ps.GetPersons();
                return View(data);
            }
    
        }

    As if the datasource is Ok?
    If I remove the source=”Model” Attribute in <jqx-grid an emtpy grid is display, otherwise there is no grid in the page..
    That’s still my issue.

    In all samples I saw about the jqgrid the object type passed from the controller ist a “List<T>”, seems to be right ?
    My question now: Is the error “TypeError: $.jqx is undefined” just due to the missing component TelemetryConfiguration
    or do I have a mix of two errors
    1. TelemetryConfiguration missing AND 2. any object type mismatch Grid expects another datasource type (not an List<T> ???)
    in other word if the first error would be fixed the TypeError would be resolved ?? Then the issue would now be reduced to the InvalidOperationException ?? Any help is appreciated…

    in reply to: jqwidget not displayed jqwidget not displayed #102240

    kagel
    Participant

    the error “TypeError: $.jqx is undefined” appear although the declarations in the header:

    <script src=”~/jqwidgets/jqxbuttons.js”></script>
    <script src=”~/jqwidgets/jqx-all.js”></script>
    <script src=”~/jqwidgets/jqxgrid.columnsresize.js”></script>
    <script src=”~/jqwidgets/jqxbuttons.js”></script>
    <script src=”~/jqwidgets/jqxscrollbar.js”></script>
    <script src=”~/jqwidgets/jqxgrid.js”></script>
    <script src=”~/jqwidgets/jqxgrid.edit.js”></script>
    <script src=”~/jqwidgets/jqxgrid.columnsresize.js”></script>
    <script src=”~/jqwidgets/jqxgrid.filter.js”></script>
    <script src=”~/jqwidgets/jqxgrid.selection.js”></script>
    <script src=”~/jqwidgets/jqxgrid.sort.js”></script>

    the recommendation in the post

    https://www.jqwidgets.com/community/topic/typeerror-a-jqx-_jqxgrid-is-undefined/

    doesn’t help ..?

    in reply to: jqwidget not displayed jqwidget not displayed #102239

    kagel
    Participant

    additional info javascript debugging provides:

     [Show/hide message details.] GET
    http://localhost:51727/Grid/List
    [HTTP/1.1 200 OK 511ms]
    [Show/hide message details.] GET
    http://localhost:51727/lib/jquery/dist/jquery.js
    [HTTP/1.1 304 Not Modified 21ms]
    [Show/hide message details.] GET
    http://localhost:51727/jqwidgets/styles/jqx.base.css
    [HTTP/1.1 304 Not Modified 196ms]
    [Show/hide message details.] GET
    http://localhost:51727/jqwidgets/jqxcore.js
    [HTTP/1.1 304 Not Modified 74ms]
    [Show/hide message details.] GET
    http://localhost:51727/jqwidgets/jqxdata.js
    [HTTP/1.1 304 Not Modified 110ms]
    [Show/hide message details.] GET
    http://localhost:51727/jqwidgets/jqxdraw.js
    [HTTP/1.1 304 Not Modified 199ms]
    [Show/hide message details.] GET
    http://localhost:51727/lib/bootstrap/dist/css/bootstrap.css
    [HTTP/1.1 304 Not Modified 157ms]
    [Show/hide message details.] GET
    http://localhost:51727/css/site.css
    [HTTP/1.1 304 Not Modified 87ms]
    [Show/hide message details.] GET
    http://localhost:51727/jqwidgets/jqxbuttons.js
    [HTTP/1.1 304 Not Modified 143ms]
    [Show/hide message details.] GET
    http://localhost:51727/lib/bootstrap/dist/js/bootstrap.js
    [HTTP/1.1 304 Not Modified 160ms]
    [Show/hide message details.] GET
    http://localhost:51727/js/site.js?v=4q1jwFhaPaZgr8WAUSrux6hAuh0XDg9kPS3xIVq36I0
    [HTTP/1.1 304 Not Modified 175ms]
    [Show/hide message details.] GET
    http://localhost:51727/lib/jquery/dist/jquery.js
    [HTTP/1.1 304 Not Modified 16ms]
    jQuery.Deferred exception: $.jqx is undefined @http://localhost:51727/Grid/List:89:1155
    mightThrow@http://localhost:51727/lib/jquery/dist/jquery.js:3534:21
    resolve/</process<@http://localhost:51727/lib/jquery/dist/jquery.js:3602:12
     undefined jquery.js:3818:3
    [Show/hide message details.] TypeError: $.jqx is undefined[Learn More] List:89:1155
    <anonymous>
    http://localhost:51727/Grid/List:89:1155
    mightThrow
    http://localhost:51727/lib/jquery/dist/jquery.js:3534:21
    resolve/</process<
    http://localhost:51727/lib/jquery/dist/jquery.js:3602:12
Viewing 3 posts - 1 through 3 (of 3 total)