Home >Web Front-end >JS Tutorial >Two simple ways to load data in Extjs formpanel_javascript skills

Two simple ways to load data in Extjs formpanel_javascript skills

WBOY
WBOYOriginal
2016-05-16 17:16:33934browse

1. The formpanel data source is the same as the grid. Use Form.getForm().loadRecord(row); then the data can be automatically loaded into the corresponding control in the formpanel.
2. The formpanel data source is separate, so after the store is passed to the formpanel page, you need to manually assign value to each control in the formpanel, in the form:

Copy code The code is as follows:

{ fieldLabel : "Note",
value: row.Note,
id: 'Note',
width: 500                                                                                                                                                       
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn