Announcement

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

    Be able to drag resize on listGridFields under SelectItem

    Hello,

    I have a SelectItem to display two ListGridFields say FirstName and LastName. When click, the dropdown list shows the 2 columns but I want to be able to grab a column border between the 2 columns and change the width of the 2 columns. Is this possible ?

    I tried setCanDragResize(true) for both ListGridFields but still not able to drag resize.

    Here's what I am using:
    GWT 2.4.0
    smartgwt 3.0
    Firefox 10.0.2

    Thanks,
    Annie

    #2
    Hello agian,

    I changed to define my own ListGrid then call setPickListProperties as follows:

    ListGrid pickListProperties = new ListGrid();
    pickListProperties.setSelectionType(SelectionStyle.SINGLE);
    pickListProperties.setAlternateRecordStyles(true);
    pickListProperties.setShowHeader(true);
    pickListProperties.setCanDragResize(true);

    ListGridField fNameField = new ListGridField("firstName", "First Name", 100);
    fNameField .setCanDragResize(true);

    ListGridField lNameField = new ListGridField("lastName", "Last Name", 100);
    lNameField .setCanDragResize(true);

    final SelectItem userSelectItem= new SelectItem();
    userSelectItem.setTitle("User);
    userSelectItem.setPickListProperties(pickListProperties);
    userSelectItem.setPickListFields(fNameField , lNameField );

    But the drop down for the userSelectItem is still not able to drag resize, it does not even show the "resize" cursor when hovering over the edge of the column header. Also, setting the setAlternateRecordStyles to true does not seem to show alternate rows highlighted.

    Any idea why resize and setAlternateRecordStyles are not working this way?

    Attached is the screen shot.
    Attached Files

    Comment


      #3
      Figured out the drag resize issue, must set pickListProperties.setCanResizeFields(true) even though the default is true.

      But still haven't figured out why setting the setAlternateRecordStyles(true) does not seem to show alternate rows highlighted.

      Comment


        #4
        Hi,
        I am trying to do only vertical resizing on my pickList. In this PickList is getting resized but the pickListBody is not getting resized
        There is huge data in picklist with scrollbar on.

        I have used the same above proerties as mentioned ablove.

        Attaching screenshot. Can someone please help.
        Attached Files

        Comment


          #5
          Did you already try setPickListHeight()?

          Comment


            #6
            Hi Blama,

            I didnt set the setPickListHeight() becuase on resizing it will get changed

            Comment


              #7
              Hi preeti_kanyal

              I don't get it. You want a pickList with maximum height if needed and smaller otherwise, depending on the data, correct?
              See here and try the code in the showcase with value: 100 and value: 10 for the SelectItem criteria. This does exactly what's needed, and no need for manual resizing, correct?

              Best regards
              Blama

              Comment


                #8
                My requirement is that when i rsize the picklist vertically its height should automatically increase.
                I dont want to fix the pickListHeight, its taking default height i.e,300px.

                Comment


                  #9
                  Hi preeti_kanyal

                  you mean manually drag and drop increasing the height? Why would you want to do that?
                  W.r.t. my post: It is not fixed. Did you try the code?

                  Best regards
                  Blama

                  Comment


                    #10
                    There's a separate forum thread for this issue here:
                    https://forums.smartclient.com/forum...s-alot-of-data
                    We're looking at it and will be following up there when we have more information

                    Regards
                    Isomorphic Software

                    Comment

                    Working...
                    X