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 am finding a very picular behavior with the WebGrid7 Horizontal Scroll...
Say I have 50 columns in my grid. After the page loads, I hold the horizontal scroll bar and scroll all the way to the right. But the last few columns do not display. In order to see those columns. I have to click a couple of times on the left arrow to scroll left. Then click on the right arrow to scroll back to the right.
I am using IE8. Downloaded and installed the latest WebGrid7 updates.I am also using the following DOCTYPE: <!DOCTYPE HTML PUBLIC"-//W3C//DTD HTML 4.0 Transitional//EN"><html>
The WebGrid's LayoutSettings include:AbsoluteScrolling=trueShowSplitterLine=trueMaxFrozenColumns=4ActiveFrozenColumns=4With the updates I installed recently, should I remove all the references to the DLLs that are currently in my project and readd them?
Is there a setting I am not using to get the correct scrolling behavios behavior?
Thank you
A simple sample of WebGrid is created based on your description. WebGrid is bind to “Employees” table of Northwind database. Since the table only has 17 columns, each column is specified four times, to get the number of columns as many as sixty-eighty columns (greater than fifty columns). Specific settings of WebGrid shown below are enabled:
... <LayoutSettings AllowColumnFreezing="Yes"> <FreezePaneSettings AbsoluteScrolling="True" MaxFrozenColumns="4" ActiveFrozenColumns="4" ShowSplitterLine="True" /> </LayoutSettings> ...
The page is viewed in IE 8 browser and tested using both of HTML 4.0 Transitional and XHTML 1.0 Transitional. Everything worked smoothly and the last column of WebGrid was accessed without any additional efforts. I enclosed a screenshot and the sample file that I use during my attempt to replicate the problem as attachment.
I’m willing to advice you further but in order to do so I would need you to elaborate on your specific scenario and possibly give us a running simple sample and step-by-step guide that we can use to observe the problematic behavior. You may modify the sample so that the sample is reproducible then have the sample sent back to us for further investigation.
Hi Yudi,
Of course your sample code works smoothly. So I created a project, the code and steps of how I load and manipulate the grid and columns are similar to what I do in my project.
Thanks again for your assistance!
Thank you very much for taking the time to provide the sample. It really helps much to determine what may cause the issue.
After compares the sample sent by you and my working sample, I managed to find that the issue was caused by the ‘ColumnName’ declaration in Defaults.aspx.vb file, as shown in the following line.
For Each col As Data.DataColumn In dt.Columns ' initialize WebGridColumn ... gridCol.Name = col.ColumnName ... Next
Please ensure that each ColumnName property is unique, means that there is no ColumnName that has identic value. Modify the above line in Default.aspx.vb file into the following will fix the issue.
For Each col As Data.DataColumn In dt.Columns ' initialize WebGridColumn ... gridCol.Name = col.ColumnName + i.ToString() ... Next
Please test this proposed solution and let us know whether this helps or not.
Yudi, my project has unique column names. Can you find out if there is anything else wrong?
I have tried to debug the sample project starting by removing all properties and style and then re-apply them one-by-one (each time a property/style is applied the changes is checked in the rendered page), but my efforts was not successful. I was unable to find other things that may caused the problematic behavior.
I suspect that this is due to the limitation that the sample project has. Could you please kindly check whether the sample has represented all the things and features that the real project has?
I can't seem to reproduce the issue in the Sample Project even after I added and simulated my project code step by step in the Sample Project!
Some of the main differences in both projects are:
SampleProject: 1. Uses App_Code and App_Data. 2. Reference to the WebGrid.dll only
My Project: 1. Doesn't use App_Code and App_Data. Instead, I have different projects in the solution (Business Logic Layer Project, Data Access Layer Project, etc..) 2. References to WebGrid.dll, ISChartEngine.dll, WebDesktop.dll, Resources.dll, ActiveReports.Exporting.dll.
Do you think this has any effect?
Hi Yudi, I think I was able to duplicate the behavior. Please use the attached project to conduct your testing. I tried to represent as much as I can from my original project, including any styling, controls and formatting I do on the page.
To duplicate the issue; Once the grid is loaded. Hold the scroll bar and scroll once and all the way to the right. The last column in the grid should be "ReportsTo".
I enclosed a video that shows how the sample project run and tested on my local end. I was able to scroll all the way to the right and find the last column, “ReportsTo” column.
Please let me know if there is anything that I might miss during my attempt to replicate the issue.
I am not sure if there is anything else you are missing. I attached two screen shots. You will see in the second one how I scrolled all the way to the right, but unlike you, I don't see the last column "Reports To".
Could this be a browser issue? DOCTYPE? HTML/CSS? Environment?
Hi Ahmed,
Would you please let me know what is your WebGrid's build ?For your information, In nightly build version 431 which I used, your sample runs well on my end.Please check your inbox (adajani@najiasystems.com).
Thank you.Riendy
I was using the 430 before you send me the 431. Which I replaced following your instructions and still have the issue. I replied to your email directly.
Can you tell me which windows you have? .NET framework, VS05/08/10? Browser settings?
I use VS10 SP1 with .NET 4.0 framework and it can open your sample without any browser setting.
Could you clear the cache in the temporary files, please ? The folder is in C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files.Note that v4.0.30319 is .NET framework version that I use.
Then, open your project and remove the WebGrid resources in bin folder. And try to re-add the new one from C:\Program Files\Intersoft Solutions\WebUI Studio for ASP.NET\WebGrid.NET 7.0\Bin.
RegardsRiendy
No such luck.
Hello Ahmed,Have you receive an replied email from me (July, 9th 2011, 8:16AM GMT+7) ?
For further investigation, please install intersoft 2011 R1 SP1 trial version on your laptop, and run your sample, so that the issue replicate on your laptop and please allow me to remote your laptop. It will very help me to investigate your issue.
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