How to implement autosuggestion in dropdown field in add/edit pop up form?

QuestionsHow to implement autosuggestion in dropdown field in add/edit pop up form?
Rankaj asked 9 years ago

How to implement autosuggestion in dropdown field in add/edit pop up form?

7 Answers
Abu Ghufran answered 9 years ago

Refer select2 demos in package archive.

Code: demos/integration/dropdown-select2.php
Live: http://phpgrid.org/demo/demos/integrations/dropdown-select2.php

Select any row and edit from toolbar to see select2 for dropdown.

Rankaj answered 9 years ago

Dear Abu,

At main grid "select2 dropdown" working fine for filter records but in add/edit pop up form the drop down is showing but keyword not typing means when we type in that autosuggestion input field nothing type . It would be appreciable if you can help in case of that?

Rankaj answered 9 years ago

Dear Abu,

The autosuggestio input type keyword not working properly(not typing in input field). At main grid its working smooth but in add/edit pop up its not working smoothly. Can u please tell me the reason behind that whether its due to css/jquery confliction or not?

Abu Ghufran answered 9 years ago

It is usually due to modal window javascript conflict.
By autosuggestion if you mean select2, i've resolved it in above code.

When linking select2, you need to unfreeze keypress. See link_select2 function in my last reply.r
$(document).unbind('keypress').unbind('keydown');

Rankaj answered 9 years ago

Its still not working in pop up forms add/edit when we input something in input fields autosuggestion. Moreover when press key in that field the dropdown breaks to below that is out of popup.

I used above your references
Code: http://phpgrid.org/demo/demos/integrations/dropdown-select2.phps
Demo: http://phpgrid.org/demo/demos/integrations/dropdown-select2.php

Abu Ghufran answered 9 years ago

The above demo links are working as expected.
May be I dont understand the issue correctly. Please share the screenshots of the issue you are facing.
You can use easycaptures.com for shraing.

Your Answer

20 + 17 =

Login with your Social Id:

OR, enter

Attach code here and paste link in question.
Attach screenshot here and paste link in question.



How useful was this discussion?

Click on a star to rate it!

Average rating 0 / 5. Vote count: 0

No votes so far! Be the first to rate it.

We are sorry that this post was not useful for you!

Let us improve this post!

Tell us how we can improve this post?