DataGrid and cursors

Mike Kerner MikeKerner at roadrunner.com
Thu Nov 14 08:40:47 EST 2013


Heck, I'll be happy when I can have over 500 records listed on mobile
without the scroller screaming in pain


On Thu, Nov 14, 2013 at 6:09 AM, Mats Yahoo <matsastrom at yahoo.se> wrote:

>
> Hi Peter,
>
> I have tried the sample but GetDataForLine does not seem to get called
> when you use a Table, only when Form is used.
> Do you know if there is some way you can populate a Table DataGrid from a
> cursor in a similar manor?
>
> /Mats
>
>
>
> From: Peter Haworth <pete at lcsql.com>
> To: How to use LiveCode <use-livecode at lists.runrev.com>
> Subject: Re: DataGrid and cursors
> Message-ID:
>    <CAGDT7eMzXLf4NW9cTLszDnZdAJUo=+j=SR+3hefGC781dOXsqA at mail.gmail.com>
> Content-Type: text/plain; charset=ISO-8859-1
>
> Hi Mats,
> The best way to deal with this for good performance is by using the
> datagrid dgNumberOfRecords property.  Take a look at the "Advanced Options"
> section of the datagrid manual for more information and a link for a sample
> stack to download.
>
> I've used this technique a couple of times and it works well for large
> amounts of data.  However, it's a bit tricky to implement since the
> datagrid stops using it's internal storage areas and the usual methods for
> getting data out of the datagrid (dgData,dgText) all return empty.  Plus
> there are some not-so-obvious things you have to deal with yourself, for
> example you have to write your own sort handlers.
>
> Pete
>
> Pete
> lcSQL Software <http://www.lcsql.com>
> _______________________________________________
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
>



-- 
On the first day, God created the heavens and the Earth
On the second day, God created the oceans.
On the third day, God put the animals on hold for a few hours,
   and did a little diving.
And God said, "This is good."



More information about the use-livecode mailing list