Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    [BUG] ListGrid filterEditor's DateItem, SelectItem components hasn't rendered.

    Hi,
    I've noticed that on new version components in filter editor was not rendered at all. Only then resized a column or manually forced to redraw by markForRedraw().


    Tested on:
    SNAPSHOT_v11.1d_2017-03-07/LGPL Deployment
    SNAPSHOT_v11.1d_2017-03-02/LGPL Deployment

    Browsers: Chrome, Firefox



    Test case:

    Code:
    <!DOCTYPE html>
    <html>
    <head lang="en">
        <meta charset="UTF-8">
        <meta http-equiv="Cache-control" content="no-cache">
        <title></title>
    
        <script>var isomorphicDir = "smartclient/";</script>
        <script src=smartclient/system/modules-debug/ISC_Core.js></script>
        <script src=smartclient/system/modules-debug/ISC_Foundation.js></script>
        <script src=smartclient/system/modules-debug/ISC_Containers.js></script>
        <script src=smartclient/system/modules-debug/ISC_Grids.js></script>
        <script src=smartclient/system/modules-debug/ISC_Forms.js></script>
        <script src=smartclient/system/modules-debug/ISC_DataBinding.js></script>
        <script src=smartclient/skins/EnterpriseBlue/load_skin.js></script>
    
    </head>
    <body>
    <script>
        var ds = isc.DataSource.create({
            clientOnly: true,
            fields: [{name: 'a', type: 'date'}, {name: 'b', type: 'text', editorType: 'SelectItem'}],
            testData: [{a: '1', b: 'a'}]
        });
    
        isc.ListGrid.create({
            showFilterEditor: true,
            dataSource: ds,
            fields: [
                {name: 'a'},
                {name: 'b'}
            ]
        });
    </script>
    </body>
    </html>

    #2
    Quick fix-hack:
    Code:
        var initWidget = isc.FilterEditorBody.getPrototype()['initWidget'];
        isc.FilterEditorBody.addMethods({
           initWidget: function () {
               initWidget.apply(this, arguments);
               var self = this;
               isc.Timer.setTimeout(function () { self.markForRedraw(); }, 0);
           }
        });

    Comment


      #3
      Not reproducible in the latest, may have been a transient bug.

      Comment


        #4
        Hi,
        yes it currently works now in SNAPSHOT_v11.1d_2017-03-09/LGPL Deployment,

        Thanks

        Comment

        Working...
        X