Posted by Paul Perrick
on 05.05.2006 22:34
I want to implement the livegrid and be able to select rows (multiple 
rows) following the same rules as a <select> box. Ctrl click to select 
multiple and Shift click to select ranges. Has anyone out there 
implemented this already?

Would you be willing to share the source or contribute it to the 
OpenRico library?

Please let me know.

Paul
Posted by Adriano Accorsi (Guest)
on 03.08.2006 21:46
I have the same problem.

I want to be able to select one or more rows and post its to server or 
select
one row to open a detailed vision or a edition session.

One possible is use a menu handle option to select each row, but it is 
not so
user friendly.

It is possible do it using Rico ?

Adriano
Posted by Paul Perrick (Guest)
on 03.08.2006 22:51
I implemented a solution to this problem, but only with checkboxes in 
each row. The problem is that every time the scroll bar is moved, the 
rows are redrawn either from the livegrid cache or from an ajax call. So 
the checked values need to be checked against the entire result set.

If the entire result set is quite large and the user checks all items, 
It can crash the browser. Therefore my solution does not work properly 
with massive data sets. For this project, I have a maximum of around 
3-4000 records.

Also, my solution is so convoluted at the moment (I conducted a quick 
and dirty implementation instead of a properly thought out one) that I 
don't see the point in posting it. Also, I build it as a asp.net web 
control.

Paul
Posted by Marcus XX
on 04.08.2006 00:38
Here's how I do this using checkboxes.

It hasn't been stress tested with huge numbers but it works nicely.

see attached file. I'm rushed for time so if I have missed anything let 
me know.

I hope this helps someone.

-Marcus
Posted by Adriano Accorsi (Guest)
on 08.08.2006 21:09
Attachment: demo-ordersum.php
Marcus,

Thank you !!!

Your solution works very well.

I was trying to adapt the example 8 showed in the site 
http://dowdybrown.com.

I have to change a little the function refreshCheckboxes to it works.
I have attached the code changed for this example (can be useful to 
anybody).

I think that would be great if LiveGrid could have options to generate 
checkbox or other html elements without the server application has to do 
it.


Thanks again !
Posted by Arun Ku
on 14.11.2007 11:15
Hi Marcus,

Hope you are doing good. Thanks for your valuable code to overcome
checkbox related issue.

Here I have one more question, is it possible to call
refreshCheckboxes() during filtering and sorting. In your example you
are calling refresh function on scroll, but how to call it while
filtering and sorting too. Let me know your thoughts.

Thanks in advanced,
Arun