Questions tagged [composite-controls]

In User Interface frameworks, a composite control is a control _composed_ of other existing child controls.

In User Interface frameworks, a composite control is a control composed of other existing child controls (a control being a UI element that the user can interact with such as a slider or a button).

The idea is create a custom control without having to develop the rendering of the control: it is delegated to the child controls. A composite control can itself be re-used as a child control of a higher composite control, thus making a hierarchy of controls.

.NET reference documentation about composite controls: http://msdn.microsoft.com/en-us/library/aa719968(v=vs.71).aspx

96 questions
0
votes
1 answer

GWT CellBrowser with CompositeCell

I am trying to build a CellBrowser as given below. Week 1 -> Mathematics Week 2 [] Algebra Week 3 [] Trigonometry Science [] Physics [] Chemistry The problem is, I am not able to get the headings…
Jag
  • 89
  • 3
  • 8
0
votes
2 answers

asp.net webforms - composite controls interacting with page controls

I am writing a composite control in c# asp.net as an experiment and would like to have all the instances of my composite control interact with one external control. Is this possible? Things I have tried: option 1: check from within the control…
Evert
  • 8,161
  • 1
  • 15
  • 17
0
votes
1 answer

compositecontrol - user control - different approaches

I have seen this code to create a Login control, I guess instead of writing this code, we can use an .ascx file to create this control. Can someone explains the difference of these two approaches. thanks.…
dotnetrocks
  • 2,589
  • 12
  • 36
  • 55
0
votes
1 answer

Force Event to Fire Internally

In a composite control, how can I make an event fire internally? Ie. I populate with some data, see that it's in the right condition (only one item) and then fire off my item selected event, calling the source page's OnItemSelected event. Thanks,
NikolaiDante
  • 18,469
  • 14
  • 77
  • 117
0
votes
0 answers

Create a composite control for use in .NET Core Windows Forms

I'm building a windows form app using .NET core Is it possible to create a composite (custom) control either in the same project or a separate .NET core project. If "Yes", where can I get some information on how to do it. If "No", can I build a…
ErickTreetops
  • 3,189
  • 4
  • 27
  • 37
0
votes
2 answers

CMS content editor / viewer

One of our users has decided that they need to be able to edit sections of content on our main website and I've been given the task of implementing it. The underlying model is that one or more divs in the page will have their content populated from…
Dave
  • 3,581
  • 1
  • 22
  • 25
0
votes
1 answer

Panel in composite control ignores visibility

I'm building a composite control that renders HTML on a page based on a specified state. If I set up the control, and add it to the ControlCollection for composite, and set the visibility of the control during set up to false it seems to be working…
JadedEric
  • 1,943
  • 2
  • 26
  • 49
0
votes
1 answer

How to store nested CompositeControl properties in ViewState

I have a composite control that has a large number of properties that can be used to style the control. I want to group these properties yet still maintain some of the properties in the ViewState The markup for the control would look like this:…
Chris Herring
  • 3,675
  • 3
  • 33
  • 50
0
votes
1 answer

Custom Composite Control

I've Creted Composite control which has FormView and two custom server control. The Control renders correctly. now when i add control to page from toolbox i want to edit Composite Control's FormView ItemTemplte as we edit ItemTemplate for generic…
r.zarei
  • 1,261
  • 15
  • 35
0
votes
1 answer

Which control to choose? WebControl or CompositeControl that is the question

I'm looking forward to create some customs controls like AutoCompletes, TagClouds and others. To use in my projects as tools without need to worry every time that i need one of them. i saw in This link that i have 2 choices. - WebControl -…
Michel Ayres
  • 5,891
  • 10
  • 63
  • 97
0
votes
2 answers

MaskedEditValidator DisplayMoney doesn't show up in Composite Control

I'm creating a simple composite control that has AJAX functionality. When trying to implement a MaskedEditValidator, the DisplayMoney property doesn't work. The MaskedEdit renders, without the dollar sign attached. Any ideas? Here's my…
BBetances
  • 925
  • 1
  • 14
  • 23
0
votes
1 answer

How do I cache a composite server control?

How would I use the system caching object, HttpContext.Current.Cache to store a custom server control in the cache? Currently I have code that looks like this: string adxkey = string.Format("adxdependency:document:{0}",…
0
votes
3 answers

How to save value across postbacks for a composite control without using viewstate

I have a composite control that has a couple of private fields that reference values in the cache and these private fields are called during the constructor method. Since a string key is used to identify the value in the cache, I must have a way of…
Amanda Kitson
  • 5,477
  • 12
  • 49
  • 73
0
votes
2 answers

Failed to load viewstate composite control

I have a composite control that contains a different set of child controls based on the value of one of it's properties at runtime. Whenever there is a postback, I get the following error: Failed to load viewstate. The control tree into which…
Amanda Kitson
  • 5,477
  • 12
  • 49
  • 73
0
votes
1 answer

Failed to load viewstate with a composite control

I have created a composite control that changes the controls in it based on the value of one of it's properties called "Type". The intent is that once this "Type" property is set, it is not changed again for the life of the control, so the controls…
Amanda Kitson
  • 5,477
  • 12
  • 49
  • 73