Hi Team,
I am using WebHierarchicalDatagrid where the child rows are populated in client side. I am having page level scroll in my page so did not have height property in the grid.
Problem:
Since I have no grid scroll, on expansion of a row in the grid the bottom rows of the parent row got hidden whose count is equal to the number of rows added to the child band. My requirement is I dnt want scroll in the grid but the grid heigth shold be increased on expand and decrease on collapse.
To reproduce the scenario please run the code with the localhost and not with the machine name.
The sample code is there in the link http://www.infragistics.com/community/forums/t/88005.aspx mail thread.
Regards,
Ahmed.
Hello ahmed,
I downloaded your sample from the given forum thread and run it on my localhost. I'm not sure if I understood your requirement right, however when I'm expanding any parent band and the child rows are populated on RowExpanded event the grid increases its height dynamically and on collapse it restores its initial height. However there is a scrollbar generated from the page that appears during row expanding and you can see the rest of the bands while scrolling to the bottom. Even if you explicitly set the grid height property, it will appear a scrollbar within the grid frame and you will be able to scroll only the grid content. In both cases when expanding some of the rows will be hidden until you scroll to see them.
Maybe I didn't understand correctly what you want to achieve, and it would be helpful for me if you could explain me in more details.
At the meantime I'm attaching a small video demonstrating the behavior that I'm seeing on my side.
Please take a look at it and let me know if you have any further questions.
Sincerely,
Tsanna
Hi Tsanna,
Thanks for you response. Just now I found the problem which causes the hidding bottom rows on expanding child rows. To reproduce the problem please use the same solution and call the function which adds the child band to the parent row in the sucess part of one ajax call. The issue is caused when it goes to one ashx file then coming back to aspx file to add the child band. Please help me in this.
If I give height to the grid I am getting scroll. But what I need is I have page scroll and there should be no scroll in the page.
I have solved this issue by the below code setting div height to 100%.
document.getElementById("x:145817962.4:mkr:container").style.height = "100%";
I got this Id from IE developer tools and this is WHDG div. Please confirm that the id given by Infragistics to this div remains the same al the time.
Hello Ahmed,
This is an automatically generated client id which remains the same for the particular grid object. However if you have other grids on the page and you want this style to be applied over them, then you have to get their ids as well and apply the same style. In order to get access to the inner container grid that holds the bands, I would suggest you instead of hardcoding the grid container id to access it by getting reference to the appropriate children collection through the gridView element, which may require considerable access in DOM tree depth.
If you have any further questions, please let me know.
If you need any further assistance regarding this matter, feel free to contact me.