Re: polygrid formatted column width
lcqc report 24493 added https://quality.livecode.com/show_bug.cgi?id=24493 On Tue, Feb 20, 2024 at 6:07 PM Bob Sneidar via use-livecode < use-livecode@lists.runrev.com> wrote: > Can I just say that the Datagrid does have all these properties? What is > the big advantage that would make Polygrids a better choice? Is it because > they are Mobile friendly? Faster for large datasets? Easier to work with > (apparently not unless by easier one means less properties that you can > manipulate.)? > > Bob S > > > On Feb 20, 2024, at 1:49 PM, Paul Dupuis via use-livecode < > use-livecode@lists.runrev.com> wrote: > > You have the dataWidth of the polygrid for the formattedWidth of the > widget (to be wide enough to display all data), but what I think you want > is some equivalent of the fomattedWidth of each column. I don't believe any > such property exists in the polygrid. > > ___ > use-livecode mailing list > use-livecode@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." ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: polygrid formatted column width
yes, the dg does have all of these properties. i'm replacing a dg with a pg. dg's work on mobile, too. the scrolling can sometimes be a little hairy and jerky, but it does work. until the pg, nearly every project we built for mobes had at least one dg in them. i'm doing this because this project is being used for large datasets, pulling data from an erp odbc datasource. On Tue, Feb 20, 2024 at 6:07 PM Bob Sneidar via use-livecode < use-livecode@lists.runrev.com> wrote: > Can I just say that the Datagrid does have all these properties? What is > the big advantage that would make Polygrids a better choice? Is it because > they are Mobile friendly? Faster for large datasets? Easier to work with > (apparently not unless by easier one means less properties that you can > manipulate.)? > > Bob S > > > On Feb 20, 2024, at 1:49 PM, Paul Dupuis via use-livecode < > use-livecode@lists.runrev.com> wrote: > > You have the dataWidth of the polygrid for the formattedWidth of the > widget (to be wide enough to display all data), but what I think you want > is some equivalent of the fomattedWidth of each column. I don't believe any > such property exists in the polygrid. > > ___ > use-livecode mailing list > use-livecode@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." ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: polygrid formatted column width
Can I just say that the Datagrid does have all these properties? What is the big advantage that would make Polygrids a better choice? Is it because they are Mobile friendly? Faster for large datasets? Easier to work with (apparently not unless by easier one means less properties that you can manipulate.)? Bob S On Feb 20, 2024, at 1:49 PM, Paul Dupuis via use-livecode wrote: You have the dataWidth of the polygrid for the formattedWidth of the widget (to be wide enough to display all data), but what I think you want is some equivalent of the fomattedWidth of each column. I don't believe any such property exists in the polygrid. ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: polygrid formatted column width
You have the dataWidth of the polygrid for the formattedWidth of the widget (to be wide enough to display all data), but what I think you want is some equivalent of the fomattedWidth of each column. I don't believe any such property exists in the polygrid. It would be like setting the columnWidth of a column to 'auto' or something like that, which would be a nice feature enhancement, but doesn't exists currently. You're welcome to file a feature enhancement. I'd definitely +1 it. You would have to roll your own, probably using the "measureText(text,objectReference,[mode])" function. You would need to iterate through all the rows of data and find the longest string (in px) for each column via measureText and then set the columnWidths of the polygrid to that set of column widths. I am also not sure if measureText can use a widget as an object reference, so, if not, you may need a hidden field/button as teh object reference set to the same font and size as the polygrid. Anyway, that's how I would try to solve this :-) Paul Dupuis Researchware On 2/20/2024 3:49 PM, Mike Kerner via use-livecode wrote: alrighty, then i've got a polygrid. now, i want to set the column widths to the equivalent maximum formatted widths, because...this is being used as part of an ad hoc query tool. did i miss something? i don't see an equivalent property ___ use-livecode mailing list use-livecode@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@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
polygrid formatted column width
alrighty, then i've got a polygrid. now, i want to set the column widths to the equivalent maximum formatted widths, because...this is being used as part of an ad hoc query tool. did i miss something? i don't see an equivalent property ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode