Hi, we have a grid that for some reason renders differently from our PCs when we publish our web application to production. The grid has static column headers, and we set its width to 100%. For some reason, when we develop it in our PCs, it displays perfectly, with the content taking up the entire grid. When we publish the same exact code to our production server (or any other server so that the application is not running locally on our PCs when we access it), and the grid is still set to 100%, but the content doesn't take up the whole grid. When I run the rendered HTML code through WinDiff, it tells me that the following line renders differently:
In development:
In production:
Notice how in development it adds "width: 100%". Both are using the same exact code however:
I attached two Screenshots, capture1 of the production result which doesn't seem to render correctly, and capture2 which is the result when we run it locally on our PCs which does seem to render correctly. Why could this be happening?
Thank you!
In development:
<table cellspacing="0" class="rgMasterTable rgClipCells" border="0" id="Domestic_userControl_rgDomestic_ctl00_Header" style="width:100%;table-layout:fixed;overflow:hidden;text-overflow:ellipsis;empty-cells:show;"> |
In production:
<table cellspacing="0" class="rgMasterTable rgClipCells" border="0" id="Domestic_userControl_rgDomestic_ctl00_Header" style="table-layout:fixed;overflow:hidden;text-overflow:ellipsis;empty-cells:show;"> |
Notice how in development it adds "width: 100%". Both are using the same exact code however:
<telerik:RadGrid runat="server" ID="rgDomestic" AllowFilteringByColumn="true" |
AllowSorting="true" ShowFooter="True" EnableLinqExpressions="false" |
AllowPaging="True" AllowMultiRowSelection="true" |
ShowGroupPanel="true" ShowHeader="true" |
PageSize="15" |
AutoGenerateColumns="false"> |
<ClientSettings Selecting-AllowRowSelect="true" ClientEvents-OnGridCreated = "DomesticGridCreated" AllowDragToGroup="true" AllowGroupExpandCollapse="true" EnableRowHoverStyle="true" ClientEvents-OnRowDblClick="RowDoubleClick" > |
<Scrolling AllowScroll="True" UseStaticHeaders="true" SaveScrollPosition="true" FrozenColumnsCount="2"/> |
</ClientSettings> |
<GroupingSettings ShowUnGroupButton="true" /> |
<MasterTableView GroupsDefaultExpanded="false" GroupLoadMode="Client" HierarchyLoadMode="Client" ClientDataKeyNames="DocNum" DataKeyNames="DocNum"> |
<Columns> |
I attached two Screenshots, capture1 of the production result which doesn't seem to render correctly, and capture2 which is the result when we run it locally on our PCs which does seem to render correctly. Why could this be happening?
Thank you!