jQWidgets Forums

jQuery UI Widgets Forums Grid Error Filtering Grid

This topic contains 2 replies, has 2 voices, and was last updated by  Manu Vashishtha 8 years ago.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
  • Error Filtering Grid #93597

    jeffo
    Participant

    I have a Grid created using a knockoutjs binding handler.

    ko.bindingHandlers.jqxCassettesGrid = {
            init: function (element, valueAccessor, allBindings, viewModel, bindingContext) {
                var values = valueAccessor();
                var $element = $(element);
                var source = {
                    localdata: values.source,
                    datafields: values.datafields,
                    datatype: "local",
                    id: 'ID'
                };
                var dataAdapter = new $.jqx.dataAdapter(source);
    
                var options = {
                    showfilterrow: true,
                    filterable: true,
                    source: dataAdapter,
                    columns: values.columns,
                };
    
                // create the grid.
                $element.jqxGrid(options);
            }
        };

    (I have removed any redundant options and settings, but the error still exists)

    The grid initially displays fine. source is bound to a knockout computed observable which is adjusted by clicking a button on the page. The grid works fine and the source changes appropriately, as long as there is no filter applied in the filter row. As soon as I try to enter filter criteria in the grid, I receive a “TypeError: Cannot read property ‘value’ of undefined” on the line “o = l.value;” in “_addfilterwidget”.

    Is there anything I can do to avoid this error?

    Error Filtering Grid #93599

    jeffo
    Participant

    Its ok 🙂

    Someone (who shall remain nameless but was NOT me), put filtertype: ‘none’ in the list of columns instead of using filterable: false. For some reason it never complained until there was actually any filters applied.

    thanks.

    Error Filtering Grid #93678

    Manu Vashishtha
    Participant

    Hello Sir

    I need highlighting of seached text in jqxgrid in my project. I have implemented the code but highlighted text is missing when I do scroll in the grid where as it is working fine for page scroll. I have used mark.js for this functionality.
    Here the link of example I have tried:-
    http://jsfiddle.net/manuvashishtha/hBM5L/183/

    Regards
    Manu Vashishtha

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.