如何在GridView中打开手机键盘

时间:2019-04-15 18:46:45

标签: asp.net

我在gridView内有一系列文本框,并且可以在桌面上使用,但是在移动环境中,键盘只出现了片刻就消失了,这是为什么?

<div id="gridContainer" style="overflow-y: auto; height: 215px; " >
 <asp:UpdatePanel ID="grdUpdatePanel" runat="server" UpdateMode="Conditional">
   <ContentTemplate>

<asp:GridView runat="server" ID="gvMuestras" AutoGenerateColumns="false" DataKeyNames="Id" GridLines="Vertical" CellPadding="4" ShowHeaderWhenEmpty="true" ShowHeader="true" FooterStyle-CssClass="background-color:LightGreen;" ShowFooter="true"CssClass="table table-striped table-bordered " OnSelectedIndexChanged="gvMuestras_SelectedIndexChanged">

 <Columns>

  <HeaderTemplate >
      <div style="text-align: center; ">
       <asp:Label runat="server" Text="Activity" data-toggle="tooltip" data-placement="auto top" ToolTip="Activity name"></asp:Label>
                                            </div>
  </HeaderTemplate>

    <ItemTemplate>
       <asp:TextBox ID="txtActivityName" runat="server" Text='<%# Bind("Actividad") %>' CssClass="form-control" Width="200px" Style="padding-left: 0px; padding-right: 0px" Font-Size="Small" placeholder="Insert activity name" AutoCompleteType="Disabled"></asp:TextBox>
    </ItemTemplate>
        <FooterTemplate>
   <asp:TextBox ID="txtActivityNameTotal" runat="server" Text="Total" CssClass="form-control" Width="200px" Style="padding-left: 0px; padding-right: 0px" Font-Size="Small" AutoCompleteType="Disabled"></asp:TextBox>
         </FooterTemplate>
         </asp:TemplateField>

0 个答案:

没有答案