﻿<?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 - newRow CellStyle HorizontalAlign</title><link>http://www.intersoftsolutions.com/Community/WebGrid/newRow-CellStyle-HorizontalAlign/</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>newRow CellStyle HorizontalAlign</title><link>http://www.intersoftsolutions.com/Community/WebGrid/newRow-CellStyle-HorizontalAlign/</link><pubDate>Wed, 19 Aug 2009 22:55:53 GMT</pubDate><dc:creator>Dicky</dc:creator><description>&lt;p&gt;Sure, the bug ID is 359. I'll update you when we have released the hotfix.&lt;/p&gt;</description></item><item><title>newRow CellStyle HorizontalAlign</title><link>http://www.intersoftsolutions.com/Community/WebGrid/newRow-CellStyle-HorizontalAlign/</link><pubDate>Wed, 19 Aug 2009 07:47:56 GMT</pubDate><dc:creator>vangeloni</dc:creator><description>&lt;p&gt;Hi,&lt;br /&gt;&lt;/p&gt;&lt;p&gt; &lt;/p&gt;
&lt;p&gt;thanks. &lt;br /&gt;&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;Could you tell us the bug Id in order to track and to be ready to download the hot as soon as it is ready? &lt;br /&gt;&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;Vince &lt;br /&gt;&lt;/p&gt;</description></item><item><title>newRow CellStyle HorizontalAlign</title><link>http://www.intersoftsolutions.com/Community/WebGrid/newRow-CellStyle-HorizontalAlign/</link><pubDate>Wed, 19 Aug 2009 06:33:41 GMT</pubDate><dc:creator>Dicky</dc:creator><description>&lt;p&gt;I confirm if this is a minor UI issue, the new row alignment won't follow cell alignment.&lt;br /&gt;FYI : there is another customer that reported this issue before and we have created bug report regarding this issue. &lt;br /&gt;&lt;br /&gt;Perhaps while you waiting the hotfix probably you can use this workaround:&lt;br /&gt;&lt;br /&gt;You can use OnEnterEditMode client side event to manage the horizontal alignment.&lt;/p&gt;&lt;p /&gt;&lt;pre&gt;function WebGrid1_OnEnterEditMode(controlId, tblName, editObject)
        {
            var grid = ISGetObject(controlId);
            var selectedRow = wgGetRowByElement(editObject.cellElement.parentElement);
            var columns = grid.RootTable.Columns;
            var colDiscountinued = columns.GetNamedItem("Discontinued");
            
            if (selectedRow.Type == "NewRow")
                editObject.cellElement.parentElement.cells[colDiscountinued.Position   &amp;nbsp;&lt;span style="font-style: italic; "&gt;&lt;span style="font-style: normal; "&gt;1].style.textAlign = "center";&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;           return true;
        }&lt;/pre&gt;
&lt;p&gt; Hope this helps.&lt;/p&gt;
&lt;p /&gt;</description></item><item><title>newRow CellStyle HorizontalAlign</title><link>http://www.intersoftsolutions.com/Community/WebGrid/newRow-CellStyle-HorizontalAlign/</link><pubDate>Wed, 19 Aug 2009 05:41:03 GMT</pubDate><dc:creator>vangeloni</dc:creator><description>&lt;p&gt;Hi,&lt;br /&gt;&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;we are using the default style, Elegant, we changed the cell style: &lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;CellStyle HorizontalAlign="Right"&gt;&lt;br /&gt;                            &lt;/CellStyle&gt; &lt;br /&gt;&lt;/p&gt;
&lt;p&gt;anyway the  Alignment is set only for the cell in normal row, the cell in the newRow has the default Alignment Left.&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;How to set the cell style  HorizontalAlign also for newRow?&lt;br /&gt;&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;Thanks, &lt;br /&gt;&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;Vincenzo &lt;br /&gt;&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;</description></item></channel></rss>