How to implement jquery-tokeninput library in PHPgrid for mulitple records in pop up

QuestionsHow to implement jquery-tokeninput library in PHPgrid for mulitple records in pop up
Rankaj asked 9 years ago

Dear Abu,

I want to use "jQuery Tokeninput" library instead of "Select2" library. Can u please help me in that.

Reference:-
———–
http://loopj.com/jquery-tokeninput/

Thanks
Rankaj

1 Answers
Abu Ghufran answered 9 years ago

As this lib need json data from backend, this is not support in phpgrid right now.
If you can code your php script that return json data, then it's doable to connect it with any column of grid using dataInit option.
For reference, review demos/integration/<any-file>

$col["editoptions"]["dataInit"] = "function(){ setTimeout(function(){ ……. },200); }";

Inside function, you can put tokeninput init code.

Your Answer

10 + 13 =

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?