Announcement

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

    Unable for select last record in listGrid

    GWT Version : 2.4.0
    SmartGWT Version : 4.1p
    SmartGWT Build Date : 29/09/2014 07:46


    We have a listGrid with multiple columns. When the grid is displayed, last record in it is not selectable.

    However if we scroll down (to show the full height of record in listGrid), it lets us select that record.

    Please note that the Hover works fine without user having to scroll down to show full height of the record.

    Please find the attached screenshot for clarity.

    Is there anything we can do to fix?

    #2
    Hi asifkundi,

    just to let you know: There is no screenshot attached :)

    Best regards,
    Blama

    Comment


      #3
      Please find the attached file for a screenshot of 'last record not selectAble'.
      Attached Files

      Comment


        #4
        So here, "JT Test 27" is unselectable for you?
        Works for me in the sample. I scroll down a bit, so that one row is partly shown. I then click to select it. It gets selected, then.
        It is not scrolled fully into the viewport. Is that what you mean?

        Best regards,
        Blama

        Comment


          #5
          Yes "JT Test 27" is not selectable for us.

          We have to scroll down until the last row appears fully at least once. Only after that we can select the last row (even if we scroll up and make it partially visible again, it works fine).

          We do have a scroll bar to get it fully into the viewport.

          Although we cannot select last row (without scrolling) but the Hover works fine for it.

          Comment


            #6
            Works for me in the linked sample when I scroll "Indonesia" half into the viewport by dragging the the scrollbar with the mouse. Does it work for you?

            Best regards,
            Blama

            Comment


              #7
              Yes the sample link you sent earlier works just fine for me.

              We have tried by excluding our own CSS and ran the same scenario but that didn't work either.

              Comment


                #8
                Hi all,

                I work with Asif and have just been putting together a little stand alone test.

                In the example given below I we can not click the bottom row

                PortalTest.java
                Code:
                package com.serengetisystems.tcrm.client;
                
                import com.google.gwt.core.client.EntryPoint;
                import com.smartgwt.client.util.SC;
                import com.smartgwt.client.widgets.HTMLFlow;
                import com.smartgwt.client.widgets.events.ClickEvent;
                import com.smartgwt.client.widgets.events.ClickHandler;
                import com.smartgwt.client.widgets.grid.ListGrid;
                import com.smartgwt.client.widgets.grid.ListGridField;
                import com.smartgwt.client.widgets.grid.ListGridRecord;
                import com.smartgwt.client.widgets.layout.VLayout;
                
                public class PortalTest implements EntryPoint {
                
                    private VLayout layout = new VLayout(10);
                
                    public void onModuleLoad() {
                        layout.setWidth100();
                        layout.setHeight100();
                        layout.setBackgroundColor("#FDFDFD");
                        layout.setPadding(40);
                        layout.draw();
                
                        setupPlayPen();
                    }
                
                    private void setupPlayPen() {
                        layout.addMember(new HTMLFlow("Play Pen"));
                
                        final ListGrid listGrid = new ListGrid();
                        listGrid.setHeight(90);
                        listGrid.setWidth(400);
                
                        listGrid.setFields(new ListGridField("name", "Name"), new ListGridField("value", "Value"));
                        listGrid.setData(
                                createRecord("Row 1", "gre greg erg erg e"),
                                createRecord("Row 2", "regergerg"),
                                createRecord("Row 3", "re gre greg reg "),
                                createRecord("Row 4", "reg reg reg er"),
                                createRecord("Row 5", "ergerg rg "),
                                createRecord("Row 6", "ergreg reg "),
                                createRecord("Row 7", "erg reg er g")
                        );
                
                        listGrid.addClickHandler(new ClickHandler() {
                            @Override
                            public void onClick(ClickEvent clickEvent) {
                                SC.say("Row Clicked " + listGrid.getSelectedRecord().getAttribute("name"));
                            }
                        });
                
                        layout.addMember(listGrid);
                    }
                
                    private ListGridRecord createRecord(String name, String value) {
                        ListGridRecord record = new ListGridRecord();
                        record.setAttribute("name", name);
                        record.setAttribute("value", value);
                        return record;
                    }
                
                }
                Main.jsp
                Code:
                <!DOCTYPE html>
                <html>
                <head>
                
                    <meta name="viewport" content="initial-scale=1, width=device-width, user-scalable=no, minimum-scale=1, maximum-scale=1, minimal-ui" />
                    <meta name="apple-mobile-web-app-capable" content="yes" />
                    <meta http-equiv="content-type" content="text/html; charset=UTF-8" />
                
                    <title>CRM</title>
                
                    <link rel="shortcut icon" href="favicon.ico" />
                
                </head>
                <body class="title">
                
                <iframe src="javascript:''" id="__gwt_historyFrame" style="width:0;height:0;border:0"></iframe>
                
                <script type="text/javascript">
                    var isomorphicDir = "serengeti.crm/sc/";
                    isc_css3Mode = "on";
                </script>
                
                <!--include the SC Core API-->
                <script src=serengeti.crm/sc/modules/ISC_Core.js></script>
                
                <!--include SmartClient -->
                <script src='serengeti.crm/sc/modules/ISC_Foundation.js'></script>
                
                <script src='serengeti.crm/sc/modules/ISC_Containers.js'></script>
                <script src='serengeti.crm/sc/modules/ISC_Grids.js'></script>
                <script src='serengeti.crm/sc/modules/ISC_Forms.js'></script>
                <script src='serengeti.crm/sc/modules/ISC_RichTextEditor.js'></script>
                <script src='serengeti.crm/sc/modules/ISC_Calendar.js'></script>
                <script src='serengeti.crm/sc/modules/ISC_DataBinding.js'></script>
                <script src='serengeti.crm/sc/modules/ISC_Drawing.js'></script>
                <script src='serengeti.crm/sc/modules/ISC_Tools.js'></script>
                <script src="serengeti.crm/sc/skins/Simplicity/load_skin.js?isc_version=10.0.js"></script>
                
                <script type="text/javascript" language="javascript" src="serengeti.crm/serengeti.crm.nocache.js"></script>
                
                </body>
                </html>
                Does this work for anyone else? If it does then I guess it has to be an inherit in the gwt.xml, cant think of anythign else that could effect it.

                Thanks,
                Dale

                -------------------------------------------------------------------------------
                GWT Version : 2.4.0
                SmartGWT Version : 5.0p
                SmartGWT Build Date : 14/01/2015 10:58
                -------------------------------------------------------------------------------
                Last edited by ellisd5; 20 Jan 2015, 04:55.

                Comment


                  #9
                  Hi all,

                  Ok, I'm convinced it's a bug now, so removing everything in the gwt.xml file I still get the issue where I cant click the bottom displayed record.

                  Main.gwt.xml
                  Code:
                  <?xml version="1.0" encoding="UTF-8"?>
                  <module rename-to="serengeti.crm">
                  
                      <inherits name='com.google.gwt.user.User'/>
                      <inherits name="com.google.gwt.core.Core"/>
                      <inherits name="com.google.gwt.user.History"/>
                      <inherits name="com.google.gwt.logging.Logging"/>
                  
                      <inherits name="com.smartgwt.tools.SmartGwtTools"/>
                      <inherits name="com.smartgwtee.SmartGwtEENoScript"/>
                      <inherits name="com.smartgwt.Drawing"/>
                      <inherits name="com.smartgwt.Charts"/>
                      <inherits name="com.smartgwtee.tools.Tools"/>
                  
                      <inherits name="com.smartclient.theme.simplicity.SimplicityResources"/>
                  	
                  	<entry-point class="com.serengetisystems.tcrm.client.PortalTest" />
                  	
                  	<source path="client"/>
                  </module>
                  However if I change Main.gwt.xml

                  Code:
                  <inherits name="com.smartclient.theme.simplicity.SimplicityResources"/>
                  to
                  Code:
                  <inherits name="com.smartclient.theme.enterprise.EnterpriseResources"/>
                  and change Main.jsp

                  Code:
                  <script src="serengeti.crm/sc/skins/Simplicity/load_skin.js?isc_version=10.0.js"></script>
                  to
                  Code:
                  <script src="serengeti.crm/sc/skins/Enterprise/load_skin.js?isc_version=10.0.js"></script>
                  It works. Can someone please verify it's a bug with the simplicity skin as I don't feel I can do any more with this issue.

                  Thanks,
                  Dale

                  Comment


                    #10
                    Posted new thread as I've proved its an issue now in the showcase so posted a new concise thread.

                    Comment

                    Working...
                    X