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
I'm having issues displaying white space in the grid cells. I saw in a couple of threads that replacing white space with should do the trick, but it has not worked.
Currently I'm saving values in the database with white space like "My test value". In the grid it shows up as "My Test Value".
What's interesting is if I try to edit the cell in Firefox, the white space shows up, but doesn't in IE.
I tried the following code as well, but it hasn't worked:
Private Sub myGrid_InitializeCell(sender As Object, e As ISNet.WebUI.WebGrid.CellEventArgs) Handles myGrid.InitializeCell If e.Cell.Column.Name.Equals("Stub") Then e.Cell.Column.ColumnType = ISNet.WebUI.WebGrid.ColumnType.Custom e.Cell.Value = e.Cell.Value.ToString().Replace(" ", " ") End If End Sub
Any suggestions?
Thanks!
Hello,
Basically when building a Web page is that Web pages don't handle white space characters the same way that word processors do. When you write your HTML, you can add any number of these white space characters into your HTML. But when you view that HTML in a Web page, one white space will be displayed.
In order for those spaces to display in your web browsers you need to use one of HTML character entities like “ ”
To set the display of your webgrid value (in this case , cell’s value). You need to set text property, not on value property. So please make a little change in your script.
From:
e.Cell.Value = e.Cell.Value.ToString().Replace(" ", " ");
To:
e.Cell.Text = e.Cell.Value.ToString().Replace(" ", " ");
Hope this helps. Thank you.
Regards,
Hans K
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