Yii2 Lesson - 16 Ajax Search With the GridView

Yii2 Lesson - 16 Ajax Search With the GridView

Uthpala Heenatigala

9 лет назад

44,236 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

@grgr144
@grgr144 - 19.04.2024 12:22

But how to implement decent live searching ? without click outside of the input..
I implemented it already but it's not smooth

Ответить
@PhilipeLemos_Phinfo
@PhilipeLemos_Phinfo - 26.09.2021 23:22

Muito bom!
Obrigado

Ответить
@GoodMoodParaSiempre
@GoodMoodParaSiempre - 05.10.2019 20:41

Thank you so much! It's very helpful.

Ответить
@chandraprakash9851
@chandraprakash9851 - 03.03.2017 08:35

How can I show search items in the list form?

Ответить
@groidmail1346
@groidmail1346 - 13.11.2016 06:46

Hello dear, Thanks for your video, very useful and educational. Today I follow your Pjax example, try it out and it works, except that there is a minor glitch. When the search result is being display on the screen it shift a little bit (about 1 character) to the right side. When clear out all the searching field(s) it shift back to the left. Just wonder is there any setting I missed and I need to adjust.

Ответить
@dungphanxuan1001
@dungphanxuan1001 - 20.04.2016 10:28

Hello, how can i user with search form.

Ответить
@agungcn2416
@agungcn2416 - 26.03.2016 09:22

can anyone help me about Ajax CRUD Generator extension??. i got an error "undefined variabel: searchModel" and i dont know which php file i have to configure

Ответить
@its_litha
@its_litha - 07.03.2016 15:39

Hi, thank u for your video, its educative, Id like to reload my grid when a user selects date from a text field (date from and date to). how can i achieve this? In yii 1 we can do it this way $.fn.yiiGridView.update('player-grid');, bt how can i achieve the same in yii2?

Ответить
@linamoc-personal
@linamoc-personal - 22.02.2016 01:21

Hello,

did someone solve that problem of only activate the search when I hit enter or tab?

Beforehand, thanks for your help.

Ответить
@LeonelCorso
@LeonelCorso - 03.02.2016 18:35

Thanks!!!

Ответить
@vilmarMartins
@vilmarMartins - 20.10.2015 20:47

Hello, thank you for sharing knowledge.It was a great help!

Ответить
@alrahim75358
@alrahim75358 - 17.10.2015 15:41

I am also facing the same problem. It works only when I click other other field. is there any solution to resolve this.

Ответить
@ricardojreyv
@ricardojreyv - 08.09.2015 08:47

Hello, I have a problem with Pjax used in kartik gridview and modal (popup) buttons, I have and update and create buttons (update is inside the gridview in the actioncolumn), both with a modal windows, they works fine, but after I make some search using pjax the buttons don´t work, please someone has had this issue and found a solution? thanks!!

Ответить
@danaisronsai9136
@danaisronsai9136 - 22.07.2015 08:35

How to Ajax Button Controller1 link to Controller2 (actionCreate) ?

Ответить
@danaisronsai9136
@danaisronsai9136 - 19.07.2015 13:21

Controller make edit ?

Ответить
@gustavosooeiro
@gustavosooeiro - 21.05.2015 09:37

I figure it out that the page is already working, but in order to the page be reloaded I have to click outside the form field. I don't know how to change this behavior to make the request ajax as I type the letters. Any ideas?

Ответить
@mauricioch7401
@mauricioch7401 - 26.04.2015 18:37

Is there any way to search our arguments and that are not displayed on the URL , is there some risk or vulnerability to be sent by GET?

Ответить
@antoniojmg
@antoniojmg - 22.04.2015 11:43

Thanks for this tutorial. I'm having a problem with this Pjax in particular, doesn't work, I try different things like Timeout, and the container id but doesn't work. It only activate when I hit enter or tab no when I'm typing. I follow your exact instructions but nothing.

Do I need to initialize something? I was reading that I may need to  pass the url along with the search parameters to the Pjax in order to refresh the gridview. But not sure how. 

Thanks for your help.

Ответить
@trinhxuan1686
@trinhxuan1686 - 02.02.2015 17:07

Thansk you very much 

Ответить
@bogdanych-m1h
@bogdanych-m1h - 02.02.2015 16:32

Hi, everyone! I faced with a little trouble when pjax doesn't want to work despite all my attempts. The trouble was in my local server which too slow return a request. In this case pjax degrade to simple get request. To solve that problem I increased timeout in settings pjax. Like this: <? Pjax::begin(['timeout' => 2000]); ?>
Maybe it'll be helpful for someone.

Ответить
@lawiinnocent3829
@lawiinnocent3829 - 15.01.2015 09:07

Great video, keep doing this GOOD work.

Ответить
@aneeshikmat
@aneeshikmat - 14.01.2015 14:55

Thank you very much, really easy and fantastic lesson ^_^, 

Ответить
@md.mahbuburrahman6155
@md.mahbuburrahman6155 - 12.01.2015 09:26

Hello , its a really a good tutorial , i can learn many thing of yii2 framework as i am new user on Yii2.

I like to use sublime text 3 as my editor , but i did not find any helpful plugin for yii2 as i can use it on sublime text like you. Do you please give me the link of the sublime  yii2 plugin which you used on your tutorial for auto completion.

Thanks in advance :)

Ответить
@AK-bc4ls
@AK-bc4ls - 10.01.2015 10:02

Oh, interesting and useful feature!
However, I am trying to create a input field like Google Search which automatically suggests the most appropriate options from the database)

Ответить
@path617
@path617 - 10.01.2015 09:46

Great video and easy to understand

Ответить