Hello,
I am using the igGrid control in Asp.net MVC3 application, I found that if I set a height less than the default height, when loading the page contains igGrid control, the control height will first displayed as the default height then changed to the height I set.
I used it like:
<div class="abc">
@(Html.Infragistics()..Grid
....
.Height(100%)
</div>
also I tried set the control height like .Height("200px"), the same problem.
How to keep the igGrid height? I mean when this page load, it will use the height I set, not set it to default then back to my set.
Hi Jason,
Try to set igGrid property autoAdjustHeight to false.
Hope this helps,
Martin Pavlov
Infragistics, Inc.
Hello Martin,
Thanks for your replay. My answers are below,
About the question 3, I think you can make a sample as I described below.
1. Create a page with 2 sections.
2. The left section will contain a navigator bar with some links.
3. The right section will contain some DIVs, each DIV contains an igGrid control, all the DIVs have the same position.
4. At beginning, hide all the DIVs in the right section and display the first one as default.
5. Click one link in the left section, the related DIV display in the right section.
If we set a height less than the default, the issue I asked will happen. I know that if we don't set the width and height for the igGrid control, it will display with the default setting.
Best regards,
Jason
Hi Jason.Bie,
Sorry for the late answer.
I tried to reproduce you problem, but with no success. Can you answer my questions below in order to continue my investigations: