yenop / jqpivot

Automatically exported from code.google.com/p/jqpivot
0 stars 0 forks source link

ENH : Read only mode #7

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
(You can remove the previous ENH, it was not my account)

Hello,

I really appreciate your work...

It's exactly what we were looking for !
In fact, we are currently writing a reporting tool for our customer and we will 
offer the possibility to the user to create itself online reports.

So this plugin do the job, but...

For some users we only need the grid itself in read-only mode.
This means we need a way to  hide the designer.

what I currently do via jquery, is to remove some <tr>, <td> and <div> trough 
the "start" event :

    $('#jqpivot').jqpivot({
        listeners: {
            start: function() {
                // ADD BVA Set Read Only mode
                $("#jqpivot>table>tbody>tr:first").remove();
                $("#jqpivot>table>tbody>tr>td:first").remove();
                $("#jqpivot>table>tbody>tr>td>div:first").remove();
                $("#jqpivot>table>tbody>tr>td>div:first").remove();

            }....

Do you have a better way to do this ?
Maybe by adding a new property like "ReadOnly : true" ?

Thank you in advance,

Bruno VANDAMME (Belgium)

Original issue reported on code.google.com by br...@fusor.be on 5 Jul 2013 at 8:58

GoogleCodeExporter commented 8 years ago
Hello,

I'm pleased that you interested in this plugin.

I've wrote it to cover my need at work, to allow users to view reports. And 
since I did it, there were no any feature requests from them, so I did no 
improvements.
I understand your suggestion, and it seems useful, so I'll think on it. But I 
can promise no deadline...

Victor

Original comment by yumaa.ve...@gmail.com on 10 Jul 2013 at 10:36