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
Hello,
In the process of upgrading to the 2009 version of the IS controls we have run into this error. When a WebGrid is placed inside a WebTab there is a problem with the height. The grid will initially load with one height, then if you sort or refresh the grid the height will shrink down about 40 pixels. This happens consistently across our entire application. I don't know if it is a wrong setting or just a bug but I could use some feedback on how to correct this issue.
I've attached an example. Here are the steps to reproduce:
1. Download and unzip the attached sample.
2. Open the sample in Visual Studio and select default.aspx to ‘View in Browser’.
3. When the page opens click on the second tab.
4. Note the height of the grid.
5. Click any of the header columns to sort the grid.
6. The grid will shrink in height considerably.
Thanks in advance for any suggestions!Scott French
Hi Scott,
Actually, it is not a bug. What you can do to prevent the WebGrid to do that kind of behavior, is by having a non-fix height for the WebGrid. So, instead of setting the Height=350px, you can try to use percent on it. Here is the snippet:
<ISWebGrid:WebGrid ID="WebGridLocations" Width="785px" runat="server" UseDefaultStyle="True" DataCacheStorage="Session" Height="100%">
I hope it helps and please, do not hesitate to ask if you have any other questions. Thank you.
Best Regards,
Andi Santoso
Hi Andi,
Is there anything we can do to prevent this issue? We are using fixed height grids inside a tab in a few situations without a problem but it seems like most act this same way. There are a few scenarios where we do not want the grid to take up the entire height of the grid. Is percentage our only option now? I know in the past we have used pixel dimensions as most of our grids inside a tab are setup this way. We just want to clarify before we start modifying all of these pages...
Thanks,Scott French
In here, I attached a Default.aspx file. In there, I am using a WebGrid_OnColumnSort client side event. So, whenever we click on the sorting button the height will be set as 100% or perhaps, any desired height in pixel.
I've attached a sample that might more clearly represent our issue (Default2.aspx).
In many cases we have text or controls above and below the grid. We want them to be visable without scrolling in the tab. In this sample I've set the intial height to 350px and the WebGrid_OnColumnSort height to 350px. When you load the page the grid is actual 415px tall (this is wrong). After sorting it goes down to 350px tall. It did this even before you added the WebGrid_OnColumnSort call... in fact it would go back to 350px even if you just readjust the page size by resizing the entire Internet Explorer window. Also, this issue only occurs when the grid is in a tab other than the first. You can confirm this by viewing DefaultBetter.aspx.
All of this combined with the fact that we never had a problem before upgrading to 2009 leads me to believe this is a bug, not a configuration issue.
Thank you for you more detail information. I have forwarded this to our developer and I will inform you as soon as possible when the Hotfix is ready. I hope it helps and please do not hesitate to ask if you have any other questions. Thank you.
Has the above issue been fix yet? I have the same issue of the grids loosing their Height when the I navigate to a different window within the Web Desktop. I have the height set to 100$ispct; and DataCacheStorage="Session" set as mentioned above.
Thanks,
Dermot
Dear Scott and Dermont,
First of all, deeply apologize for the late respond. After having a discussion with Developer team. They have stated that this is not an issue. This is a default behavior because WebGrid can't query the height when it's hidden.
The workaround in this scenario is to call the resize API in WebGrid when the tab is changing. Here is the snippet:
<script language="javascript" type="text/javascript" id="WebTab1_OnAfterTabChanged"> <!-- function WebTab1_OnAfterTabChanged(controlId, activeTab, previousTab) { var WebTab1 = ISGetObject(controlId); ISGetObject("WebGrid1").SetHeight("350px"); return true; } --> </script>
I hope it can help. Please do not hesitate to let me know if you have any further questions. Thank you and have a nice day.
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