简体   繁体   English

在phpgrid中添加组合框

[英]Add combobox in phpgrid

I am developing a php websites where i need to add a combobox in a row of phpgrid.Just assume that a user will select his/her Company through a combobox value. 我正在开发一个php网站,我需要在phpgrid的一行中添加一个组合框。假设用户将通过组合框值选择他/她的公司。 在此处输入图片说明 How to i do that ? 我该怎么做? Need suggestions badly.Thanks in advance. 急需建议。谢谢。

From phpgrid documentation http://phpgrid.com/example/set_col_edittype-2/ , you can set "autocomplete" edit type. 从phpgrid文档http://phpgrid.com/example/set_col_edittype-2/中 ,您可以设置“自动完成”编辑类型。

$dg -> set_col_edittype("officeCode", "autocomplete", "Select officeCode,city from offices",false);

在此处输入图片说明

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM