Hello all,
I have one radgrid whose heigh is changed according to user machine resolution, this is done by invoking
| <ClientEvents OnGridCreated="onGridCreated" /> |
Height is working properly, however when a row is selected, header row gives the appearance of moving by increasing and decreasing its width.
This is how columns are defined:
| <telerik:GridBoundColumn |
| UniqueName="Subject" |
| SortExpression="Subject" HeaderText="Subject" DataField="Subject" ItemStyle-Width="33%"> |
| </telerik:GridBoundColumn> |
| <telerik:GridBoundColumn |
| UniqueName="EntityName" |
| SortExpression="Displayname" HeaderText="Entity" DataField="Displayname" ItemStyle-Width="14%"> |
| </telerik:GridBoundColumn> |
able on which this grid is inserted has this style:
style
="table-layout:fixed;"
and this is the javascript function:
| function onGridCreated(sender, args) { |
| try { |
| var scrollArea = sender.GridDataDiv; |
| var gridHeader = sender.GridHeaderDiv; |
| var ostage; |
| var vpaging; |
| var vmenu; |
| vpaging = 0; |
| vmenu = 20; |
| if (document.getElementById("ucPagingList_divPaginacion") != null) |
| vpaging = 22; |
| if (scrollArea != null && gridHeader != null) { |
| if (parent.document.getElementById("stage") != null) { |
| ostage = parent.document.getElementById("stage").clientHeight; |
| scrollArea.style.height = ostage - gridHeader.clientHeight - 25 - vpaging - vmenu + "px"; |
| } |
| else { |
| scrollArea.style.height = screen.availHeight - gridHeader.clientHeight - vpaging - vmenu + "px"; |
| } |
| } |
| } |
| catch (err) { |
| } |
| } |
any clue ?, tried a lot of possible actions with no result ... :(
Thanks in advance
