﻿<?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 - CSS file to stylize webgrid</title><link>http://www.intersoftsolutions.com/Community/WebGrid/CSS-file-to-stylize-webgrid/</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>CSS file to stylize webgrid</title><link>http://www.intersoftsolutions.com/Community/WebGrid/CSS-file-to-stylize-webgrid/</link><pubDate>Mon, 12 Jul 2010 09:31:56 GMT</pubDate><dc:creator>andi@intersoftpt.com</dc:creator><description>&lt;p&gt;&lt;span style="font-size: 9pt; "&gt;Hi Adam,&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-size: 9pt; "&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; Since you are not using SmartWebResources, I will assume that your project is at Local Host instead of File System. In this case, when we disabled, please ensure to create that particular folder as a virtual directory in your IIS. Because when disabled, it will retrieve using the classic physical path through IIS Virtual Directory.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size: 9pt; "&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp;I have tried to create a WebGrid and set the the "EnableWebResources="ResourcesOnly", and tried under you scenario, it seems that it still gave me a fine result in the end. I hope it helps. Thank you and have a nice day.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size: 9pt; "&gt;Best Regards,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size: 9pt; "&gt;Andi Santoso&lt;/span&gt;&lt;/p&gt;</description></item><item><title>CSS file to stylize webgrid</title><link>http://www.intersoftsolutions.com/Community/WebGrid/CSS-file-to-stylize-webgrid/</link><pubDate>Fri, 09 Jul 2010 18:03:21 GMT</pubDate><dc:creator>aspnet@softwarestudio.com.pl</dc:creator><description>&lt;p&gt;Hi Andi &lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;ok you have right, but the problem is becouse i want to read images and scripts from from my folder on server not using web resource. How can i this doing? I have create folder /templates/grid/ and i put all scripts and images from webgrid component but is only read at first time after change is loaded from resource...&lt;/p&gt;
&lt;p&gt;Thx for help...&lt;/p&gt;
&lt;p&gt;Regards&lt;/p&gt;
&lt;p&gt;Adam&lt;/p&gt;</description></item><item><title>CSS file to stylize webgrid</title><link>http://www.intersoftsolutions.com/Community/WebGrid/CSS-file-to-stylize-webgrid/</link><pubDate>Fri, 09 Jul 2010 02:33:55 GMT</pubDate><dc:creator>andi@intersoftpt.com</dc:creator><description>&lt;p&gt;&lt;span style="font-size: 9pt; "&gt;Hi Adam,&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-size: 9pt; "&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; Forgive me, however I am not able to replicate the issue for you first problem. I have tried using the same code of yours and the image is not changing back after I performed sorting in that specific column. Please ensure that you put those block of code in OnInitializeLayout server side event.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size: 9pt; "&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; For the second problem, yes what you have written is correct already. Here is the snippet on how to use a class only for the header.&lt;/span&gt;&lt;/p&gt;
&lt;p /&gt;&lt;pre&gt;&lt;span style="font-size: 9pt; "&gt;protected void WebGrid1_InitializeLayout(object sender, ISNet.WebUI.WebGrid.LayoutEventArgs e)
{
   WebGrid1.LayoutSettings.HeaderStyle.CssClass = "headerfont";
        
   WebGrid1.LayoutSettings.ImageSettings.SortAscImage = "resume_arrow_up.png";
}&lt;/span&gt;&lt;/pre&gt;
&lt;p&gt;
&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size: 9pt; "&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; Noted that I have already included the css file in the html page. Here is the snippet as well.&lt;/span&gt;&lt;/p&gt;
&lt;p /&gt;&lt;pre&gt;&lt;span style="font-size: 9pt; "&gt;&amp;lt;link href="Default.css" type="text/css" /&amp;gt;&lt;/span&gt;&lt;/pre&gt;
&lt;p&gt;
&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size: 9pt; "&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; I hope it helps. Thank you and have a nice day.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size: 9pt; "&gt;Best Regards,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size: 9pt; "&gt;Andi Santoso&lt;/span&gt;&lt;/p&gt;</description></item><item><title>CSS file to stylize webgrid</title><link>http://www.intersoftsolutions.com/Community/WebGrid/CSS-file-to-stylize-webgrid/</link><pubDate>Thu, 08 Jul 2010 20:15:32 GMT</pubDate><dc:creator>aspnet@softwarestudio.com.pl</dc:creator><description>&lt;p&gt;Hi Andy &lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;thanks for you last reply i have try and many thinks works ok, but i have two problems to solved:&lt;/p&gt;
&lt;p&gt;1. if i set for example &lt;br /&gt;&lt;/p&gt;&lt;pre&gt;WebGrid1.LayoutSettings.ImageSettings.SortAscImage = "arrow-up.png";&lt;/pre&gt;
&lt;p&gt;the arrow show when the page is load, but after header click and back to sort ascending the arow dont show again? Can you help me why ?&lt;/p&gt;
&lt;p&gt;2. i set difrent style for each of elements but how can i bind specify css file to webgrid, that be use the class bind as example&lt;/p&gt;&lt;pre&gt;WebGrid1.LayoutSettings.CheckedRowStyle.CssClass = "checkedrow_grid";&lt;/pre&gt;
&lt;p&gt;thanks for help....&lt;/p&gt;
&lt;p&gt;regards&lt;/p&gt;
&lt;p&gt;adam&lt;br /&gt;&lt;/p&gt;</description></item><item><title>CSS file to stylize webgrid</title><link>http://www.intersoftsolutions.com/Community/WebGrid/CSS-file-to-stylize-webgrid/</link><pubDate>Thu, 08 Jul 2010 20:15:30 GMT</pubDate><dc:creator>aspnet@softwarestudio.com.pl</dc:creator><description>&lt;p&gt;Hi Andy &lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;thanks for you last reply i have try and many thinks works ok, but i have two problems to solved:&lt;/p&gt;
&lt;p&gt;1. if i set for example &lt;br /&gt;&lt;/p&gt;</description></item><item><title>CSS file to stylize webgrid</title><link>http://www.intersoftsolutions.com/Community/WebGrid/CSS-file-to-stylize-webgrid/</link><pubDate>Mon, 28 Jun 2010 21:59:16 GMT</pubDate><dc:creator>andi@intersoftpt.com</dc:creator><description>&lt;p&gt;&lt;span style="font-size: 9pt; "&gt;Hi Adam,&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-size: 9pt; "&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; To use the css style class, we will need to decide on what element we wanted to change the style. For example. In my attachment of screenshot, we can change the Header style by setting the CssClass into our .css file.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size: 9pt; "&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp;All the style that can be included in this css file are the one that available for the Header its self. I hope it can help. Thank you and have a nice day.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size: 9pt; "&gt;Best Regards,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size: 9pt; "&gt;Andi Santoso&lt;/span&gt;&lt;/p&gt;</description></item><item><title>CSS file to stylize webgrid</title><link>http://www.intersoftsolutions.com/Community/WebGrid/CSS-file-to-stylize-webgrid/</link><pubDate>Mon, 28 Jun 2010 18:22:28 GMT</pubDate><dc:creator>aspnet@softwarestudio.com.pl</dc:creator><description>&lt;p&gt;Hi &lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;it possible to set layout of webgrid using only css class? without :&lt;br /&gt;&lt;/p&gt;&lt;br /&gt;&lt;pre&gt;&amp;lt;link rel="stylesheet" href="/ISRes.axd?G/ISMenu.css/707200402" type="text/css" /&amp;gt;&amp;lt;link rel="stylesheet" href="/WebResource.axd?d=2z19vlamxvWttyvE1ArClWTflihmOd1b51aw6gplI_hYEYZJnJpPWxQhrroxY-Ew2txaEXXd47qMrNV4_8fpCw2&amp;amp;t=634077193597680000" type="text/css" /&amp;gt;&amp;lt;link rel="stylesheet" href="/WebResource.axd?d=2z19vlamxvWttyvE1ArClWTflihmOd1b51aw6gplI_hYEYZJnJpPWxQhrroxY-EwEnZqhXE6qs24pH7c1knCEg2&amp;amp;t=634077193597680000" type="text/css" /&amp;gt;&amp;lt;style id="ISWebUI_Styles" type="text/css"&amp;gt;&lt;br /&gt; .W1FE32E{border: #000000 1px solid; border-left-width: 0px; border-top-width:0px; ;} .WGJ26E{overflow:Hidden;overflow-x:Visible;overflow-y:Visible;} .W2IG8GD{overflow:Hidden;overflow-x:Visible;overflow-y:Visible;} div[popupProvider="Intersoft"], div[popupProvider="Intersoft"] *{-moz-box-sizing: border-box;}&amp;lt;/style&amp;gt;&lt;br /&gt;&lt;/pre&gt;
&lt;p&gt;how can i this doing ?&lt;/p&gt;
&lt;p&gt;thanks&lt;/p&gt;
&lt;p&gt;regards&lt;/p&gt;
&lt;p&gt;Adam&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;</description></item></channel></rss>