Part of the EllisLab Network
   
6 of 7
6
Flexigrid CodeIgniter Implementation
Posted: 13 May 2009 10:51 AM   [ Ignore ]   [ # 51 ]  
Summer Student
Total Posts:  10
Joined  01-29-2009
monpire - 07 May 2009 12:32 PM

Hi, thanks for such a tool.

I am having some problem implementing even with the example.  No matter what I tried, it just sits there and won’t load the records.

To see this: Flexigrid Test

I have set the libraries to autoload database, nothing seemed to help.  Although in FireBug console there seems to be no query passing. 

Thank you in advance

Monpire - Did you ever get this issue resolved?  I am having similar issues where the datagrid loads but no content is present. 

I tested it in my local development environment with success but on the production server the results are different. 

Do you think it is a permissions issue with the ajax call? 

Thanks - phishee (Brandon)

Profile
 
 
Posted: 13 May 2009 01:02 PM   [ Ignore ]   [ # 52 ]  
Summer Student
Total Posts:  10
Joined  01-29-2009

Ok - I am an idiot; got it working.  I had to go back and use the non-JSON method as my server does not have the JSON extension compiled with PHP.  For future reference, as of PHP 5.2.0 the JSON extension is included by default.

Hope that helps someone - phishee (Brandon)

Profile
 
 
Posted: 14 May 2009 07:56 AM   [ Ignore ]   [ # 53 ]  
Summer Student
Total Posts:  2
Joined  05-07-2009
monpire - 07 May 2009 12:32 PM

Hi, thanks for such a tool.

I am having some problem implementing even with the example.  No matter what I tried, it just sits there and won’t load the records.

To see this: Flexigrid Test

I have set the libraries to autoload database, nothing seemed to help.  Although in FireBug console there seems to be no query passing. 

Thank you in advance

I found what the problem was, it was because I wasn’t using PHP5.  As soon as I upgraded to php5 and fixed some minor naming issues - it worked.  So for future reference smile

Profile
 
 
Posted: 16 May 2009 01:44 AM   [ Ignore ]   [ # 54 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  120
Joined  11-03-2008

I have been watching flexigrid quite closely now but i have not come across a fully CRUD implementation.The delete method works just fine but i think a simple demo of the remaining CRU will go a long way,i think.

 Signature 

I wish i was a ci pro.

Profile
 
 
Posted: 21 June 2009 05:20 AM   [ Ignore ]   [ # 55 ]  
Grad Student
Avatar
Rank
Total Posts:  61
Joined  04-15-2008

I’d just used it here (development server):
http://hdeya.homeip.net/admin/items/list_all/

and it works great smile, thanks a lot !

Profile
 
 
Posted: 27 July 2009 01:06 PM   [ Ignore ]   [ # 56 ]  
Summer Student
Total Posts:  12
Joined  09-17-2007

I have a question grin..

I have installed flexigrid in my CI project, but it wont work.
When i go to the ajax file directly it works and the logfile gives me the
DEBUG - 2009-07-27 21:00:37—> EVD CMS Flexigrid Class Initialized

When i go to the main page with the <table> it does not show, and i do not get any error messages, the debug message above is also gone.

Its seems like the javascript issent running. Is there a way to debug this?

Thanks for an beautiful datagrid. Have missed one grin.


Best Regards
Audun

Profile
 
 
Posted: 17 August 2009 09:34 PM   [ Ignore ]   [ # 57 ]  
Summer Student
Total Posts:  5
Joined  07-13-2009

Hi, just want to ask if I can use this Flexigrid with semi-complex SQLs? My query has about 4 left joins, and I don’t know if it can be done with this Flexigrid. Thanks!

Additional question, if I use table aliases with different tables, how will this affext the creation of columns?

Profile
 
 
Posted: 05 November 2009 03:08 PM   [ Ignore ]   [ # 58 ]  
Summer Student
Total Posts:  1
Joined  03-11-2008

Hello.

I need to translate all the texts (that appear to client) to portuguese, but i cant find in what file is the “Quick Search” and the “Page x of y” texts.

EDIT: ANSWER: u can translate using the $gridParams array or directly in the flexigrid.pack.js file.

Really thanks!
DZPOA

Profile
 
 
Posted: 17 December 2009 11:22 AM   [ Ignore ]   [ # 59 ]  
Summer Student
Total Posts:  1
Joined  09-02-2009

Hi,

Thanks for this wonderful grid implementation.
Took me a while to figure it out, as I’m new to PHP and CodeIgniter (being a Perl-dude grin.

I noticed that this isn’t working (Query error: No tables used):

  $getDocIds_sql = “SELECT uid, folderset, county, doctype FROM panel”;
  $this->db->query($getDocIds_sql);
  $this->CI->flexigrid->build_query();

but this is :

  $this->db->select(‘uid, folderset, county, doctype’)->from(‘panel’);
  $this->CI->flexigrid->build_query();
     
Is this intended ?
Pitty if so, cause I’m trying to implement the following SQL :

1. Create temp table panel using dbforge, which goes fine.
2. Put the results of the following query in the grid :

$getDocIds_sql = “INSERT INTO panel (null, foldername, county, doctype)
              SELECT foldersets.folderset AS folderset,
                  foldersets.county AS county,
                  foldersets.doctype AS doctype
              FROM foldersets
              LEFT JOIN panfoldersets ON foldersets.folderset = panfoldersets.folderset
                AND foldersets.county = panfoldersets.county
                AND foldersets.doctype = panfoldersets.doctype
              WHERE foldersets.docstatus = ‘C’
                AND (foldersets.folderset like ‘%2009’ || foldersets.folderset like ‘%2010’)
                AND (foldersets.doctype = ‘realestate’ OR foldersets.doctype = ‘mortgages’)
                AND panfoldersets.folderset IS NULL
              GROUP BY folderset, county, doctype”;

Looking forward to any input or suggestions.
Thanks.

Profile
 
 
Posted: 05 January 2010 03:32 PM   [ Ignore ]   [ # 60 ]  
Grad Student
Rank
Total Posts:  50
Joined  07-14-2009

Hei guys,

Just finish tunning up flexigrid to meet my needs and want to share with you.

I needed that flexigrid “remembers” the column width, search filters and page, so I decided to dig in the code and make it happen.

I used the Jason Valdron implementation witch already had column width to cookie after seeing his implementation it was more easy to make mine.

Here is the final code: http://pastebin.com/f66c1d534

So if you set cookies to true in parameters (is true by default) flexigrid should be save state after leaving the page, and should remain the same when u get back.

Test it and let me know if it works for you.

EDIT: You need to use http://plugins.jquery.com/project/cookie

Profile
 
 
   
6 of 7
6
 
‹‹ DataMapper 1.6.0      Freshbooks Class ››
Post Marker Legend
New Topic New posts Hot Topic Hot Topic with new posts New Poll New Poll Moved Topic Moved Topic Sticky Topic Sticky topic
Old Topic No new posts Hot Old Topic Hot Topic with no new posts Old Poll Old Poll Closed Topic Closed Topic Announcement Announcements
Theme
Change Theme
Visitor Statistics
The most visitors ever was 819, on March 11, 2010 10:15 AM
Total Registered Members: 119641 Total Logged-in Users: 28
Total Topics: 125857 Total Anonymous Users: 3
Total Replies: 662258 Total Guests: 357
Total Posts: 788115    
Members ( View Memberlist )