hi,
I build a abmtable on the extrasidebar, and build abmcheckbox component in the table.
but all clicked event doesn't raised.
all events not response!
any suggestion,thanks!
add:I add a abmlist on the extrasidebar, clicked event be raised.
maybe it is abmtable component's bug!
I build a abmtable on the extrasidebar, and build abmcheckbox component in the table.
but all clicked event doesn't raised.
B4X:
Dim sb As ABMSideBar = page.GetSidebar("extrasidebar")
sb.Content.AddRows(3,True,"").AddCells12(1,"")
sb.Content.BuildGrid
Dim table_control As ABMTable
table_control.InitializeScrollable(page,"table_control",False,False,True,Array As Int(side_width,side_width,side_width,side_width),"")
table_control.SetHeaders(Array As String("id","name","ask","show"))
sb.Content.Cell(1,1).AddComponent(table_control)
B4X:
Dim sb As ABMSideBar = page.GetSidebar("extrasidebar")
Dim table_control As ABMTable=sb.Content.Component("table_control")
Dim ask_all As ABMCheckbox
ask_all.Initialize(page,"ask_all","all",True,"")
Dim show_all As ABMCheckbox
show_all.Initialize(page,"show_all","all",True,"")
table_control.AddRow("firs_line",Array As Object("","",ask_all,show_all))
B4X:
Sub table_control_clicked(PassedRowsAndColumns As List)
Dim tblCellInfo As ABMTableCell = PassedRowsAndColumns.Get(0)
Dim sidebar As ABMSideBar=page.GetSideBar("extrasidebar")
Dim table As ABMTable=sidebar.Content.Component("table_control")
Dim message=table.GetString(tblCellInfo.Row,3)
Log(message)
End Sub
B4X:
Sub ask_all_clicked(target As String)
Log(target)
End Sub
Sub show_all_clicked(target As String)
Log(target)
End Sub
all events not response!
any suggestion,thanks!
add:I add a abmlist on the extrasidebar, clicked event be raised.
maybe it is abmtable component's bug!
Last edited: