or
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


<
input type="image" id="LoginButton" src="../../Content/Images/login.jpg" onclick="radopen('<%= Url.Action("Login", "Account") %>', 'RadWindow1'); return false;" />
Thanks in advance,
Eugene
| Protected Sub radGridExperts_NeedDataSource(ByVal source As Object, ByVal e As Telerik.Web.UI.GridNeedDataSourceEventArgs) Handles radGridExperts.NeedDataSource |
| If Not IsNothing(Session("Experts")) Then |
| radGridExperts.DataSource = CType(Session("Experts"), Case_Inquiry.Case_ExpertsDataTable) |
| Else |
| 'do not fill anything, but create blank datasource |
| Dim dt As New Case_Inquiry.Case_ExpertsDataTable |
| Session("Experts") = dt |
| radGridExperts.DataSource = dt |
| End If |
| End Sub |
| if(e.Item is GridDataItem) |
| { |
| foreach(TableCell cell in e.Item.Cells) |
| { |
| cell.ToolTip = cell.Text; |
| } |
| } |
| string test = HttpContext.Current.Request.Url.ToString(); |