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:474301
More Search Options
RSS Available
Matching Posts
Personalizing complex properties of web controls
I'd like to personalize complex properties of web controls. For example, say I have a control that inherits from TreeView with nodes defined. I'd like to make the nodes persistable, because I'd like to put my control in a DeclarativeCatalogPart in a CatalogZone. When I add the control from the catalog, I'd like the nodes entered at design time available at run time. I'd appreciate any ideas on how I can do this. Thanks, Sentha
Posted to
Web Parts and Personalization
(Forum)
by
sentha
on 7/27/2004
Re: TreeView does not respect Width/Height settings; does not display scrollbars
Thank you so much!! That works. For my control that inherits from TreeView, I overrode the following methods: public override void RenderBeginTag(HtmlTextWriter writer) { writer.Write(String.Format("\n<div style='height:{0}px;width:{1}px;overflow:scroll;'>", Height.Value, Width.Value)); } public override void RenderEndTag(HtmlTextWriter writer) { writer.Write("\n</div>"); }
Posted to
Getting Started
(Forum)
by
sentha
on 7/27/2004
TreeView does not respect Width/Height settings; does not display scrollbars
The TreeView control does not seem to respect the Width and Height properties and always stretches to display all the nodes. How can I get it to use scroll bars if all of the content cannot be displayed in the area specified by the Width and Height properties? To reproduce: Add a TreeView control to your webform, set it's width property to say 50 px, then add a node with a really long Text property. I'm creating a control that inherits from the TreeView control, so I welcome any suggestions for solving
Posted to
Getting Started
(Forum)
by
sentha
on 7/26/2004
Re: Getting TreeView to postback when node is checked/unchecked
This works!! Thanks!!! I'm writing a control that inherits from TreeView. I can set the "onclick" attribute of the control to the name of a javascript function that I render like this: Attributes["onclick"] = "javascript:postbackOnCheck(event)"; My javascript function reads like this for netscape interoperability: function postbackOnCheck(e) { var isNav = (window.navigator.appName.toLowerCase().indexOf("netscape")>=0); var o; if (isNav && e != null
Posted to
Master Pages, Themes and Navigation Controls
(Forum)
by
sentha
on 7/23/2004
Re: Getting TreeView to postback when node is checked/unchecked
Thank you both for the suggestions! This would be useful if I can figure out how to do this programmatically from a server control. I have a server control inheriting from TreeView. I want to enable postbacks on it when checked. I can render the javascript function, etc., but I can't figure out a way to set the "onclick" event to the javascript function. I'd appreciate any suggestions. Thanks, Sentha
Posted to
Master Pages, Themes and Navigation Controls
(Forum)
by
sentha
on 7/23/2004
Getting TreeView to postback when node is checked/unchecked
Hi, How can I get TreeView to postback whenever a node with a checkbox is checked/unchecked? With the IE webcontrols, I could do this with the AutoPostBack property. With the Whidbey TreeView, I don't see a similar property. Thanks, Sentha Sivabalan
Posted to
Master Pages, Themes and Navigation Controls
(Forum)
by
sentha
on 7/22/2004
Page 1 of 1 (6 items)
Channel 9:
Channel 9 Live at PDC09: Dr Jeff Norris, NASA
Channel 10:
Flickr Drive Integrates Flickr into Windows Explorer
Channel 10:
Playfire: A Growing Network for Gamers
Channel 10:
Find the Top iPhone Apps with Bing (Yes, Really!)
Channel 10:
Xbox to Become Emergency Alert System
Channel 10:
Progression of the Iconic Background
WindowsClient:
ASP.NET AJAX 4.0 Data Binding on MSDN Magazine
WindowsClient:
Don’t miss out..
TechNet Edge:
Improving Collaboration with SharePoint - Tech Focus December 2009 Part 1
Channel 9:
Channel 9 Live at PDC09: Scott Guthrie
Channel 10:
Get Discounted Concert Tickets at the New Windows Section 7
Channel 10:
Get Bing Wallpapers on the iPhone
Channel 10:
Bing Gets a New Toolbar
ASP.NET:
More on medium trust: what permission are you missing?
Channel 9:
Channel 9 Live at PDC09: Bob Muglia
WindowsClient:
Adventures With Windows Azure Diagnostics
Mix Online:
Adventures With Windows Azure Diagnostics
Channel 9:
Channel 9 Live at PDC09: Ray Ozzie
Channel 9:
Coding4Fun: DrinkTendr
Channel 9:
TWC9: Scott Hanselman, John Galloway, Bing, parallel unit tests, more
Microsoft Communities
ASP.NET
Channel 8
Channel 9
Channel 10
IIS.NET
Silverlight
TechNet Edge
WindowsClient
Mix Online