Class \Prado\Web\UI\ActiveControls\TActiveDataList
TActiveDataList represents a data bound and updatable grid control which is the active counterpart to the original TDataList control.
This component can be used in the same way as the regular datalist, the only difference is that the active datalist uses callbacks instead of postbacks for interaction.
Please refer to the original documentation of the regular counterparts for usage.
Class hierarchy
- \Prado\Web\UI\ActiveControls\TActiveDataList implements IActiveControl
- 
                     \Prado\Web\UI\WebControls\TDataList
                    implements
                            INamingContainer,                             IRepeatInfoUser \Prado\Web\UI\WebControls\TDataList
                    implements
                            INamingContainer,                             IRepeatInfoUser
- 
                     \Prado\Web\UI\WebControls\TBaseDataList \Prado\Web\UI\WebControls\TBaseDataList
- 
                     \Prado\Web\UI\WebControls\TDataBoundControl \Prado\Web\UI\WebControls\TDataBoundControl
- 
                     \Prado\Web\UI\WebControls\TWebControl
                    implements
                            IStyleable \Prado\Web\UI\WebControls\TWebControl
                    implements
                            IStyleable
- 
                     \Prado\Web\UI\TControl
                    implements
                            IRenderable,                             IBindable \Prado\Web\UI\TControl
                    implements
                            IRenderable,                             IBindable
- 
                     \Prado\TApplicationComponent \Prado\TApplicationComponent
- 
                     \Prado\TComponent \Prado\TComponent
| 
            public
                                                             | |
| 
            public
                                                             | |
| 
            public
                                                             | 
                    render(THtmlWriter $writer) : mixed                
                    Renders the repeater.
                     If the repeater did not pass the prerender phase yet, it will register itself for rendering later. Else it will call the renderRepeater() method which will do the rendering of the repeater. | 
| 
            public
                                                             | 
                    setDataSource(array<string|int, mixed>|string|Traversable $value) : mixed                
                    Sets the data source object associated with the repeater control.
                     In addition, the render method of all connected pagers is called so they get updated when the data source is changed. Also the repeater registers itself for rendering in order to get it's content replaced on client side. | 
| 
            protected
                                                             | |
| 
            private
                                                             | 
                    renderDataList(THtmlWriter $writer) : mixed                
                    Renders the repeater by writing a span tag with the container id obtained from {@see getContainerID()}
which will be called by the replacement method of the client script to update it's content.
                    
                 | 
| 
            private
                                                             | 
                    renderPager() : mixed                
                    Loops through all {@see \Prado\Web\UI\ActiveControls\TActivePager} on the page and registers the ones which are set to paginate
the repeater for rendering. This is to ensure that the connected pagers are also rendered if the
data source changed.
                    
                 |