WebGrid Font Display Issue

1 reply. Last post: February 13, 2012 9:00 PM by Handy Surya
Tags :
  • (None)
  • New Discussion
  • New Question
  • New Product Feedback
Ahmed DajaniMember

Hi,

We are attempting to use a font in the webgrid, but the column value alignment becomes out of whack when we do so. I've attached two images displaying the problem.

Code:

<ISWebGrid:WebGrid ID="wbGrid" runat="server" Height="660px" Width="100%" UseDefaultStyle="true" EnableWebResources="Always"
                           DataSourceID="odsList" CustomSchemaRetrieval="UseWebGrid">
            <RootTable GridLineStyle="NotSet" DataKeyField="id"></RootTable>
            <LayoutSettings NewRowLostFocusAction="AlwaysPrompt" DisplayDetailsOnUnhandledError="true" InProgressUIBehavior="ChangeCursorToHourGlass" StatusBarVisible="true"
			                RowLostFocusAction="AlwaysPrompt" 
                            AllowColumnMove="Yes"
			                AllowFilter="No" 
                            AllowGrouping="No" 
                            AllowSelectColumns="Yes" 
                            AllowSorting="No"
			                GroupByBoxVisible="False" 
                            AutoHeight="false" 
                            AutoWidth="true" 
                            PagingMode="VirtualLoad" 
                            VirtualLoadMode="Custom"
                            AllowEdit="Yes">
                    <RowStyle Font-Names="Arial Monospaced" />  <!-- This is the problematic line -->
		    </LayoutSettings>
        </ISWebGrid:WebGrid>

I've highlighted the problematic line. If I comment this line out, the grid shows up just fine.

badFont shows result with the font in use. noFont shows result with no font in use.

Thanks for the help.

All times are GMT -5. The time now is 9:26 PM.
Previous Next