Sorting datagrid column with a tricj?
Bob Sneidar
bobsneidar at iotecdigital.com
Mon Nov 5 12:03:13 EST 2018
Hi Trevor.
Just a heads up, I followed those instructions in the lesson to the letter. It broke my datagrid. It would no longer populate and I could not select a row by clicking on it.
It may have to do with the new dg behavior heirarchy. I could see that someone else was having difficulty as late as last Friday, although it looks like it's a different issue.
I'll poke around with it and see if I can figure out why, but it looks to me that the new behavior object is not getting any messages sent to it.
Bob S
> On Nov 4, 2018, at 19:44 , Bob Sneidar via use-livecode <use-livecode at lists.runrev.com> wrote:
>
> Thanks Trevor. I perused the lessons and the documentation but could not find anything that might aid me in this. I will have a look at that lesson!
>
> Bob S
>
>
>> On Nov 2, 2018, at 15:49 , Trevor DeVore via use-livecode <use-livecode at lists.runrev.com> wrote:
>>
>> On Fri, Nov 2, 2018 at 5:16 PM Bob Sneidar via use-livecode <
>> use-livecode at lists.runrev.com> wrote:
>>
>>>
>>> What I would like to see added to the datagrid is a handler that
>>> intercepted the population of a field so what goes into the field can be
>>> custom formatted. This comes up a lot. Dates and numbers from an SQL query
>>> are unformatted, and having to go through the datagrid when populating and
>>> formatting each record's data before displaying it, and then reformatting
>>> it before pushing it back up to the database seems like more work than
>>> necessary.
>>>
>>
>> The Data Grid already supports this. Just customize the default column
>> behavior. Take a look at this article which truncates text that is too wide:
>>
>> http://lessons.livecode.com/m/datagrid/l/7327-how-do-i-override-the-default-behavior-for-rendering-data-to-a-cell
>>
>> --
>> Trevor DeVore
>> ScreenSteps
>> www.screensteps.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
>
>
> _______________________________________________
> 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
More information about the use-livecode
mailing list