Announcement

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

    DateItem in ListGrid probleme on Firefox

    Hy,

    Strating from this example:
    http://www.smartclient.com/index.jsp...ata.types_Date

    I've noticed this:
    In Firefox 2.0.0.14 if I want to edit a record but in this way:
    1. Click on the column Country and the row with China
    2. select a date directly from DateChooser
    3. the dateInputField sets ok
    4. end edititng

    The value is not saved.
    I'm thinking is something with the focus.

    If I'm tabing through row's fields and then set the date it's ok.
    If I click first on the inputField and then choose a value from DateChooser it's ok.
    In IE it's working fine.

    I've tried this on few computers...same result.



    Thanks,
    John
    Last edited by JohnBlack; 18 May 2008, 03:55.

    #2
    Thanks for the heads up - that's a bug to do with focus handling differences between the browsers.
    We'll be sure to resolve that for our next build. Let us know if you need a more urgent fix and we can also look into a patch against 6.5

    Regards
    Isomorphic Software

    Comment


      #3
      1) It also appears that if you have multiple date columns in the grid, only the first date column value will be sent to the server, regardless of whether you are using IE, Firefox, or JohnBlack's workaround.

      2) If you have multiple date columns, no values for columns following the second date column are sent at all. I have tested this in IE and Firefox and it appears to hold true for both.

      Is there a patch yet for 6.5 for any of the date column issues?

      Comment


        #4
        Or is there a column limit that will be submitted back when adding rows in a listgrid in 6.5? The most number of columns I can see submitted in IE 7 is 14 and in Firefox 2 is 15 columns.

        Comment


          #5
          No, there's no column limit and many applications submit 100+ fields - if you think you're seeing a column limits it's probably related to the date-specific bug.

          Stay tuned for 6.5.1.

          Comment


            #6
            Hy ProbablySlackin,
            I have grids with 2 or more date fields but I've couldn't reproduce u're situation.
            I think that u've been confused by the bug related to focus that Isomorphic stated before.

            Comment


              #7
              Ok, I've narrowed it down and it may be due to the column widths that I have specified, but I'm not 100% sure.

              Test case:
              Code:
              isc.DataSource.create({
                  dataFormat:"xml",
                  ID:"myDataSource",
                  fields:[
                      {title:"myPK", name:"vv_pk", type:"number", primaryKey:true, canEdit:false, hidden:"true"},
                      {title:"COL1", name:"vv_col1", frozen:true, width:"100"},
                      {title:"COL2", name:"vv_col2", frozen:true, width:"100"},
                      {title:"COL3", name:"vv_col3", width:"80"},
                      {title:"COL4", name:"vv_col4", width:"80"},
                      {title:"COL5", name:"vv_col5", width:"80"},
                      {title:"COL6", name:"vv_col6", width:"50"},
                      {title:"COL7", name:"vv_col7", width:"130"},
                      {title:"COL8", name:"vv_col8", width:"130"},
                      {title:"COL9", name:"vv_col9", width:"80"},
                      {title:"COL10", name:"vv_col10", width:"60"},
                      {title:"COL11", name:"vv_col11", width:"80"},
                      {title:"COL12", name:"vv_col12", width:"60"},
                      {title:"COL13", name:"vv_col13", width:"100"},
                      {title:"COL14", name:"vv_col14", width:"60"},
                      {title:"COL15", name:"vv_col15", width:"150"},
                      {title:"COL16", name:"vv_col16", width:"80"},
                      {title:"COL17", name:"vv_col17", width:"80"},
                      {title:"COL18", name:"vv_col18", width:"80"},
                      {title:"COL19", name:"vv_col19", width:"80"},
                      {title:"COL20", name:"vv_col20", width:"120"}
                  ],
                    operationBindings:[
                      {operationType:"fetch",
                       recordXPath:"//myRecordPath",
                       dataURL:"/someStoredProcedure"},
                      {operationType:"add",
                       dataURL:"/someStoredProcedure",
                       recordXPath:"//myRecordPath"},
                    ]
              })
              isc.ListGrid.create({    
                  dataSource:myDataSource,
                  ID:"myListGrid", 
                  alternateRecordStyles:true, 
                  showSortArrow:"corner",
                  overflow:"auto",
                  autoFetchData:false,
                  autoDraw:false,
                  width:"950",
                  height:"250",
                  top:"0",
                  margin:0,
                  padding:0
              })
                  isc.Button.create({
                  title:"add",
                  autoDraw:false,
                  ID:"addButton",
                  click:"myListGrid.startEditingNew()"
              })
              isc.Button.create({
                  title:"delete",
                  autoDraw:false,
                  ID:"deleteButton"
              })
              isc.HLayout.create({
                  members:[
                      addButton,
                      deleteButton
                  ],
                  autoDraw:false,
                  membersMargin: 5,
                  ID:"HLayoutButtons"
              })
              isc.VLayout.create({
                  members:[
                      myListGrid,
                      HLayoutButtons
                  ],
                  position: "relative",
                  membersMargin: 5,
                  autoDraw:true,
                  overflow:"hidden",
                  width:"950",
                  ID:"VLayout1",
                  height:"400"
              })
              In that example I see the following "parameter" output from firebug in Firefox 2.0.0.14 when I have entered the value "a" for each of the 20 columns

              Code:
              vv_col1	a
              vv_col10	a
              vv_col11	a
              vv_col12	a
              vv_col13	a
              vv_col14	a
              vv_col2	a
              vv_col3	a
              vv_col4	a
              vv_col5	a
              vv_col6	a
              vv_col7	a
              vv_col8	a
              vv_col9	a
              That only sends 14 of the parameters. If I remove all of the width declarations for the columns then all 20 of the parameters are sent. Is this a bug, or am I doing something wrong? Thanks.
              Last edited by ProbablySlackin; 26 Jun 2008, 07:42.

              Comment


                #8
                Hi ProbablySlackin, JohnBlack,

                Just checking in to let you know that
                a) yes this second issue is a real bug - sorry for the hassle
                and
                b) both these issues are fixed in our 6.51 release which is currently in final testing stages and will be out very soon

                Thanks
                Isomorphic Software

                Comment


                  #9
                  Hy,

                  Sorry to bring up this thread again but I encoutered the same problem with the SpinnerItem.

                  Thanks in advance,
                  John

                  Comment

                  Working...
                  X