CodeVerge.Net Beta


   Item Entry   Register  Login  
Microsoft News
Asp.Net Forums
IBM Software
Borland Forums
Adobe Forums
Novell Forums




Can Reply:  No Members Can Edit: No Online: Yes
Zone: > Asp.Net Forum > microsoft_downloads.css_friendly_control_adapters Tags:
Item Type: Date Entered: 5/22/2006 10:47:31 AM Date Modified: Subscribers: 0 Subscribe Alert
Rate It:
NR
XPoints: N/A Replies: 2 Views: 49 Favorited: 0 Favorite
3 Items, 1 Pages 1 |< << Go >> >|
"pyrobri" <>
NewsGroup User
Turn of CSS Adapter for selected controls5/22/2006 10:47:31 AM

0

Hi,

Just a quick question i am sure should be very easy.
I am using the CSS adapter to format a horizontal menu on my master page.
On some pages i also have a tree view control, i would like to turn off the CSS adapters for this tree view and revert back to the standard controls for it. i.e. i would like to format the view using just a skin i created previously.
The question is how do i turn off the adapter for this control?
I have no TreeView CSS file in my themes folder and and have tried both setting the cssSelectorClass to nothing and removing the cssSelectorClass completely but the TreeView will still not display my skin or any of the default 'auto format' styles. The only thing i can think of is that the adapter still has some control over it somewhere?

Regards


==========================
www.netneighbourhood.co.uk
"Russ Helfand"
NewsGroup User
Re: Turn of CSS Adapter for selected controls5/22/2006 4:27:23 PM

0

The classes that are being adapted are listed in App_Browsers\CSSFriendlyAdapters.browser.  Try editing that file by removing all of the elements that look like this:

      <adapter controlType="System.Web.UI.WebControls.TreeView"
               adapterType="CSSFriendly.TreeViewAdapter" />

That will configure your site so that it no longer attempts to adapt instances of the TreeView class.

However, the problem is harder to solve if you want your site to sometimes adapt TreeView... but not always.  Currently, the kit doesn't support that sort of hybrid situation.


Russ Helfand
Groovybits.com
"pyrobri" <>
NewsGroup User
Re: Turn of CSS Adapter for selected controls5/23/2006 6:31:22 PM

0

Hi, thanks for the tip, in the end i had more of less figured myself that they couldn't be turned off individually so went ahead and reproduced my tree view in CSS instead :o)

Cheers


==========================
www.netneighbourhood.co.uk
3 Items, 1 Pages 1 |< << Go >> >|


Free Download:













imageset.custom

asp.net sitemapdatesource question

added wizardstep not in sidebar

problem with masterpage

treeview with custom icons on leafs

how do i load an iframe into a contentholderplace from a masterpage?

sitemap provider for menu control

request.form not works in masterpage's childpage content.

cycling throguh root nodes.

asp.net 2.0 menu expand clickable area

hyperlink in masterpage

asp.net menu control under xhtml

creating a side menu

unable to pass the string to a stored procedure

masterpage, dynamic relatively positioned content, panel: missing scrollbars

how to maintain a static webpage even during postbacks when a single usercontrol is loaded based on tabstrip selection

populate the menu from the database

inheriting master pages

masterpage not refrshing properly

problems with positioning text and controls in masterpage and contentplace holder

sitemappath, multilanguage, web.sitemap and virtual directories

javascript in content pages

opening page in new window from a master page's child page

web sitemap menu control issues

how to have master page and content page in different projects

contentplaceholder in <head> section of master page

question in 70-528 exam: all devices use the same master page

subiinks in asp. net menu control

how to disable content inside masterpages.

tree view node expansion

retrieve master page value via javascript in children pages

css for master

error in masterpage

skin, can have onmouseover?

can only inherit system.web.ui.masterpage in master pages? so how do i access variables in my classes

customising navigation menu.

div background-color not going all the way across screen for firefox

treeview and removing nodes

treeview & sitemapdatasource

treeview control

unexpected end of file looking for </iframe> tag

master page and default button problem

changing theme dynamically for the application from content page.

treeview change selected node event

problem creating wizard dynamically please help

menu question

access value from user control

master.master.someproperty from page of a nested master fails at runtime (sometimes)

refresh a content page without refreshing master page

masterpage.master not found in from subdirectory

   
  Privacy | Contact Us
All Times Are GMT