Questions tagged [livebindings]

LiveBindings is a data-binding feature supported by both the VCL and FireMonkey in RAD Studio XE2 and later versions.

LiveBindings in RAD Studio

139 questions
20
votes
1 answer

Need bidirectional LiveBindings between a control and an object

In Delphi XE2 LiveBindings, I need to bind a VCL control of any type to a property of any type on an arbitrary (non-component) object. I can do this unidirectionally. But I need to do it bidirectionally. Let's say I want to bind a…
Phil Gilmore
  • 1,286
  • 8
  • 15
18
votes
3 answers

Observers property in TComponent

Hi Delphi XE2 TComponent has a new "Observers" property. Unfortunately the help entries for this are empty. Does anybody know what this new property is good for and how to use it? Edit: Well i know that it is related to LiveBindings, but I would…
iamjoosy
  • 3,299
  • 20
  • 30
10
votes
1 answer

LiveBindings - TList bound to TStringGrid

I have the following example set of code, how can I bind the Data list elements to the TStringGrid using LiveBindings. I need bi-directional updates so that when the column in the grid is changed it can update the underlying TPerson. I have seen…
Robert Love
  • 12,447
  • 2
  • 48
  • 80
8
votes
2 answers

Monitoring lists using LiveBindings

I've been trying to find a generic way to notify a UI control of changes in a list. For example, when an object is added to a list I want it added automatically to the listbox. If an object is removed from the list, I want it removed automatically…
Cobus Kruger
  • 8,338
  • 3
  • 61
  • 106
7
votes
1 answer

How to use live binding to bind blob field to TImage control?

I am using Delphi XE2 to write a VCL win32 application. Delphi XE2 support live binding. I load sample Biolife.xml into a TClientDataSet instance. I able to bind a TEdit control to dataset's string field: Species Name: object BindLinkEdit11:…
Chau Chee Yang
  • 18,422
  • 16
  • 68
  • 132
6
votes
2 answers

How to show more than 200 rows in TStringGrid using LiveBindings?

I have a TDataSource that is backed by a TClientDataset bound to a TStringGrid. I did this by right-clicking on the grid, selecting "Link to DB Datasource...", and selecting the DataSource. This setup the LiveBindings for me. When I run the…
Marcus Adams
  • 53,009
  • 9
  • 91
  • 143
6
votes
1 answer

Usage for LiveBinding

I don't understand LiveBinding's purpose. I would like to know which are the cases in which LiveBinding is most valuable. Embarcadero's manual describes it: "LiveBindings is a data-binding feature supported by both the VCL and FireMonkey frameworks…
Gabriel
  • 20,797
  • 27
  • 159
  • 293
4
votes
0 answers

Livebinding interfaces in delphi

I created a small project using Delphi FireMonkey platform to try out the new live bindings feature. I want to populate TListBox with items TList and I use BOCollection example. BindList.FormatExpressions[0] has values similar to the ones in…
Avo Muromägi
  • 1,563
  • 1
  • 12
  • 21
4
votes
0 answers

Firemonkey and Livebindings performance with databases

In Firemonkey, i found Livebindings engine extremely slow when binding grids with databases. It takes more than 30 seconds to fill up a grid with 5000 records and 10 columns. I tried both TBindDBGridLink and TBindGridLink and results are the same.…
Xenon
  • 179
  • 2
  • 14
4
votes
2 answers

It is possible to do something like XE2 LiveBindings in D2010?

It's factible or it uses some compiler technology only available in XE2 ? I just want to bind (bidirectional) a TEdit.Text property to a object function that returns a string in code (I don't need designer components or expression…
pragmatic_programmer
  • 3,566
  • 3
  • 29
  • 36
4
votes
2 answers

Is it possible to bind (using live-bindings) multiple components to an (non component) object?

I've got an object, let's call it Controller which is NOT a component, it has an enabled property. Can I use live-bindings to say bind it to the enabled properties of some components on a form? i.e if the enabled property of my component changes,…
Steve
  • 6,382
  • 3
  • 41
  • 66
4
votes
2 answers

How to call the refreshing of data-aware (live-binding) component in FireMonkey?

I have a TListView linked in LiveBindings with a TFDMemTable. I load data in the FDMemTable using LoadFromFile (I have for example 20 record). When I delete a record from the FDMemTable, the RecordCount is decreased but the TListView is not…
Alain V
  • 311
  • 3
  • 17
4
votes
0 answers

How to populate a user-defined column in an FMX TGrid by LiveBindings

I am trying to create a TCalendarEdit containing column inside a grid component in the following way. type TDatecell = class(TCalendarEdit) end; TDateColumn = class(TColumn) private function CreateCellControl: TStyledControl;…
asd-tm
  • 3,381
  • 2
  • 24
  • 41
4
votes
1 answer

How to make TProgressColumn work when used with LiveBindings and datasets

My goal is to have a TGrid with several columns, connected to a TClientDataSet via LiveBindings. One of the columns is of type TProgressColumn. The grid displays the data, but the progress bar column shows nothing (i.e. 0% progress). The…
iPath ツ
  • 2,468
  • 20
  • 31
4
votes
1 answer

LiveBinding value can not be set by code

There is a TToolbar, which has it's value bound to a TText.Text. If I change the TToolbar value, the TText.Text is changed as well. So far everything works ok. If I set the TToolbar value manual, the Binding does not affect: The TToolbar value…
BitBumper
  • 369
  • 1
  • 10
1
2 3
9 10