久久久久久久av_日韩在线中文_看一级毛片视频_日本精品二区_成人深夜福利视频_武道仙尊动漫在线观看

        • <bdo id='3Ai6w'></bdo><ul id='3Ai6w'></ul>
        <i id='3Ai6w'><tr id='3Ai6w'><dt id='3Ai6w'><q id='3Ai6w'><span id='3Ai6w'><b id='3Ai6w'><form id='3Ai6w'><ins id='3Ai6w'></ins><ul id='3Ai6w'></ul><sub id='3Ai6w'></sub></form><legend id='3Ai6w'></legend><bdo id='3Ai6w'><pre id='3Ai6w'><center id='3Ai6w'></center></pre></bdo></b><th id='3Ai6w'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='3Ai6w'><tfoot id='3Ai6w'></tfoot><dl id='3Ai6w'><fieldset id='3Ai6w'></fieldset></dl></div>

        <small id='3Ai6w'></small><noframes id='3Ai6w'>

        <legend id='3Ai6w'><style id='3Ai6w'><dir id='3Ai6w'><q id='3Ai6w'></q></dir></style></legend>
        <tfoot id='3Ai6w'></tfoot>

        按鈕單擊事件后 DataTable 不渲染 Gridview

        DataTable not rendring Gridview after button click event(按鈕單擊事件后 DataTable 不渲染 Gridview)

            <bdo id='7siaB'></bdo><ul id='7siaB'></ul>
              <tbody id='7siaB'></tbody>

            <small id='7siaB'></small><noframes id='7siaB'>

            <tfoot id='7siaB'></tfoot>

              <i id='7siaB'><tr id='7siaB'><dt id='7siaB'><q id='7siaB'><span id='7siaB'><b id='7siaB'><form id='7siaB'><ins id='7siaB'></ins><ul id='7siaB'></ul><sub id='7siaB'></sub></form><legend id='7siaB'></legend><bdo id='7siaB'><pre id='7siaB'><center id='7siaB'></center></pre></bdo></b><th id='7siaB'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='7siaB'><tfoot id='7siaB'></tfoot><dl id='7siaB'><fieldset id='7siaB'></fieldset></dl></div>
              <legend id='7siaB'><style id='7siaB'><dir id='7siaB'><q id='7siaB'></q></dir></style></legend>

                • 本文介紹了按鈕單擊事件后 DataTable 不渲染 Gridview的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

                  問題描述

                  在創建頁面時,一切正常,但是當我單擊按鈕以顯示所選行時,我的網格視圖不會呈現為數據表.我需要做什么來解決這個問題或我做錯了什么?

                  In my page when it's creating, everything is working fine but when I am clicking on the button to show the selected row, then my grid view is not rendering as a datatable. What I need to do to fix this or what I am doing wrong?

                  我的腳本:

                  <script type="text/javascript">
                          $(function () {
                              $('[id*=gvTest]').prepend($("<thead></thead>").append($(this).find("tr:first"))).DataTable({
                                  "responsive": true,
                                  "sPaginationType": "full_numbers",
                                  
                                   
                              });
                          });
                          $(document).ready(function () {
                  
                              var table = $('#gvTest').DataTable();
                              $('#gvTest tbody').on( 'click', 'tr', function () {
                              $(this).toggleClass('selected');
                              });
                                
                        
                              $('#btnRead').click(function () {
                             var ids = $.map(table.rows('.selected').data(), function (item) {
                                 return item[0]
                                   });               
                              });
                             
                      } );
                      </script>
                  

                  我的網格:

                  <asp:ScriptManager ID="ScriptManager1" runat="server"> </asp:ScriptManager>
                     <asp:UpdatePanel ID="updatePanel" runat="server">
                       <ContentTemplate>
                  
                       <asp:GridView  ID="gvTest" Width="100%" runat="server"  AutoGenerateColumns="False" >
                        <Columns>
                             <asp:BoundField  DataField="PatientID"  HeaderText="Patient ID" >
                             </asp:BoundField>
                             <asp:BoundField  DataField="PatientName"  HeaderText="PatientName" >
                             </asp:BoundField>
                             <asp:BoundField  DataField="Age"  HeaderText="Age" >
                             </asp:BoundField>
                             <asp:BoundField  HeaderText="Sex" DataField="Sex"  >
                             </asp:BoundField>
                             <asp:BoundField  HeaderText="Mod" DataField="Modality"  >                                 
                        </Columns>
                      </asp:GridView>
                  </ContentTemplate>
                  </asp:UpdatePanel>
                  

                  當我的頁面被創建時:

                  一切正常,但是當我點擊一個按鈕時,就會發生這種情況:

                  Everything is working fine, but when I click a button then this happens:

                  我現在需要做什么來解決這個問題?

                  What do I need to do now to fix this problem ?

                  推薦答案

                  在使用了很多其他代碼后,我沒有得到合適的解決方案,所以我在頁面加載時使用了它,它工作正常

                  after using a lots of others code i did'nt get a proper solution so i used this on my page load and its working fine

                  gvTest.UseAccessibleHeader = true;
                  //adds <thead> and <tbody> elements
                  gvTest.HeaderRow.TableSection =
                  TableRowSection.TableHeader;
                  

                  這篇關于按鈕單擊事件后 DataTable 不渲染 Gridview的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!

                  【網站聲明】本站部分內容來源于互聯網,旨在幫助大家更快的解決問題,如果有圖片或者內容侵犯了您的權益,請聯系我們刪除處理,感謝您的支持!

                  相關文檔推薦

                  Ignore whitespace while reading XML(讀取 XML 時忽略空格)
                  XML to LINQ with Checking Null Elements(帶有檢查空元素的 XML 到 LINQ)
                  Reading XML with unclosed tags in C#(在 C# 中讀取帶有未閉合標簽的 XML)
                  Parsing tables, cells with Html agility in C#(在 C# 中使用 Html 敏捷性解析表格、單元格)
                  delete element from xml using LINQ(使用 LINQ 從 xml 中刪除元素)
                  Parse malformed XML(解析格式錯誤的 XML)
                  • <bdo id='oEUq5'></bdo><ul id='oEUq5'></ul>

                        <small id='oEUq5'></small><noframes id='oEUq5'>

                            <tbody id='oEUq5'></tbody>

                          <i id='oEUq5'><tr id='oEUq5'><dt id='oEUq5'><q id='oEUq5'><span id='oEUq5'><b id='oEUq5'><form id='oEUq5'><ins id='oEUq5'></ins><ul id='oEUq5'></ul><sub id='oEUq5'></sub></form><legend id='oEUq5'></legend><bdo id='oEUq5'><pre id='oEUq5'><center id='oEUq5'></center></pre></bdo></b><th id='oEUq5'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='oEUq5'><tfoot id='oEUq5'></tfoot><dl id='oEUq5'><fieldset id='oEUq5'></fieldset></dl></div>
                          1. <legend id='oEUq5'><style id='oEUq5'><dir id='oEUq5'><q id='oEUq5'></q></dir></style></legend>
                            <tfoot id='oEUq5'></tfoot>
                            主站蜘蛛池模板: 国产成人精品一区二区三区四区 | 久在草| 日韩在线小视频 | 青久草视频 | 精品福利一区二区三区 | 毛片免费视频 | 亚洲视频一区在线 | 中文字幕国产 | 久久久久亚洲视频 | 国产成在线观看免费视频 | 久久精品久久久久久 | 天天人人精品 | 精品国产一区二区三区久久影院 | 亚洲精品三级 | 日韩在线精品视频 | 亚洲 91| 一级片在线视频 | 奇米影视77 | 欧美视频免费在线 | 91久久看片 | 国产成人av电影 | 综合九九 | 日韩久久精品电影 | 久久精品99 | www.色综合| 国产精品永久在线观看 | 国产精品高清一区二区三区 | 欧美aⅴ在线观看 | 国产精品久久久久久久久免费 | 国产亚洲精品美女久久久久久久久久 | av网站免费观看 | 精品国产一区二区三区久久 | 日韩欧美亚洲一区 | 91亚洲国产成人精品一区二三 | 午夜国产 | 亚洲精品2| 中文字幕在线三区 | 在线中文字幕第一页 | 不卡的av电影 | 日韩三级在线观看 | 在线看黄免费 |