Ext.NET 4.2: itemlongpress missing from view?

  1. #1

    Ext.NET 4.2: itemlongpress missing from view?

    Seems like itemlongpress is no longer defined, but regarding the Extjs documentation it should be there.
  2. #2
    Hello @sveins12!

    Yes it is defined. I tried with both NuGet (publicly released) and latest GitHub snapshot (available for premium subscribers) and I could successfully expand grid view's listener ItemLongPress.

    Any chance you are referencing the wrong GridView from System.Web.UI.WebControls.GridView instead of Ext.Net.GridView?

    But yes, I am missing this listeners from the documentation at http://docs.ext.net/. Maybe just a matter of refreshing them.
    Fabrício Murta
    Developer & Support Expert
  3. #3
    I am using a TreePanel with locking:
    @{
        var x = Html.X();
    }
    @(
        x.TreePanel()
            .Root(
                x.Node()
                    .Text("Root")
                    .Children(
                        x.Node()
                            .Text("Test")
                    )
            )
            .EnableLocking(true)
            .LockedGridConfig(
                x.TreePanel()
                        .View(x.TreeView()
                        .Listeners(l => l.ItemLongPress.Handler = "alert('itemlongpress');"))                                        
            )
            .ColumnModel(        
                x.TreeColumn()
                    .Text("Tree column")
                    .DataIndex("text")
                    .Width(300)                
            )        
    )

Similar Threads

  1. Replies: 0
    Last Post: Dec 17, 2013, 6:17 AM
  2. Replies: 7
    Last Post: Mar 27, 2013, 6:07 AM
  3. Replies: 1
    Last Post: Feb 01, 2012, 2:35 PM
  4. Replies: 2
    Last Post: Jan 10, 2012, 6:35 AM
  5. Switch from tree view to accordian view?
    By jaydwire2 in forum 1.x Help
    Replies: 1
    Last Post: Sep 18, 2009, 4:31 PM

Posting Permissions