![]() |
|
||||||||||
|
|||||
|
[+3 04.02.07]
[+4 17.02.07] |
Видать мне проще сразу спросить.
1. Как записуются данные в формы ? 2. Как записать значения в отдельные ячейки ? 3. Как изменить цвет ряда ? P.S. Help рулит, но не всегда.
__________________
Thr ArT |
|
|||||
|
DataGrid.addColumn() Adds a column to the data grid.
DataGrid.addColumnAt() Adds a column to the data grid at a specified location. DataGrid.addItem() Adds an item to the data grid. DataGrid.addItemAt() Adds an item to the data grid at a specified location. DataGrid.editField() Replaces the cell data at a specified location. DataGrid.getColumnAt() Gets a reference to a column at a specified location. DataGrid.getColumnIndex() Gets a reference to the DataGridColumn object at the specified index. DataGrid.removeAllColumns() Removes all columns from a data grid. DataGrid.removeColumnAt() Removes a column from a data grid at a specified location. DataGrid.replaceItemAt() Replaces an item at a specified location with another item. DataGrid.spaceColumnsEqually() Spaces all columns equally.
__________________
Best regards, Boris Petrov |
|
|||||
|
также посмотри- Using styles with the DataGrid component
__________________
Best regards, Boris Petrov |
|
|||||
|
[+3 04.02.07]
[+4 17.02.07] |
какую роль выполняет DataProvider ? и DataHolder ? (т.е. связь между DataGrid и DP&DH)
Заранее сенки
__________________
Thr ArT |
|
|||||
|
Usage
myDataGrid.dataProvider Description Property; the data model for items viewed in a DataGrid component. DataGrid component (Flash Professional only) 269 The data grid adds methods to the prototype of the Array class so that each Array object conforms to the DataProvider API (see DataProvider.as in the Classes/mx/controls/listclasses folder). Any array that is in the same frame or screen as a data grid automatically has all the methods (addItem(), getItemAt(), and so on) needed for it to be the data model of a data grid, and can be used to broadcast data model changes to multiple components. In a DataGrid component, you specify fields for display in the DataGrid.columnNames property. If you don’t define the column set (by setting the DataGrid.columnNames property or by calling DataGrid.addColumn()) for the data grid before the DataGrid.dataProvider property has been set, the data grid generates columns for each field in the data provider’s first item, once that item arrives. Any object that implements the DataProvider API can be used as a data provider for a data grid (including Flash Remoting recordsets, data sets, and arrays). Use a grid’s data provider to communicate with the data in the grid because the data provider remains consistent, regardless of scroll position. Example The following example creates an array to be used as a data provider and assigns it directly to the dataProvider property: grid.dataProvider = [{name:"Chris", price:"Priceless"}, {name:"Nigel", price:"cheap"}]; The following example creates a new Array object that is decorated with the DataProvider API. It uses a for loop to add 20 items to the grid: myDP = new Array(); for (var i=0; i<20; i++) myDP.addItem({name:"Nivesh", price:"Priceless"}); list.dataProvider = myDP
__________________
Best regards, Boris Petrov |
|
|||||
|
даа...
аля иниверсальный поиск по пдф файлу с использованием терминального доступа...))) скачай хелп с сайта макромедии.. там всё прекрасно расписанно и юзать удобно...
__________________
Best regards, Boris Petrov |
|
|||||
|
[+3 04.02.07]
[+4 17.02.07] |
ну ты гонишь ! ж)
но всеравно сенки. P.s. уже разобрался по хелпу.
__________________
Thr ArT |
|
|||||
|
[+3 04.02.07]
[+4 17.02.07] |
Может кто-то знает в чем бок ?
------------------------------------------------------- myDP = new Array(); for (var i=0; i<20; i++) myDP.addItem({name:"Nivesh"+i, price:"Priceless"}); list.dataProvider = myDP ------------------------------------------------------- ass=list.dataProvider.getItemAt(1).label <----не работает trace(ass) <---undefined Заранее сенкс.
__________________
Thr ArT |
|
|||||
|
тебе же вроде нада сделать таблицу те по сути в датагрид пихануть массив не так??
|
|
|||||
|
[+3 04.02.07]
[+4 17.02.07] |
слушай, ты решил себе набить количество постов ? или ты просто флудишь ?. если не знаешь, то не нужно задавать такие вопросы.
__________________
Thr ArT |
![]() |
![]() |
Часовой пояс GMT +4, время: 10:27. |
|
|
« Предыдущая тема | Следующая тема » |
| Опции темы | |
| Опции просмотра | |
|
|