开发者

create components dynamically

开发者 https://www.devze.com 2022-12-12 01:31 出处:网络
I have requirement in AdvancedDataGrid. In Advanced Data Datagrid with columns checkbox,textfield, textarea,button,radiobutton. and ADD Button and SUBMIT Button. When i click on ADD Button, those abo

I have requirement in AdvancedDataGrid.

In Advanced Data Datagrid with columns checkbox,textfield, textarea,button,radiobutton. and ADD Button and SUBMIT Button. When i click on ADD Button, those above all fields are need to add dynamically in next row.If i click 10 times on ADD Button, 10 rows with all above fileds need to be added.

If Have any sample code please forward to开发者_StackOverflow my gmail id:rkcy000@gmail.com.


You should work with the underlying data provider for the adding of new rows. whenever the add button is pressed do

adg.dataProvider.addItem( newItemFromAboveRow );

and the ADG will sort out the display for you.


Create custom item/row renderers. More Using Item Renderers and Item Editors

0

精彩评论

暂无评论...
验证码 换一张
取 消