EasyUI Forum
October 19, 2025, 07:39:54 AM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News:
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: onContentMenu doesn't work with treegrid when idField isn't "id"  (Read 8602 times)
kirin
Newbie
*
Posts: 1


View Profile Email
« on: January 13, 2015, 05:27:57 AM »

If the treegrid's idField set to not equal "id", the event onContentMenu catched row is null, so program doesn't know user right click on which row.

env: V1.4.1
« Last Edit: January 13, 2015, 05:38:56 AM by kirin » Logged
jarry
Administrator
Hero Member
*****
Posts: 2300


View Profile Email
« Reply #1 on: January 13, 2015, 08:22:24 AM »

If you want to retrieve a row from the treegrid component, you must set the 'idField' property that should be unique in the current page rows.
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!