I have a problem in gridview responsive bootstrap article. When I put a CommandField and when I click on the button, the responsive property is lost and the gridview back to normal. http://aspsnippets.com/Articles/Bootstrap-Responsive-GridView-for-Mobile-Phone-Tablet-and-Desktop-display-in-ASPNet-using-jQuery.aspx
<asp:GridView ID="gvwDisciplina" CssClass="footable" AutoGenerateColumns="False" runat="server" OnSelectedIndexChanged="gvwDisciplina_SelectedIndexChanged"> <Columns> <asp:CommandField ButtonType="Image" SelectImageUrl="~/Imagens/Selecionar.png" ShowSelectButton="True" /> <asp:BoundField DataField="curso" HeaderText="Curso" /> <asp:BoundField DataField="disciplina" HeaderText="Disciplina" /> <asp:BoundField DataField="curriculo" HeaderText="Currículo" /> <asp:BoundField DataField="turma" HeaderText="Turma" /> </Columns> </asp:GridView>
Just use this script only , remove others then try :
<script type="text/javascript"> function pageLoad() { $(document).ready(function(){ $('[id*=gvwDisciplina]').footable(); }); } </script>
© COPYRIGHT 2024 ASPSnippets.com ALL RIGHTS RESERVED.