Let's look at the example of MEGADEMO, frmFISHFACT:


OnDrawColumnCell Event


The following function must be added to the grid you want RadCORE to render with the dynamic attribute features:


   dm_rc.rc_GridDrawCell( TUniDBGrid( sender ) , ACol, ARow, Column, Attribs ) ;



UniFrameReady Event




UniFrameCreate Event





In this example, the example "field names" are in the "columns" property and will be referenced in the dynamic attributes:





We apply some attributes to bring an idea of responsiveness, for example:



GRID On DESKTOP




GRID On MOBILE DEVICE






will calculate 10% of the grid width on DESKTOP and 30% when on mobile.


In "category": 

width:10% mobile-h:0% mobile-v-0%

visible:false mobile 


will calculate 10% of the grid width on desktop and 0% on mobile.

will hide the field only if accessed from a mobile device.



Only these 2 fields will be visible on mobile:


In "common_name": 

width:10% mobile-h:70% mobile-v-70% 




In "graphic": 

width:10% mobile-h:30% mobile-v-30% 



Created with the Personal Edition of HelpNDoc: iPhone web sites made easy