• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
What grid to use??Confused

#1
[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

#2
[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>


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2021 MyBB Group.