Announcement

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

    Need real time value in combo box item

    Hi Team,

    We have one use case which we are not able to achieve using smartgwt.

    Use Case :

    1) We have one list grid with 5 dependeents feilds.
    2) All 5 are combo box item in list grid
    3) The value entered by user in feild 1 will be criteria for feild 2 and so on.
    4) We had also implemented user filtering on the combo box item.
    5) We had set the autofetch data to false , also addunknownvalues to false.

    Issue : When user is tabbing through the feilds very fast then the edit value entered by user is not getting saved. And we are getting old value using the below line of code.

    If i set setAddUnknownValues(true) then getEditValue of grid is giving the correct result no matter how fast I tab through. But the issue will occur if I set addunknownvalues to true.

    String valueinItem1= grid.getEditValue(rowNum, "code");












    Last edited by preeti_kanyal; 9 Mar 2020, 01:46.

    #2
    From a brief test, there does not appear to be any such issue in Chrome or Firefox at least.

    Please let us know if you have a way to reproduce the claimed issue.

    Comment


      #3
      Hi Team,

      To reproduce.

      1) Create list grid with 3 combo box items.
      2)override setPickListFilterCriteriaFunction for combox 2 and 3 in such a way that entered value in combo box 1 will be send as criteria to combo box 2 and entered value in combo box 2 will be criteria to combo box 3.
      3) Set addUnknonValue to false for all combo box item.

      Issue :

      If you press tabout ,
      String valueinItem1= grid.getEditValue(rowNum, "code");

      will return null , as on tabout smartgwt is matching the user entered value to the picklist to check if it is valid value or not.


      To resolve it , we need to apply wait or delay on tab press so that the user typed value will be avilable in grid.getEditValue(rowNum, "code");

      Kindly let us know if there is any alternate solution is avilable for the same.

      Comment


        #4
        We tried that already - it's easy to just do some cutting and pasting in the Grid Dependent Selects example to get to what you claimed was a problem - but there was no issue in the tested browsers.

        So please let us know if there's a way to reproduce this issue.

        If you provide test code, please make sure you provide it in a *clean project with no other code and no skin customizations*. Your team routinely reports problems that can't be reproduced, even with test code from you.

        Comment

        Working...
        X