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
Latest Development Blogs
ForumPostTopic
Browse By Tag
Hi,
I have a WebGrid with several hidden checkbox columns that are still taking up horizontal space, and I can't seem to find a solution.
The idea is to have several checkbox columns that are not visible when initially viewing the grid, but they should be available in the "Select Columns" list. According to all of the documentation I could find in the knowledge base, the recommended way to hide a column is to set Visible=false. This does hide the columns, but they still take up space (ie: if the columns are 50 pixels wide, there will be a blank area on the right side of the grid that is 50 pixels wide).
To get around this, I tried setting the width of the columns to 0. This fixes the issue, but then when you select the column from the list, it doesn't appear (since the width is 0).
NOTE: Setting Visible=false only leaves the blank space in the grid when the ColumnType is Checkbox. It seems to work for Text columns just fine.
Any ideas?
Hello Questica,
I have an update for your issue from developers. Our development team has been done with your issue. You will get the fixed issue in SP1.
Thank you.Riendy
Thanks for the response, although I'm not quite sure it's what I'm looking for. Let me clarify my issue using the two attached screenshots.
In the "NoCheckboxColumn" image, you can see the grid that I'm working with. You'll notice that the last column ("Jun") spans almost the entire way to the right edge of the grid (there is a small gap for the scroll bar). You can also see that there are 4 columns available in the select list that are not currently visible. This has been done by setting Visible=false on the server side during the page load.
Now examine the "CheckBoxColumn" image. Notice that list of available columns now contains an extra column ("Consumed"), which is a CheckBox column. Like the other columns, I've set Visible=false on the server side during the page load. However, there is a much larger gap between the "Jun" column and the right edge of the grid. This gap is the same width as the new CheckBox column that is supposed to be invisible.
Is there some reason why the invisible Checkbox column causes a gap on the right side, but the Text columns do not? Or do I need to hide Checkbox columns using a different mechanism?
NOTE: I must hide the columns on the server side, so the client side code you have provided does not solve this issue.
Hello, I have tried a simple sample but I couldn't replicate your issue here. would you attach a simple runable sample of your issue?
Attached is my simple sample.
I have taken your sample and modified it to show the issue that I'm having. In my application, I always add the columns to the WebGrid in the InitializeLayout method, rather than putting them in markup. So, I moved the columns out of the markup in your example. I have also added a second grid to show the issue more clearly.
Both of the grids have the same base columns, and both have e.Layout.AutoFitColumns=true. The two grids are equivalent in every way, except the type of the invisible column.
On the top grid, there is an invisible text column ("ShipRegion"). You'll notice that the AutoFitColumns successfully expands all of the visible columns to fill the width of the grid.
The bottom grid has an invisible checkbox column ("Checks"). Unlike the first grid, AutoFitColumns does NOT expand all of the visible columns to fill the width of the grid. Instead, there is a gap on the right side that is equal to the size of the invisible column.
Thanks.
I have forwarded this issue to our development team to be investigated further.
I will tell you soon when I get the update from them.
Regards,
Riendy
Riendy,
Has there been any update on this issue from your development team? I am eagerly awaiting a solution.
Last update that I got is on investigated. I just asked to our development team for updates of this issue and still waiting for any confirmation from them. I will tell you soon if there is an update from our development team.
regards,
Any word from the developers on this issue? Can we expect a fix for this issue soon?
Hello,
Your issue is still on progress. I ensure that our developers effort to fix this issue as soon as possible.
Regards,Riendy
Excellent! Thank you Riendy.
When will SP1 be available?
Hi Questica,
Our developer still work hard to finish SP1 package. We hope this week we'll be ready to release SP1 package.
Thank you for your patience.Riendy
I have downloaded SP1 of WebGrid (7.0.7200.430), and updated the DLLs in the example used above to demonstrate this issue. Unfortunately, this issue still exists, exactly as described above.
I have attached the updated sample which shows the same issue, even using the updated DLLs for WebGrid.
Please let me know if I'm doing something wrong, or if this issue still exists.
You did not do something wrong. This issue has been fixed, but it still exist on build 430. Deeply apologize for this incident. Anyway, I have send a nightly build WebGrid (7.0.7200.431) to support@questica.com.
Would you please let me know whether this issue still exists in build 431 or not? For your information, I tried your sample in build 431 (WebGrid.png) and it runs perfectly.
Regards.Riendy
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