CodeIgniter Forums
What grid to use??Confused - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23)
+--- Thread: What grid to use??Confused (/showthread.php?tid=21732)



What grid to use??Confused - El Forum - 08-19-2009

[eluser]imtiazhashmi[/eluser]
im looking to use a Grid in PHP CI (1.7.1).

i have searched Flexigrid , it works but , im not able to get Edit/Add things working inside the grid.
i have seen YUI and ExtJS (not used yet) , looking upon them as options.
can someone suggest me something really tested , that works fine with CRUD inside grid.
All the searches on these leads to different problems , may be those who Solved dont Post.
thanks a lot

Confused


What grid to use??Confused - El Forum - 09-02-2009

[eluser]oldroy[/eluser]
Extjs has what they call an "editor grid". It's slick but it is kind of hard to do all of the CRUD functions without adding in some modal forms to do add, and buttons to delete currently chosen rows. There are add-ins to the editor grid that help do all, but I've never messed with them.

Integrating this within codeigniter is as simple as what follows for cRud (READ) and a few other controller functions for the rest.

<code>
function ajaxGetImages($id=0){
if ($id == 0)
{
$id = $this->auth->getProjectId();
}

if ($data = $this->MImages->getAllImages($id))
{
$data = (json_encode($data));
echo "{success:true,rows:" . $data."}";
}
else
{
echo "{success:false,msg: 'No records returned'}";
}

}
</code>