[CLOSED] Gridrow select event

  1. #1

    [CLOSED] Gridrow select event

    Hi there ,

    I have some problems with a rowselect event. I have a gridpanel with rows in codebehind and on each row it should be
    possibele to click an an detailform with the elements from the row is coming up.

    My code to produce the grid looks like this:

    Public Property RowselModel As Ext.Net.RowSelectionModel

    Get

    If (IsNothing(_rowselModel)) Then
                    _rowselModel = New Ext.Net.RowSelectionModel
                    _rowselModel.SingleSelect = True
                    Dim extp As Ext.Net.Parameter = New Ext.Net.Parameter()
                    extp.Name = "row"
                    extp.Value = "record.data"
                    extp.Mode = Ext.Net.ParameterMode.Raw
                    extp.Encode = True
                    _rowselModel.DirectEvents.RowSelect.ExtraParams.Add(extp)
                    _rowselModel.DirectEvents.RowSelect.Delay = 100
                End If
                Return _rowselModel
            End Get
            Set(ByVal value As Ext.Net.RowSelectionModel)
    
            End Set
        End Property
        Private Property GridPanel As Ext.Net.GridPanel
            Get
                If (IsNothing(_gridPanel)) Then
                    _gridPanel = New Ext.Net.GridPanel
                    _gridPanel.ID = "SafeGrid"
                    _gridPanel.Border = True
                    _gridPanel.StripeRows = True
                    _gridPanel.Title = "SafeGrid"
                    _gridPanel.AutoHeight = False ' True 'Please set fixed Height for GridPanel or AutoHeight="true"
                    ' _gridPanel.Height = Unit.Pixel(50)
                    If (_columns IsNot Nothing) Then
                        For Each s As String In _columns
                            _gridPanel.ColumnModel.Columns.Add(GetColumn(s))
                        Next
                    End If
                End If
                _gridPanel.Store.Add(_store)
                _gridPanel.SelectionModel.Add(RowselModel)
                Return _gridPanel
            End Get
            Set(ByVal value As Ext.Net.GridPanel)
    
            End Set
        End Property
    In an other class I will get the RowselectionModel and add register the event




    Protected ReadOnly Property RowSelect As Ext.Net.RowSelectionModel
    Get
    If (_gridPanel.RowselModel IsNot Nothing) Then
    _rowSelModel = _gridPanel.RowselModel
    End If
    Return _rowSelModel
    End Get
    End Property

    AddHandler RowSelect.DirectEvents.RowSelect.Event, SelModelRowSelect


    Protected Sub SelModelRowSelect(ByVal sender As Object, ByVal e As Ext.Net.DirectEventArgs) Handles rsel. ??????


    and at this point there comes my problem. The RowSelectionModel has no event for me.

    Gives it a solution for my problem or another way to get the event, when a cell is selected.

    Hope you can help me.

    Kind regards and a good start in the week
    Elke
    Last edited by geoffrey.mcgill; Aug 31, 2011 at 4:03 AM. Reason: please use [CODE] tags, [CLOSED]
  2. #2
    Sorry I am not sure that clear understood the problem.
    Do you have troubles add handler to direct event in VB?

    See
    http://forums.ext.net/showthread.php...ll=1#post11847
    http://forums.ext.net/showthread.php...he-code-behind
  3. #3
    Hi,

    thanks for the examples. Now it works.

    Have a nice day and kind regards

    Elke

Similar Threads

  1. [CLOSED] DropDownField Select Event
    By SouthDeveloper in forum 1.x Legacy Premium Help
    Replies: 5
    Last Post: Apr 19, 2012, 9:34 AM
  2. How to fire event by row select?
    By mannyk in forum 1.x Help
    Replies: 0
    Last Post: Aug 05, 2010, 9:48 AM
  3. [CLOSED] Is it possible to Select Items of a multi select during ajax event
    By vedagopal2004 in forum 1.x Legacy Premium Help
    Replies: 2
    Last Post: Jul 29, 2010, 6:28 PM
  4. [CLOSED] Pass value of gridrow to page in iframe
    By CSG in forum 1.x Legacy Premium Help
    Replies: 4
    Last Post: Jun 11, 2009, 4:34 PM
  5. A problem about comboBox in a GridRow
    By mcdonald in forum 1.x Help
    Replies: 1
    Last Post: Apr 02, 2009, 12:58 AM

Posting Permissions