Mar 13, 2013, 10:33 AM
[CLOSED] GridPanel Column DirectEvents.Command.Event
I already try to use CommandColumn + GridCommand & Column + ImageCommand, but the event still not fire. please help.
Dim objCmdCol As New Ext.Net.Column
Dim objImgCmd As New Ext.Net.ImageCommand
And
Dim objCmdCol As New Ext.Net.CommandColumn
Dim objImgCmd As New Ext.Net.GridCommand
also failure.
Dim objCmdCol As New Ext.Net.Column
Dim objImgCmd As New Ext.Net.ImageCommand
And
Dim objCmdCol As New Ext.Net.CommandColumn
Dim objImgCmd As New Ext.Net.GridCommand
also failure.
Private Sub LoadGridData()
Dim objExtCol as Ext.Net.Column
objExtCol = New Ext.Net.Column
objExtCol.Text = "Col1"
objExtCol.DataIndex = "test"
GridPanel1.AddColumn(objExtCol)
AddHandler GridPanel1.DirectEvents.Select.Event, AddressOf SelectionRow
''SelectionRow is work
Dim objCmdCol As New Ext.Net.Column
Dim objImgCmd As New Ext.Net.ImageCommand
objImgCmd.Icon = Icon.NoteEdit
objImgCmd.Text = "Edit"
objCmdCol.Commands.Add(objImgCmd)
AddHandler objCmdCol.DirectEvents.Command.Event, AddressOf EditClick
''EditClick Not Work
GridPanel1.ColumnModel.Add(objCmdCol)
End Sub
<DirectMethod()>
Private Sub SelectionRow(sender As Object, e As DirectEventArgs)
Ext.Net.X.Msg.Alert("Msg", "test1").Show()
End Sub
<DirectMethod()>
Private Sub EditClick(sender As Object, e As DirectEventArgs)
Ext.Net.X.Msg.Alert("Msg", "test2").Show()
End Sub
Last edited by Daniil; Mar 19, 2013 at 4:27 AM.
Reason: [CLOSED]