[ANN] WiceGrid Plugin version 0.5

Hello all,

WiceGrid plugin version 0.5 is released.

WiceGrid is a Rails grid plugin.

A list of changes: http://leikind.org/2009/10/18/wicegrid-version-0-5
Examples online: http://grid.leikind.org/
Homepage: http://leikind.org/pages/wicegrid
Source code: http://github.com/leikind/wice_grid/tree/v0.5

Best regards,
Yuri L.

Yuri,
That’s so cool you have an example page now!
If this works as well as your example page I think Rails has advanced
immeasurably and if we could find a reporting strategy, there’d be no
stopping us.
Huh Rah and many thanks!
David

Many thanks Yuri, I see the examples and they are very impressive !!!

Congratulations !!!

I have only a little question: why using prototype ? I think the most
rails projects are using jquery…

Do you think is it possible to have a unique parameterized plugin
working with both prototype & jquery js library ?

On Sun, 2009-10-18 at 12:01 -0700, Yuri L. wrote:

Best regards,
Yuri L.

This looks very nice. The documentation and examples are as impressive
as the demonstrated functionality. Very well done! Your timing is very
convenient for me too and I think I’ll be giving it a try this week.

One thing I haven’t been able to find in the documentation so far…

If I understand correctly, I can put more than just a single attribute
value in a column. For example, assuming I have separate columns in the
database for customer name, address, and phone number, I can put all of
them in one display column. Yes?

Is it possible to do that AND to still have the ability to sort the grid
based on that column? Is it possible to specify one of the elements I
put in a column as the one to use for sorting? So that I could put
name, address, and phone in the column, but sort/filter on name only?

Thanks for your reply, and for your contribution!

Best regards,
Bill

On Oct 19, 3:20 pm, bill walton [email protected] wrote:

Source code:http://github.com/leikind/wice_grid/tree/v0.5

Best regards,
Yuri L.

This looks very nice. The documentation and examples are as impressive
as the demonstrated functionality. Very well done!

Thanks!

If I understand correctly, I can put more than just a single attribute
value in a column. For example, assuming I have separate columns in the
database for customer name, address, and phone number, I can put all of
them in one display column. Yes?

Yes

Is it possible to do that AND to still have the ability to sort the grid
based on that column?

On just one column, yes.

What you have inside the column block technically doesn’t have to do
anything with how you filter/order, etc, so you can
have the following:

g.column :attribute_name => ‘firstname’ do |person|
person.firstname + ’ ’ + person.lastname + ’ ’ + person.telephone
end

Is it possible to specify one of the elements I
put in a column as the one to use for sorting? So that I could put
name, address, and phone in the column, but sort/filter on name only?

Yes. In the column clause you define the column you want to filter by,
and then you redefine which column you want to use for ordering using
:custom_order. see the example at
http://grid.leikind.org/custom_ordering2,
controller code, or here http://grid.leikind.org/custom_filters2 .
Basically,
the key of the hash is the database column defined in your column
clause,
and the value is any other column you want to use for ordering, or any
valid sql expression (see here http://grid.leikind.org/custom_ordering,
controller code)

Best regards,
Yuri

Wonderful Yuri,

keep up the good work !!!

On Oct 19, 3:17 pm, Gianluca T.
[email protected] wrote:

Many thanks Yuri, I see the examples and they are very impressive !!!

Thanks Gianluca!

Congratulations !!!

I have only a little question: why using prototype ? I think the most
rails projects are using jquery…

As you can guess, it’s because the projects out of which WiceGrid was
extracted were
Prototype based :), but you are right, I see no point why it cannot be
done.
Support for both jQuery and Prototype is planned for the next version
0.6,
so bear with me :slight_smile:

Do you think is it possible to have a unique parameterized plugin
working with both prototype & jquery js library ?

Absolutely.

Best regards,
Yuri L.

Examples online:http://grid.leikind.org/
Homepage:http://leikind.org/pages/wicegrid
Source code:http://github.com/leikind/wice_grid/tree/v0.5

Best regards,
Yuri L.

Best regards,
Yuri L.

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs