﻿<?xml version="1.0" encoding="utf-8"?><rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:sy="http://purl.org/rss/1.0/modules/syndication/" xmlns:media="http://search.yahoo.com/mrss/" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0"><channel><title>Intersoft Community - WebGrid Enterprise - Efficient way to use Best Fit on all coulmns </title><link>http://www.intersoftsolutions.com/Community/WebGrid/Efficient-way-to-use-Best-Fit-on-all-coulmns/</link><description /><generator>http://www.intersoftsolutions.com</generator><language>en</language><copyright>Copyright 2002 - 2015 Intersoft Solutions Corp. All rights reserved.</copyright><ttl>60</ttl><item><title>Efficient way to use Best Fit on all coulmns </title><link>http://www.intersoftsolutions.com/Community/WebGrid/Efficient-way-to-use-Best-Fit-on-all-coulmns/</link><pubDate>Mon, 01 Aug 2016 08:21:10 GMT</pubDate><dc:creator>sjain</dc:creator><description>Hi Yudi,&amp;nbsp; &lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Any update regarding request would be helpful !&lt;br&gt;&lt;br&gt;regards&lt;br&gt;Sachin &lt;br&gt;</description></item><item><title>Efficient way to use Best Fit on all coulmns </title><link>http://www.intersoftsolutions.com/Community/WebGrid/Efficient-way-to-use-Best-Fit-on-all-coulmns/</link><pubDate>Tue, 05 Jul 2016 14:15:24 GMT</pubDate><dc:creator>sjain</dc:creator><description>Hi Yudi,&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Thanks for reply. Unfortunately suggested solution does not fit in requirement. Client is OK with horizontal scroll bar because column position they can change with combination of hiding some columns. User requirement is to see cell data (not only header)&amp;nbsp; full without new line. Since, cell data for desired pages are too much long so they wish to read it with some more column data. &lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp; We found that "Best Fit"&amp;nbsp; for column worked in this requirement.&amp;nbsp; Our problem is that data is dynamic so columns name could not be hardcoded by javascript. &lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; We tried to apply "Best Fit" on every column by javascript after document.ready but it made page slow. Hope, you can suggest some workaround.&lt;br&gt;regards&lt;br&gt;Sachin&lt;br&gt;</description></item><item><title>Efficient way to use Best Fit on all coulmns </title><link>http://www.intersoftsolutions.com/Community/WebGrid/Efficient-way-to-use-Best-Fit-on-all-coulmns/</link><pubDate>Mon, 27 Jun 2016 08:01:23 GMT</pubDate><dc:creator>yudi</dc:creator><description>&lt;p&gt;&lt;span style="color: #1f497d;"&gt;You might want to try the &lt;em&gt;multi-line column header&lt;/em&gt; approach. Please set following properties:&lt;/span&gt;&lt;/p&gt;&lt;ul style="color: #1f497d;"&gt;&lt;li&gt;&lt;strong&gt;WebGrid &amp;gt; LayoutSettings &amp;gt; HeaderWrapDefault="True"&lt;/strong&gt;&lt;/li&gt;&lt;li&gt;&lt;strong&gt;WebGrid &amp;gt; LayoutSettings &amp;gt; RowHeightDefault="-1px"&lt;/strong&gt;&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;&lt;span style="color: #1f497d;"&gt;By doing so, you can have multi-line column header such as shown in the following:&lt;/span&gt;&lt;/p&gt;
&lt;img src="http://www.intersoftsolutions.com/Community/Attachments/44740/multi-line_column_header.png"&gt;
&lt;p&gt;&lt;span style="color: #1f497d;"&gt;Please let me know if this suits your scenario.&lt;br&gt;Note: simple sample is enclosed as attachment.&lt;/span&gt;&lt;/p&gt;
</description></item><item><title>Efficient way to use Best Fit on all coulmns </title><link>http://www.intersoftsolutions.com/Community/WebGrid/Efficient-way-to-use-Best-Fit-on-all-coulmns/</link><pubDate>Wed, 22 Jun 2016 14:27:21 GMT</pubDate><dc:creator>sjain</dc:creator><description>&lt;p&gt;Hi, &lt;br&gt;&lt;/p&gt;&lt;p&gt; Some of our webgrid pages have large number of columns say more than 25. To show columns properly we made AutoFitColumns="false" ; so horizontal scroll bar appear and columns headers are readable now. Still for columns having large text say more than 35 charcters; text were not readable without resizing the column. Most of columns of such grids require resize. &lt;br&gt;&lt;/p&gt;&lt;p&gt;We tried to use webgrid's inbuilt functionality "Best Fit" for all columns. We do it by below function which is based upon http://developer.intersoftsolutions.com/display/WebUI/Set+the+Column's+Best+Fit&lt;br&gt;&lt;/p&gt;&lt;p&gt;$(document).ready(function () {&lt;br&gt; var grid = ISGetObject('WebGrid1');&lt;br&gt; for (i = 0; i &amp;lt; grid.RootTable.Columns.length; i++) {&lt;br&gt; (grid.RootTable.Columns.GetNamedItem(grid.RootTable.Columns[i].Name)).ResizeBestFit();&lt;br&gt; }&lt;br&gt; });&lt;/p&gt;&lt;p&gt;It makes those page 3-4 times slower and reason behind it that it is done after document is ready.&lt;br&gt;&lt;/p&gt;&lt;p&gt;Is it any efficient way exist which can help us to meet the goal without making page&amp;nbsp; slower? &lt;br&gt;&lt;/p&gt;&lt;p&gt;thanks and regards&lt;/p&gt;&lt;p&gt;Sachin&lt;br&gt;&lt;/p&gt;&lt;p&gt;&lt;br&gt;&lt;/p&gt;</description></item></channel></rss>