Announcement

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

    Separator in SelectItem

    Hi,
    We are using SmartGwt-4.0 pro edition.
    We have a requirement separating two groups in SelctItem.
    Example :
    SelectItem selectOtherItem = new SelectItem("filter", "Filter");
    LinkedHashMap<String, String> filterMap = new LinkedHashMap<String, String>();
    Group-1
    ---------------------------------
    filterMap.put("filter0", "Filter 0");
    filterMap.put("filter1", "Filter 1");
    filterMap.put("filter2", "Filter 2");
    Group-2
    -----------------------------------
    filterMap.put("create", "Create New");
    filterMap.put("edit", "Edit");
    selectOtherItem.setValueMap(filterMap);

    In SelctItem Filter 1 , Filter 2, Filter 3,... Filter-n are dynamically adding while creating new("Create New").
    As we mentioned above, we want to separate Group-1 and Group-2 with a DOTTED LINE.
    This DOTTED LNE can not be selectable and it should be just a separator.
    We checked with SmartGwt API, but we didn't found.
    Is there any property to achieve this ?
    Please give us a solution.
    Please find the attached screenshot.

    Thanking you.
    Attached Files

    #2
    Hi vnathank,

    nice timing. Check Isomorphic's new 5.0d feature announcement from today. I don't think it's possible out-of-the-box with 4.0p/4.1p.

    Best regards,
    Blama

    Comment


      #3
      You need to provide data via an optionDataSource rather than a Map. Then, you can provide a Record where "isSeparator" is set, and it behaves as a separator.

      Comment


        #4
        Thanks for your great reply.

        Comment

        Working...
        X