Yii Framework Forum: [EXTENSION] jquery Flexigrid - Yii Framework Forum

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

[EXTENSION] jquery Flexigrid Rate Topic: -----

#1 User is offline   horizons 

  • Standard Member
  • PipPip
  • Yii
  • Group: Members
  • Posts: 122
  • Joined: 18-December 08

Posted 10 February 2009 - 09:56 AM

Hi, I created a extension for the jquery flexigrid for http://www.flexigrid.info/.

I created a "demo" with this extension for the blog from the yii demos see blog.rar attachment.

If you extract it to your blog you should be able to access it via
'/demos/blog/index.php/postgrid/admin'

The Flexigrid is fully useable and working.
It also saves various settings in Session variables e.g. sort, order, query, order of columns, width of colums etc.
So if you visit the page again you will get the last view in the same session.

I am currently at a point where I wanted the code to be more 'generic'.
Sadly i don't know that much from yii at the moment (i am still learning). So I don't know how several things could be coded in a better way then currently.

Points which i doesn't like:
- too much code to be added to the controller (some functions to be added)
- js code for action buttons of the flexigrid which call ajax functions only to generate a link to forward to the update page.

- unclean code of the widget ( i just modified from the CTreeView widget so there are still code and comments from this widget)

What i would like to get the extension more compact and be able to run without too much code to be added to the controller.

e.g. Could the Session saving be done in the extension itself?
I Don't know what is possible with actions / behaviors etc.

The flexigrid requires jquery 1.3.1 because jquery 1.3 (comes with the lates yii) has a bug with selectors [otherwise the column resizing doesn't work]

Also the flexigrid.js code is modified on several parts:
- page / order / sort pre selecting
- search options settings
- on resize events and function to store the columns size and order

Some code is not directly from me. I used and looked some demos from CodeIgniter and used some parts from other forums and mailing lists (e.g. how to get the resized columns in js code)

Please post any comments.

Attached File(s)

  • Attached File  blog.rar (55.92K)
    Number of downloads: 44

0

#2 User is offline   arsitek 

  • Standard Member
  • PipPip
  • Yii
  • Group: Members
  • Posts: 127
  • Joined: 10-October 08

Posted 11 February 2009 - 11:08 AM

Nice work!
But I have error like this when I want to create or edit a post.

Quote

Fatal error: Call to undefined method Post::getCategory() in C:\AppServ\www\yii\demos\blog\protected\views\postgrid\_form.php on line 47

0

#3 User is offline   horizons 

  • Standard Member
  • PipPip
  • Yii
  • Group: Members
  • Posts: 122
  • Joined: 18-December 08

Posted 11 February 2009 - 01:48 PM

Upps just remove the getCategory Part and getMultipleCategory parts cause this was from a test where I tried the dropdown and activecheckboxLists. Cause you don't have those tables and modifications in the Postmodel you get this error on the form.

This was only in the _form.php attached 'cleaned' version. Also fixed in the rar in the first post.

Attached File(s)

  • Attached File  _form.php (1.56K)
    Number of downloads: 18

0

#4 User is offline   ilzale 

  • Standard Member
  • PipPip
  • Yii
  • Group: Members
  • Posts: 113
  • Joined: 08-October 08

Posted 12 February 2009 - 03:04 AM

i suggest you to post your extension in the extensions section of the site. Otherwise it is hard to mantain it.
0

#5 User is offline   bufongeek 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 1
  • Joined: 06-January 11

Posted 13 January 2011 - 12:18 PM

Could you upload the example again? thanks
0

#6 User is offline   Antonio Ramirez 

  • Elite Member
  • Yii
  • Group: Yii Dev Team
  • Posts: 1,450
  • Joined: 04-October 10

Posted 13 January 2011 - 12:53 PM

Thanks for sharing horizons... could you please uploaded to the Extensions sections of the site? Such good extension deserves a place there...
┬┐How long would it take for you to understand that you own nothing in this world?

www.ramirezcobos.com
www.2amigos.us
www.github.com/tonydspaniard
www.github.com/2amigos


Posted Image
0

#7 User is offline   phenomfx 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 9
  • Joined: 19-May 11

Posted 22 June 2011 - 09:40 PM

plase upload again .
0

#8 User is offline   jarnail 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 5
  • Joined: 22-October 11

Posted 22 December 2011 - 12:56 AM

View Posthorizons, on 10 February 2009 - 09:56 AM, said:

Hi, I created a extension for the jquery flexigrid for <a href='http://www.flexigrid.info/' class='bbc_url' title='External link' rel='nofollow'>http://www.flexigrid.info/</a>.

I created a "demo" with this extension for the blog from the yii demos <strong class='bbc'>see blog.rar attachment</strong>.

If you extract it to your blog you should be able to access it via
'/demos/blog/index.php/postgrid/admin'

The Flexigrid is fully useable and working.
It also saves various settings in Session variables e.g. sort, order, query, order of columns, width of colums etc.
So if you visit the page again you will get the last view in the same session.

I am currently at a point where I wanted the code to be more 'generic'.
Sadly i don't know that much from yii at the moment (i am still learning). So I don't know how several things could be coded in a better way then currently.

Points which i doesn't like:
- too much code to be added to the controller (some functions to be added)
- js code for action buttons of the flexigrid which call ajax functions only to generate a link to forward to the update page.

- unclean code of the widget ( i just modified from the CTreeView widget so there are still code and comments from this widget)

What i would like to get the extension more compact and be able to run without too much code to be added to the controller.

e.g. Could the Session saving be done in the extension itself?
I Don't know what is possible with actions / behaviors etc.

The flexigrid requires jquery 1.3.1 because jquery 1.3 (comes with the lates yii) has a bug with selectors [otherwise the column resizing doesn't work]

Also the flexigrid.js code is modified on several parts:
- page / order / sort pre selecting
- search options settings
- on resize events and function to store the columns size and order

Some code is not directly from me. I used and looked some demos from CodeIgniter and used some parts from other forums and mailing lists (e.g. how to get the resized columns in js code)

Please post any comments.


I want to use this extension in my application. But download link is not working. Can you please upload the file again and sent me a link for same?
0

#9 User is offline   chumbx 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 13
  • Joined: 26-January 12

Posted 13 April 2012 - 11:32 AM

Link is down. Can you repost your link?
0

#10 User is offline   Rami Tayba 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 2
  • Joined: 26-August 12

Posted 07 June 2013 - 01:59 AM

[#10173] We could not find the attachment you were attempting to view.
0

#11 User is offline   cubestyle 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 5
  • Joined: 23-September 12

Posted 25 January 2014 - 10:48 AM

The new place of the extension download is here

Quote

file-upload.net/download-8538910/blog.rar.html


Please let us know if it still works on the actual yii version.
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users