On 5/7/13 4:39 PM, John Fabiani wrote: > I have a couple of grids that are NOT respecting several properties and I > wonder > anybody understands the reason.
I've created a small test for both scenarios and I'm not seeing the described behavior on Linux using my working copy of pre-0.9.10. I'll try to find time to test prior versions and different operating systems but in the meantime please try this code on your machine: https://gist.github.com/anonymous/5544305 I've left the rest of your post below for reference but didn't comment below this. Paul > The Precision property is not displaying as I believe it should. My code is > for a > column. > > col1 = dabo.ui.dColumn(self, Name="itemCost", Order=30, > DataField="aropen_amount", > Precision = 2, DataType="decimal", > Caption="Amount", > Sortable=False, Searchable=False, > Editable=True) > > I would expect the column to display > 300.00 > > But the column displays > 300.0000 > > The bizobj reports the field as Decimal('300.0000') > > The second issue I'm having is centering a value in a column; > col = dabo.ui.dColumn(self, Order=30, DataField="pkid", > DataType="int", Caption="Enrollment #", > Sortable=False, Searchable=False, > Editable=False, > Expand=False, HorizontalAlignment = 'Center' > > No matter what I set the HorizontalAlignment (either left,right,or center) > the value > is displayed as right aligned. I expected the value to be centered if I > asked for > centered. I've also attempted to change the DataType to 'str' without > success. The > bizobj field is an integer. > > Thanks in advance for any help. > Johnf _______________________________________________ Post Messages to: [email protected] Subscription Maintenance: http://mail.leafe.com/mailman/listinfo/dabo-users Searchable Archives: http://leafe.com/archives/search/dabo-users This message: http://leafe.com/archives/byMID/[email protected]
