Search

You searched for the word(s): userid:689691

Matching Posts

  • GridViewAdapter Beta 3.0 with added support for CssClass, ClientID, HeaderStyle-CssClass, row.CssClass, row.Attributes

    Hi guys, While using the Css Friendly Adapter for the GridView, I've run into several properties that are not being rendered. Over time, I've implemented support for several of those properties, as I needed to use them. These range from declarative properties like <asp:GridView>: CssClass, ID <asp:TemplateField/BoundField...> : HeaderStyle-CssClass to programmatically exposed properties like GridViewRow.CssClass GridViewRow.Attributes, GridViewRow.Styles The code below is the GridViewAdapter
    Posted to CSS Friendly Control Adapters (Forum) by adk on 11/8/2006
    Filed under: "HeaderStyle-CssClass", GridView, GridViewAdapter, GridViewRow.CssClass, GridViewRow.Styles, "css friendly adapter", GridViewRow.Attributes
  • Re: GridViewAdapter - support for row.CssClass

    Glad to hear you found the code useful. Andrej
    Posted to CSS Friendly Control Adapters (Forum) by adk on 11/8/2006
  • GridViewAdapter - support for row.CssClass

    Hey guys, Another thing I noticed the CSS friendly adapter was lacking was support for row.CssClass. Since this is something I needed for my project, I've implemented it and thought I'd share it. Inside the WriteRows method, find the following code: string className = GetRowClass(gridView, row); And, immediately after, add the following: if (row.CssClass != null && !row.CssClass.Equals( string .Empty)) { if ( null != className && !className.Equals( string .Empty)) className
    Posted to CSS Friendly Control Adapters (Forum) by adk on 11/1/2006
  • Re: GridViewAdapter Row.Attributes and Row.Styles

    Thanks Russ, Appreciate the information. I will leave the initial post as it is. Andrej
    Posted to CSS Friendly Control Adapters (Forum) by adk on 11/1/2006
  • Re: GridViewAdapter Row.Attributes and Row.Styles

    Hey guys, Please ignore the second if block, it is unneccessary an incorrect. It appears that the style attribute generated from Row.Styles is already in the row.Attributes collection. I apologize for posting untested code. Lesson learned. p.s. Can anyone point me to the forum FAQ? Alternately, can you tell me if it is possible to edit a post?(I'd like to correct the code in the original post) Thanks, Andrej
    Posted to CSS Friendly Control Adapters (Forum) by adk on 10/31/2006
  • GridViewAdapter Row.Attributes and Row.Styles

    I noticed that the GridViewAdapter does not render the Row.Attributes and Row.Styles. Here is the code I used to get it working. Hope someone finds it helpful. Inside the WriteRows method, add the following code after the foreach (GridViewRow row in rows) and before the writer.Write(HtmlTextWriter.TagRightChar); if (row.Attributes.Count > 0) { foreach ( string key in row.Attributes.Keys) { writer.WriteAttribute(key, row.Attributes[key]); } } if (row.Style.Count > 0) { foreach ( string key in
    Posted to CSS Friendly Control Adapters (Forum) by adk on 10/31/2006
Page 1 of 1 (6 items)