Re: Django for Data Tables to group by when coloumn hidden

2015-12-14 Thread Sid
Thanks for your reply Carsten. I want to use javascript...I will try to put 
my question on data-tables as per your suggestion .

But thanks again for your reply :)


On Wednesday, December 9, 2015 at 10:07:16 AM UTC-5, Sid wrote:
>
> *Question:* I have a Data table displaying on django , but now I like to 
> group by when ever I will hide the column.
>
>
> *column1 column2 column3*
>
> AAACAD25
>
> AAAUSD12
>
> BBBCAD13
>
> BBBUSD16
>
> CCCCAD11
>
> CCCUSD18
>
>
> The above table will be displayed on web page using Django, now when ever 
> I hide *column2* It should group by and display like below table.
>
>
> *column1* *column3*
>
> AAA  37
>
> BBB  29
>
> CCC  39
>
>
> when ever I unhide it again it should display same as first table again.
>
> *can anyone tell me there is any possible way to do it.*
>
>
> Thanks in advance.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/af456df2-a0c7-4904-84b5-2dc03d4a432b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Django for Data Tables to group by when coloumn hidden

2015-12-10 Thread Carsten Fuchs

Hi Sid,

if with Data Tables you are in fact referring to http://datatables.net/, then you should 
put your questions with the folks over there. I guess what you want is possible with 
DataTables (I haven't checked), but be prepared for some customization with JavaScript 
being required.


If you want to solve the problem in pure Django (that is, with no JavaScript help on the 
client), I would probably create two different views, one for the table with and the 
other without the second column. The docs at 
https://docs.djangoproject.com/en/1.9/topics/db/aggregation/ explain very well the 
concepts that you need in order to build the table with the second column collapsed.


Best regards,
Carsten



Am 09.12.2015 um 16:07 schrieb Sid:

*Question:* I have a Data table displaying on django , but now I like to group 
by when
ever I will hide the column.


*column1 column2 column3*

AAACAD25

AAAUSD12

BBBCAD13

BBBUSD16

CCCCAD11

CCCUSD18


The above table will be displayed on web page using Django, now when ever I hide
*column2* It should group by and display like below table.


*column1* *column3*

AAA  37

BBB  29

CCC  39


when ever I unhide it again it should display same as first table again.

*can anyone tell me there is any possible way to do it.*


Thanks in advance.




--
You received this message because you are subscribed to the Google Groups "Django 
users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/5669B63A.3050301%40cafu.de.
For more options, visit https://groups.google.com/d/optout.


Django for Data Tables to group by when coloumn hidden

2015-12-09 Thread Sid
 

*Question:* I have a Data table displaying on django , but now I like to 
group by when ever I will hide the column.


*column1 column2 column3*

AAACAD25

AAAUSD12

BBBCAD13

BBBUSD16

CCCCAD11

CCCUSD18


The above table will be displayed on web page using Django, now when ever I 
hide *column2* It should group by and display like below table.


*column1* *column3*

AAA  37

BBB  29

CCC  39


when ever I unhide it again it should display same as first table again.

*can anyone tell me there is any possible way to do it.*


Thanks in advance.

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/a72d7fc7-457b-44e6-853f-921f16cd8f5d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.