Monday, September 3, 2012

Re: Editable Tables

For this kind of thing django has forms and formsets. I would think that this can be achieved quite easyly by using formsets. What you can do  - you can write your own widgets for this kind of table. Like widget that renders <td><span>value</span><input type="hidden" value="value" type="text"/></td> not just input. and then just use your javascript to bind click event to td.span which hides span and makes input visible on click. quite easy even. At save it saves everything and voila - you have editable table.

everything else is just browser side scripting.

thats how i would do it anyway :)

Alan

On Sunday, September 2, 2012 10:13:17 PM UTC+3, Sait Maraşlıoğlu wrote:
Just need to display tables, but it has to be modular.
Lets say I have a facebook like site, and my user has 5 friends. How I can display those 5 and let user edit it, lets say, edit their nicknames and this changes affect the database?

On Sunday, 2 September 2012 00:58:25 UTC+3, Sait Maraşlıoğlu wrote:
Just seen a demo page
http://nextgensim.info/grids
so beautiful grids,
lift framework can do that, I guess, havent dig much but as far as I seen, its an alternative framework.
Can anybody tell me how to create this kind of interactive tables? What django has to offer, if not What keywords, I need to search?
thx

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To view this discussion on the web visit https://groups.google.com/d/msg/django-users/-/au7eeELCSVoJ.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to django-users+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.

No comments:

Post a Comment