Announcement

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

    Select drop down selecting multiple rows.

    I have a search form and many (single ) select drop down field in it.
    Many fields work fine. But there are few fields like country, currency which contains hundreds of values in drop down select field.
    So what happens is that when user clicks on drop down , say for country, and starts moving mouse over it , which ever items in drop down is hovered , gets shown as selected. Though in end only one is selected on which user left clicks. But moving mouse over fields shows them as selected . This is confusing.

    How can this be fixed.

    Select field is-
    Code:
    {name: "searchFieldCountry",align: "right", defaultValue: "<b>Countries</b>", type:"select",height:18,showTitle : false,
    	            	optionDataSource:"countryDS",valueField:"isoCode",displayField:"name"
    },
    optionDataSource returns all countries list.
    Smartclient we are using 7.0 rc2 ( or a version more than that)
    Browser used - Mozilla firefox - 3.5.12

    Thanks
    Attached Files

    #2
    In 7.0RC2 it was possible to get this behavior if you return a bad value for totalRows in your DSResponse.

    Comment


      #3
      Originally posted by Isomorphic
      In 7.0RC2 it was possible to get this behavior if you return a bad value for totalRows in your DSResponse.
      Hello Isomorphic,
      Thanks for reply.
      I am sorry I told the wrong version. We are using
      Smartclient - 7.0rc4PowerEdition

      So do we have any solution for this issue?

      Thanks

      Comment


        #4
        Yes - return a correct value for totalRows, and make sure it is not omitted.

        Comment


          #5
          Originally posted by Isomorphic
          Yes - return a correct value for totalRows, and make sure it is not omitted.
          Thanks very much Isomorphic,
          your suggestion worked.
          I did following

          [CODE]
          dsResponse.setStartRow(0);
          dsResponse.setEndRow(countryList.size());
          dsResponse.setTotalRows(countryList.size());
          dsResponse.setData(countryList);
          [CODE]

          Now drop down displays fine and mouse hover doesn't cause multiselect mirage.
          Thanks

          Comment

          Working...
          X