Force Combo to close on mouseout, Combo rows only to values

Got it going in xslt - I need to do the following



1. How do i force the Combo to close on loose focus or onmouseout: becuase when i select the Combo, i must select a value in order for it close - if i dont want to select & carry on i want the Combo to close?



2. It also moves everything after it to a new row:

meaning the Combo on one row & text that is surpose to be next to it is at the bottom on a new row?



3. I would also like the Combo to display only the rows = to the amount of value: I have a “Yes” or “No” values then the drop down will gives me 10 rows with 8 rows being blank -This is ok if there is a lookup with a lot of values?



Please Assist



The solution in xslt:

<xsl:template name=“ListValueType”>

<xsl:param name=“Name” />

<xsl:param name=“Attributes” />

<xsl:param name=“Options” />

<xsl:param name=“Value” />

<xsl:element name=“asp:dropdownlist”>

<xsl:attribute name=‘id’>

<xsl:value-of select=’$Name’ />

</xsl:attribute>

<xsl:attribute name=‘runat’>server</xsl:attribute>

<xsl:for-each select="$Attributes/Attribute">

<xsl:attribute name=’{@name}’>

<xsl:value-of select=’.’ />

</xsl:attribute>

</xsl:for-each>

<xsl:for-each select=’$Value/Options/Option’>

<xsl:element name=“asp:ListItem”>

<xsl:attribute name=‘Value’>

<xsl:value-of select=’.’ />

</xsl:attribute>

<xsl:if test="@selected[. = ‘true’]">

<xsl:attribute name=‘selected’>true</xsl:attribute>

</xsl:if>

<xsl:value-of select=’.’ />

</xsl:element>

</xsl:for-each>



</xsl:element>



</xsl:template>





Regards

  1. How do i force the Combo to close on loose focus or onmouseout
    Currently such behavior not supported, combo can be closed by
        - selecting value 
        - moving focus to any other input on page
        - clicking anywhere on page

    >> I would also like the Combo to display only the rows
    Combo supports filtering mode
        combo.enableFilteringMode(true);