iSeller Commerce
iSeller POS Retail
iSeller POS F&B
iSeller POS Express
Crosslight
WebUI
ClientUI
What's New
Download Trial
Web Solution
Mobile Solution
Enterprise Solution
Custom Development
Blog
Community
Latest Development Blogs
ForumPostTopic
Browse By Tag
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.
Hello,
When it does not use any font in RowStyle property, it uses our default style. This does not mean that there is no style in there. Regarding your issue, it is not a bug. You only need to adjust the size of font and set the style overflow in there. Please remember that not all Font would be rendered in the same size.
<RowStyle CustomRules="text-overflow: ellipsis; overflow-x: hidden" BackColor="White" Font-Size="8pt" Font-Names="Arial Monospaced"></RowStyle>
Regards,Handy
or
Choose this if you're already a member of Intersoft Community Forum. You can link your OpenID account to your existing Intersoft Social ID.
Choose this if you don't have an Intersoft account yet. Your authenticated OpenID will be automatically linked to your new Intersoft account.
Enter your Wordpress Blogname