cancel
Showing results for 
Search instead for 
Did you mean: 

Table Lead_Select event not fired

former_member182374
Active Contributor
0 Kudos

Hi All,

I have a table control in my WebForm.

I set the SelectionMode property to "SINGLE" but when I click a row, a postback is occuring but the code of the

Lead_Select event is not executed.

What do I need to set in order to execute the Lead_Select event?

Here is a code snippet:


Dim tr As TableRow
tr = New TableRow
tr.Key = "A"

Dim c1 As TableBodyCell
c1 = New TableBodyCell(Table1, tr, 0)
c1.TableCellContent = New TextView("Row0 Column0")
tr.Cells.Add(c1)

c1 = New TableBodyCell(Table1, tr, 1)
c1.TableCellContent = New TextView("Row0 Column1")
tr.Cells.Add(c1)

Table1.Items.Add(tr)

Private Sub Table1_LeadSelect(ByVal sender As System.Object, ByVal e As SAP.Web.UI.Controls.Table.LeadSelectEventArgs) Handles Table1.LeadSelect
	Write("Event Fired")
End Sub

Also, For populating the table I'm not using data bind, I'm using a "for" loop.

Portal version is EP6 SP15, PDK version is 2.

Thanks,

Omri

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Omri,

It is indeed a bug. Please open a bug for that issue.

For now, a possible work around can be to create a DataTable manually, set it as the DataSource of the Table control and call the DataBind() method.

Please tell me if this works for you and if so, please close this ticket and open a bug.

Thanks, Reshef

former_member182374
Active Contributor
0 Kudos

Thanks Reshef

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Omri,

It seems like using data binding would have solved lots of your problems.

So I'm curious... why <b>aren't</b> you using data binding? Can you describe the general scenario in context?

Regards,

Ofer

former_member182374
Active Contributor
0 Kudos

Hi Ofer,

Actually, the reason I don't use data binding is a matter of habit (and obviously a bad habit ).