I have a WebHierarchicalDataGrid control bound to a data source. The bands show up as expected.
In the second band I have 18 different columns and I've set the DefaultColumnWidth on that band to 300px.
When I view the page most of the columns are way off of the page as expected, but the horizontal scroll bar never shows up.
The width of the grid control is set to 100% and it sizes as expected.
How can I get the horizontal scroll bar to show up?
Thanks,
Brian.
Hello demoend ,
Thank you for posting in our forum.
I’ve tried to reproduce this issue with the information provided but was unable to.
Could you please provide me some of the relevant code so that I can try an reproduce this?
Also please refer to the attached sample and let me know if you notice any major differences in the approaches. If so please feel free to modify this sample to better represent your scenario and send it back to me. It would also be helpful if you let me know which version of our controls you’re currently using in your project.
Thank you for cooperation regarding this issue. I’m looking forward to your reply.
Best Regards,
Maya Kirova
Developer Support Engineer
Infragistics, Inc.
http://es.infragistics.com/support
I was trying to figure out why the horizontal scroll bar does not show up.
What I find is that if I have the DefaultColumnWidth on the band set to 150px and none of the columns have a width set, then the horizontal scroll bar shows up.
However, as soon as I set a width on one of the columns then it stops working.
I'm using a WebHierarchicalDataSource with two AccessDataSources.
VS2010 / Infragistics2.Web.v11.2, Version=11.2.20112.1019
I was not able to get your sample code to work in a new project I created.
Can you create a project using v11.2 next time?
Does this additional info help?
Thank you for the information. I’ve managed to reproduce the issue and found a possible solution.
Just set any width to the band element as well to trigger the scrollbar to show. In your case you could just set the width to 100%.
I’m attaching a sample with 11.2 for your reference let me know if you have any further questions or concerns.
Maya
Yes, that fixed the horizontal scroll bar issue I was having. Thanks!
Something else I now want to adjust...
So, I have two bands in my grid, and in the second band I have many rows. If I scroll to see more rows in this second band the column headers scroll off the screen.
Do you have any recommendations to prevent this from happening?
You can use the Column Fixing behavior.It will fix the column headers so they'll be visible when you scroll down. Here are some links to our samples browser and online documentation for more infromation on this:
http://samples.infragistics.com/aspnet/Samples/WebDataGrid/Organization/Column-Fixing-Server-Side/Default.aspx?cn=data-grid&sid=84c7ab77-1f61-48dd-95d7-47780538a62d
http://help.infragistics.com/NetAdvantage/ASPNET/2011.1/CLR4.0/?page=WebDataGrid_Column_Fixing.html
Let me know if you have any further questions.