I'm using radGrid to show 10 rows and 1st column frozen. I'm also using GridTemplateColumns.
Using an UpdatePanel with async trigger to initiate the results shows fine the first time...10 rows displayed + first column frozen.
Then, I click the same search again but this time, only 8 rows show and I lose the frozen 1st column. The data scrolls left/right but the headers remain in place.
Once in this broken state I click paging or sort (grdSearchResult_PageIndexChanged or grdGSearchResult_SortCommand) which rebinds the data, it fixes itself and the frozen column is back.
I really want to know why the radGrid doesn't size itself to show all 10 rows and what may be going on differently in the PageIndexChanged events. I have my radGrid Height set but should I be using something in the CSS to it automatically sizes to fit all the data rows?
I can't duplicate this behavior in IE though.
6 Answers, 1 is accepted
Could you share your code with us? It is not known issue for us, and without seeing your code we would not be able to determinate why it is happen.
As mentioned below, the frozen column disappears when the radGrid doesn't expand to the full height of the 10 rows. How can I force or change the height of the radGrid to be redrawn or expanded to show all 10 rows to see if that is affecting the frozen column?
Well, the markup, the styles, code-behind if it is related. We could bind the grid to sample DataTable created in the code behind.
Did you tested with our latest version, and if not, what is the version that you are using?
This works fine in IE 9/10. But when I use this in Chrome and make the grid visible, the widths of the templated radGrad are collapsed, the height of the grid only shows about 8 rows, and the first column is no longer frozen.
However, if I click any page number in the pager along the bottom of the grid, the updatepanel asynch postback occurs again and the grid gets redrawn fine. It's as if it doesn't know how to render correctly while style="display:none" using Chrome.
I'm using Telerik.Web.UI.dll 2012.3.1016.40. Thanks, Dave
If it has display:none, it could have problems with the initialization.
You could try to call the .repaint() of your grid after you change it's display. It could resolve the issues.
Very nice! it worked. Thanks! Dave.