Just one correction to the code Chen added-
our problem is when we draw the table with page:'enable' :
table.draw(view, {showRowNumber: true, allowHtml:true, width: 210,
page:'enable', pageSize: 5});

10x in advance

On Jan 11, 11:20 am, Chen Harel <[email protected]> wrote:
> Here is the code:
>
> data = response.getDataTable();
>                 data.addColumn('string' , '');
>                 for (var j=0; j<data.getNumberOfRows(); j++){
>                         data.setValue(j , 2, '<input type="checkbox"
> align="center" id="add'+j+'" onclick="chosen(\'add'+j+'\')" />');
>                 }
>                 table = new google.visualization.Table
> (document.getElementById('vis_results'));
>                 var view = new google.visualization.DataView(data);
>                 view.hideColumns([0]); // do not show the showID.
>                 table.draw(view, {showRowNumber: true, allowHtml:true,
> width: 210, pageSize: 5});
>
> As you can see, we're explicitly adding a checkbox input with ids...
> (Do you have any plans to bring this as a Table feature?)
>
> Once we use the paging to redraw the table, the selection in the
> checboxes doesn't hold
> (While the CTRL+Click selection of rows do...)
>
> 10x in advance.
>
> On Jan 11, 9:38 am, VizBoy <[email protected]> wrote:
>
>
>
> > Could you elaborate on what exactly you mean by "a checkboxes column"?
> > At first I thought you meant the boolean values (with the V and X marks) but
> > that's not checkable, it's just for viewing.
> > So I'm confused.
> > Please explain further.
>
> > Regards,
> >    VizBoy.
>
> > On Fri, Jan 9, 2009 at 12:22 PM, Maayan <[email protected]> wrote:
>
> > > Hi,
> > > I'm using the table visualization and I've got a checkboxes column.
> > > when I'm drawing the table I'm using page:'enable' option.
> > > My problem is that when I check a checkbox and move to another page
> > > (in the table) , the checkbox I checked wasn't checked anymore.
> > > Is there anything I can do so the information on the checked
> > > checkboxes won't be lost when I'm moving forward or backward in the
> > > table's pages?
>
> > > Thanks a lot,
> > > Maayan- Hide quoted text -
>
> - Show quoted text -
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Visualization API" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/google-visualization-api?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to