0

I'm having UI problems with ajaxtoolkit's combo box inside gridview.

 <asp:Gridview Id="grv" runat="server" AutoGenerateColumns="False" CellPadding="4">
  <Columns>
    <asp:TempalteField>
        <ItemTemplate>
              <cc1:ComboBox ID="cmbGrdOrigin" runat="server"  AutoCompleteMode="Suggest" Visible="false" DropDownStyle="DropDown"
                            AutoPostBack="true">
                            <asp:ListItem Text="" Value="" />
                            <asp:ListItem Text="Domestic" Value="Domestic" />
                            <asp:ListItem Text="Foreign" Value="Foreign" />
              </cc1:ComboBox>
        </ItemTemplate>
    <asp:TempalteField>
  </Columns>
 </asp:Gridview>    

The problem is the list of items are not showing. The combobox item list does not overlap with the cell below it.

Added photo for reference. all the combobox on the grid does not work https://drive.google.com/open?id=0B4JBZR0AZcx9WjNkbjM5UkZ1Y2c

8
  • would Visible="false" be related to why the combobox is not showing, do you think? Also I'm pretty sure asp:TempalteField should be asp:TemplateField (and same when you close it)
    – ADyson
    Dec 14, 2016 at 13:39
  • the visible ="false" changes after i pressed the button. the combox is showing properly the problem is the choice are not showing up.
    – Alvie
    Dec 15, 2016 at 0:49
  • Have you using ScriptManager? I found no other errors besides <asp:TempalteField>, which should be <asp:TemplateField>...</asp:TemplateField> Dec 15, 2016 at 2:21
  • Yup i have ScriptManager.. and already fixed the </asp: Templatefield>.
    – Alvie
    Dec 15, 2016 at 2:28
  • just checking, you have not bound this to a datasource in the code-behind have you? According to the docs (ajaxcontroltoolkit.devexpress.com/ComboBox/ComboBox.aspx) "When bound to a data source, all declared ListItems will be removed unless the AppendDataBoundItems property is set to "true".
    – ADyson
    Dec 15, 2016 at 9:35

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.