Announcement

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

    Upgrade to SmartGWT 13 - don't see prompts in the FilterEditor

    Hi,

    After upgrading to SmartGWT 13 the following code has stopped working for us:

    ListGrid grid = new ListGrid();
    grid.setShowFilterEditor(true);
    ListGridField field = new ListGridField("Field", 100);
    TextItem textItem = new TextItem();
    textItem.setPrompt("Text Format");
    field.setFilterEditorProperties(textItem);
    grid.setFields(field);


    We're expecting to see "Text Format" prompt when hovering over Filter Editor for Field, but nothing comes up.
    This used to work in version 6.1
    Not sure if there's a new way to achieve same result..

    Thank you!

    #2
    Hi,

    I downloaded latest build from 13.1 branch, but this is still an issue for us. I'm seeing the default hover text over the filters, not our customized one. Is there anything besides the code above that we need to do?
    Thanks!

    Comment


      #3
      If you're seeing default prompts, then you must have set properties that causes the FilterEditor to show prompts, and that's why it's not showing yours.

      So what settings are you using, and given that for some modes (e.g. allowFilterWindow) it would be a functional break (and accessibility violation) to show your prompt instead of the built-in ones, so you'll need to think carefully about what exactly you want in this mode.

      Comment


        #4
        We have:


        grid.setAllowFilterExpressions(false);
        grid.setAllowFilterOperators(false);
        grid.setAllowFilterWindow(false);
        grid.setShowHeaderContextMenu(false);
        grid.setShowHeaderMenuButton(false);

        Comment


          #5
          That is turning a bunch of features off. If you are experiencing some default hovers, and you don't want to provide code to reproduce them so we can troubleshoot, can you then at least provide the text or a screenshot of the default hovers you are getting? Then we can figure out from that what settings are missing in your repro case.

          Comment


            #6
            Here's the complete code:


            ListGridField idField = new ListGridField("loadID", "Load ID");

            TextItem textItem = new TextItem();
            textItem.setPrompt("My Special Format");
            ListGridField trackingField = new ListGridField("loadDescription", "Load Tracking Number");
            trackingField.setFilterEditorProperties(textItem);

            ListGrid grid = new ListGrid();
            grid.setDataSource(ds);
            grid.setShowFilterEditor(true);
            grid.setAllowFilterExpressions(false);
            grid.setAllowFilterOperators(false);
            grid.setAllowFilterWindow(false);
            grid.setShowHeaderContextMenu(false);
            grid.setShowHeaderMenuButton(false);
            grid.setFields(idField, trackingField);


            Our expectation is when I hover over trackingField's filter I should see "My Special Format" (even without doing anything)
            Currently I see nothing. When I put 'test' in the filter value and run the filter and then hover I can see 'Load Tracking Number contains test'.

            Thank you!
            Last edited by smartiro; Yesterday, 15:30.

            Comment

            Working...
            X