Announcement

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

    Using filter editor on ListGridFieldType.LINK

    I am using showFilterEditor on my ListGrid, and in that grid I have got a field that I set type ListGridFieldType.LINK, and also set linkTextProperty.

    Sample:
    ListGridField refjournalField = new ListGridField("url","Newspaper");
    refjournalField.setType(ListGridFieldType.LINK);
    refjournalField.setLinkTextProperty("newsPaperName");

    The problem is that when I filter on that field, it's the url itself it filters on, not the newspaper name, which is the one I want to filter on. Is it a way to achive this?

    Smartgwt version: v9.1p_2014-09-14/PowerEdition Deployment (built 2014-09-14)
    Last edited by anderfim; 23 Jun 2015, 12:14.

    #2
    Anyone?

    Still have got the problem..

    Comment


      #3
      Hi anderfim,

      did you already try a combination of ListGridField.setFilterEditorProperties() and FormItem.setCriteriaField()?

      Best regards
      Blama

      Comment


        #4
        That really helped!

        Thank you very much, Blama. That really helped me out.

        code:

        FormItem formItem = new Formitem();
        formItem.setCriteriaField("newsPaperName");
        refjounalfield.setFilterEditorProperties(formItem);

        Once again, thank you :)

        Comment

        Working...
        X