<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 中输入时进行过滤

      filter as you type in yii2 gridview(在 yii2 gridview 中输入时进行过滤)

        <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 中输入时进行过滤的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!

                相关文档推荐

                Is Joomla 2.5 much faster than Joomla 1.5 Querywise(Joomla 2.5 比 Joomla 1.5 Querywise 快得多吗)
                How to share Joomla login session from one joomla website to one ASP.Net MVC website(如何将 Joomla 登录会话从一个 joomla 网站共享到一个 ASP.Net MVC 网站)
                htaccess redirect root to subdirectory but allow index.php in root AND query strings to function(htaccess 将根重定向到子目录,但允许根和查询字符串中的 index.php 起作用)
                Joomla include database functions(Joomla 包含数据库功能)
                nl2br() not working when displaying SQL results(显示 SQL 结果时 nl2br() 不起作用)
                Joomla 2.5 JFactory::getSession(); seems to be caching in firefox(Joomla 2.5 JFactory::getSession();似乎在 Firefox 中缓存)

                <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>

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

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

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

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

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