Re: Data Grid Column Header Alignment Changes after column resize
On Mar 21, 2010, at 5:41 PM, Len Morgan wrote: It didn't work so I guess I need an updated datagrid library since I can't download the latest 4.5 dp-3 without error. :-( You can download it here: http://www.bluemangolearning.com/download/revolution/tools/revdatagridlibrary.rev.zip This lessons shows how to upgrade your copy. http://revolution.screenstepslive.com/spaces/revolution/buckets/tutorials/lessons/6186-Upgrading-the-Data-Grid-Library -- Trevor DeVore Blue Mango Learning Systems ScreenSteps: http://www.screensteps.com Releasable Revolution Resources for Developers: http://revolution.bluemangolearning.com ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Data Grid Column Header Alignment Changes after column resize
It didn't work so I guess I need an updated datagrid library since I can't download the latest 4.5 dp-3 without error. :-( len morgan On 3/15/2010 11:08 AM, Trevor DeVore wrote: On Mar 13, 2010, at 11:18 AM, Len Morgan wrote: I'm trying to use my first Data Grid (table) in a stack and I need to set the column Header alignment for a few of the columns. Following the instructions in the DG manual, I entered the alignments using the message box and it looked fine. But then I resized one of the columns and all of the alignments changed, some of them even aligning themselves such that only half of the text showed in the column. Do I need to set the alignments every time the grid is displayed? If so, where can I do that? There is a bug in the version of the library shipping with 4.0 with regards to column header alignment. It has been fixed for 4.5 though. Try setting the column alignment by script when your stack opens. Here is a lesson - http://lessons.runrev.com/spaces/lessons/manuals/datagrid/lessons/7324-How-Do-I-Change-Column-Alignment- If that doesn't work then let me know and I can get you updated library. ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Data Grid Column Header Alignment Changes after column resize
On Mar 13, 2010, at 11:18 AM, Len Morgan wrote: I'm trying to use my first Data Grid (table) in a stack and I need to set the column Header alignment for a few of the columns. Following the instructions in the DG manual, I entered the alignments using the message box and it looked fine. But then I resized one of the columns and all of the alignments changed, some of them even aligning themselves such that only half of the text showed in the column. Do I need to set the alignments every time the grid is displayed? If so, where can I do that? There is a bug in the version of the library shipping with 4.0 with regards to column header alignment. It has been fixed for 4.5 though. Try setting the column alignment by script when your stack opens. Here is a lesson - http://lessons.runrev.com/spaces/lessons/manuals/datagrid/lessons/7324-How-Do-I-Change-Column-Alignment- If that doesn't work then let me know and I can get you updated library. -- Trevor DeVore Blue Mango Learning Systems ScreenSteps: http://www.screensteps.com Releasable Revolution Resources for Developers: http://revolution.bluemangolearning.com ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Data Grid Column Header Alignment Changes after column resize
On Mar 13, 2010, at 1:46 PM, Len Morgan wrote: On more question if I may, where exactly would I put a handler that would set the color of each row according to the value of one of the columns? For example, if column (database field actually) status is 'I' then I want the row to be green. If it's 'R' then I want it to be pink, etc. I don't mind that the selection will turn the current row blue, but I need a way to set it back again and of course, to set the colors when the data is loaded originally. Two lessons discuss techniques for this. The first one colors the text of a row that has a certain value and shows how to keep the color even after the row is hilited: http://lessons.runrev.com/spaces/lessons/manuals/datagrid/lessons/7332-How-Can-I-Colorize-Individual-Lines-in-a-Table- The end of this lesson on behaviors shows how to color individual cells as well. It might be worth reviewing. http://lessons.runrev.com/spaces/lessons/manuals/datagrid/lessons/7327-How-Do-I-Override-the-Default-Behavior-For-Rendering-Data-to-a-Cell- Let me know if those help. -- Trevor DeVore Blue Mango Learning Systems ScreenSteps: http://www.screensteps.com Releasable Revolution Resources for Developers: http://revolution.bluemangolearning.com ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Data Grid Column Header Alignment Changes after column resize
Bonjour Len Le 13 mars 10 à 19:46, Len Morgan a écrit : Thank you, André On more question if I may, Of course, never hesitate to ask any question on this list :-))) where exactly would I put a handler that would set the color of each row according to the value of one of the columns? For example, if column (database field actually) status is 'I' then I want the row to be green. If it's 'R' then I want it to be pink, etc. I don't mind that the selection will turn the current row blue, but I need a way to set it back again and of course, to set the colors when the data is loaded originally. But I can't help you much on this one, I am afraid; I have never tried to set the color of row in a data grid up to now! You might want to read the lesson How Can I Colorize Individual Lines in a Table? in the doc from Trevor. Also, there was a discussion on this list on a similar topic; you can find it using the Revolution search engine (with the words data grid code (color) which was the subject of this discussion. Or in the Archives looking at the subjects in April 2009 and Mai 2009 I must confess that the solution seems not immediately obvious to me ;-))) Sorry, Anyway, sure that Trevor will help you soon on that :-) Best regards from Grenoble André Thanks! len morgan On 3/13/2010 12:42 PM, Andre.Bisseret wrote: Le 13 mars 10 à 17:18, Len Morgan a écrit : I'm trying to use my first Data Grid (table) in a stack and I need to set the column Header alignment for a few of the columns. Following the instructions in the DG manual, I entered the alignments using the message box and it looked fine. But then I resized one of the columns and all of the alignments changed, some of them even aligning themselves such that only half of the text showed in the column. Do I need to set the alignments every time the grid is displayed? If so, where can I do that? Bonjour Len, I had a similar problem. I assumed that your are centering the headers? Anyway, could be that your resized column is not wide enough; at the right side of each header, a space is kept for the arrow icon which shows the sorting direction. If the header is centered, then the column must take this space into account otherwise the header is not entirely visible (seems like shifted to the left) Widening a bit your column should allow you to see the whole text of the header. If this does not solve your problem, could be that a script in the revdatagridlibrary has to be completed (It was the case for my problem) but I prefer that Trevor helps you if such a modification is necessary ;-)) Best regards from Grenoble André ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Data Grid Column Header Alignment Changes after column resize
Le 13 mars 10 à 17:18, Len Morgan a écrit : I'm trying to use my first Data Grid (table) in a stack and I need to set the column Header alignment for a few of the columns. Following the instructions in the DG manual, I entered the alignments using the message box and it looked fine. But then I resized one of the columns and all of the alignments changed, some of them even aligning themselves such that only half of the text showed in the column. Do I need to set the alignments every time the grid is displayed? If so, where can I do that? Bonjour Len, I had a similar problem. I assumed that your are centering the headers? Anyway, could be that your resized column is not wide enough; at the right side of each header, a space is kept for the arrow icon which shows the sorting direction. If the header is centered, then the column must take this space into account otherwise the header is not entirely visible (seems like shifted to the left) Widening a bit your column should allow you to see the whole text of the header. If this does not solve your problem, could be that a script in the revdatagridlibrary has to be completed (It was the case for my problem) but I prefer that Trevor helps you if such a modification is necessary ;-)) Best regards from Grenoble André ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Data Grid Column Header Alignment Changes after column resize
Thank you, André On more question if I may, where exactly would I put a handler that would set the color of each row according to the value of one of the columns? For example, if column (database field actually) status is 'I' then I want the row to be green. If it's 'R' then I want it to be pink, etc. I don't mind that the selection will turn the current row blue, but I need a way to set it back again and of course, to set the colors when the data is loaded originally. Thanks! len morgan On 3/13/2010 12:42 PM, Andre.Bisseret wrote: Le 13 mars 10 à 17:18, Len Morgan a écrit : I'm trying to use my first Data Grid (table) in a stack and I need to set the column Header alignment for a few of the columns. Following the instructions in the DG manual, I entered the alignments using the message box and it looked fine. But then I resized one of the columns and all of the alignments changed, some of them even aligning themselves such that only half of the text showed in the column. Do I need to set the alignments every time the grid is displayed? If so, where can I do that? Bonjour Len, I had a similar problem. I assumed that your are centering the headers? Anyway, could be that your resized column is not wide enough; at the right side of each header, a space is kept for the arrow icon which shows the sorting direction. If the header is centered, then the column must take this space into account otherwise the header is not entirely visible (seems like shifted to the left) Widening a bit your column should allow you to see the whole text of the header. If this does not solve your problem, could be that a script in the revdatagridlibrary has to be completed (It was the case for my problem) but I prefer that Trevor helps you if such a modification is necessary ;-)) Best regards from Grenoble André ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution