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

    <tfoot id='SIqLD'></tfoot>
    <i id='SIqLD'><tr id='SIqLD'><dt id='SIqLD'><q id='SIqLD'><span id='SIqLD'><b id='SIqLD'><form id='SIqLD'><ins id='SIqLD'></ins><ul id='SIqLD'></ul><sub id='SIqLD'></sub></form><legend id='SIqLD'></legend><bdo id='SIqLD'><pre id='SIqLD'><center id='SIqLD'></center></pre></bdo></b><th id='SIqLD'></th></span></q></dt></tr></i><div id='SIqLD'><tfoot id='SIqLD'></tfoot><dl id='SIqLD'><fieldset id='SIqLD'></fieldset></dl></div>
      <bdo id='SIqLD'></bdo><ul id='SIqLD'></ul>

    1. <legend id='SIqLD'><style id='SIqLD'><dir id='SIqLD'><q id='SIqLD'></q></dir></style></legend>

      在 yii2 gridview 中输入时进行过滤

      时间:2023-10-15

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

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

              1. <legend id='f94Hv'><style id='f94Hv'><dir id='f94Hv'><q id='f94Hv'></q></dir></style></legend>
                  <tbody id='f94Hv'></tbody>

              2. 本文介绍了在 yii2 gridview 中输入时进行过滤的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                问题描述

                我需要在您输入时过滤 gridview.默认情况下,它仅在按下 Enter 键时进行过滤.

                I need to filter the gridview as you type. By default it filters only when the enter key is pressed.

                推荐答案

                你应该使用你自己的 js 来处理这个问题,例如:

                You should handle this using your own js, e.g. :

                $this->registerJs('$("body").on("keyup.yiiGridView", "#grid-id .filters input", function(){
                    $("#grid-id").yiiGridView("applyFilter");
                })', yiiwebView::POS_READY);
                

                您当然应该用适当的 id 替换 grid-id.

                You should of course replace grid-id with appropriate id.

                这篇关于在 yii2 gridview 中输入时进行过滤的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                上一篇:Yii2:从 gridView 复选框列中获取选定的行数据到控制器中 下一篇:Yii2:对 GridView 中的关系计数列进行排序

                相关文章

              3. <i id='5stIL'><tr id='5stIL'><dt id='5stIL'><q id='5stIL'><span id='5stIL'><b id='5stIL'><form id='5stIL'><ins id='5stIL'></ins><ul id='5stIL'></ul><sub id='5stIL'></sub></form><legend id='5stIL'></legend><bdo id='5stIL'><pre id='5stIL'><center id='5stIL'></center></pre></bdo></b><th id='5stIL'></th></span></q></dt></tr></i><div id='5stIL'><tfoot id='5stIL'></tfoot><dl id='5stIL'><fieldset id='5stIL'></fieldset></dl></div>

                  <small id='5stIL'></small><noframes id='5stIL'>

                    <tfoot id='5stIL'></tfoot>

                      <bdo id='5stIL'></bdo><ul id='5stIL'></ul>

                  1. <legend id='5stIL'><style id='5stIL'><dir id='5stIL'><q id='5stIL'></q></dir></style></legend>