Home
Get Started
Learn
Downloads
AJAX
MVC
Community
Wiki
Forums
Sign in
|
Join
Home
›
ASP.NET Forums
›
Search
Search
You searched for the word(s): userid:689691
More Search Options
RSS Available
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)
Channel 9:
TWC9: XAML tools, Silverlight for Live Writer, Surface SDK,
Channel 9:
C9 Conversations: Brian Beckman on Complexity [C9 Conversations: Brian Beckman on Complexity]
Channel 10:
Black Friday Deals on Windows 7 Machines
Channel 10:
Holiday Shopping on Bing Cashback = Big Online Savings
Channel 10:
Black Friday Deals at the Microsoft Store
Channel 10:
Incredible Black Friday Deal: Windows 7 Notebook for $197
ASP.NET:
Presenting in Europe Next Week
TechNet Edge:
AlignIT IT Manager Podcast #30 - Straight Talk about Windows 7
WindowsClient:
You know your post rate has gone down...
Silverlight:
Geek Profiles – Scott Guthrie
Channel 9:
C9 Lectures: Dr. Erik Meijer - Functional Programming Fundamentals Chapter 9 of 13
TechNet Edge:
Managing Your Virtual World - Tech Focus November 2009 Part 2
ASP.NET:
Silverlight and RIA Services: Implementing Search
Channel 9:
C9 Lectures: Brian Beckman - Covariance and Contravariance in Physics 1 of 1
Channel 9:
Set Your Data Free
Channel 9:
Implementing a Silverlight SharePoint WebPart with Visual Studio 2010
WindowsClient:
New WPF Showcase Addition: Enterprise
Channel 9:
Reactive Extensions API in depth: Contract
WindowsClient:
Concluding "New WPF Features" Series
WindowsClient:
Introduction to TestApi – Part 5: Managed Code Fault Injection APIs
Microsoft Communities
ASP.NET
Channel 8
Channel 9
Channel 10
IIS.NET
Silverlight
TechNet Edge
WindowsClient
Mix Online