Sigma Php Ajax framework, Ajax Components, GUI Builder
May 23, 2012, 08:54:39 PM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News:
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: Button in Treegrid with action?  (Read 1165 times)
benji
Jr. Member
**
Posts: 5


View Profile
« on: December 16, 2009, 03:10:04 AM »

Hello all i start programming with you tool and now i am on my first porblem.
I created a Treegrid and set the type of 1 row to type = button and the buttons will display in the treegrid.
Now i want to give these buttons a function but i dont know how to do a " .onClick" function in my treegrid are there any ideas?

if there are any questions tell me i will answer all as soon as possible
Thank you very much

benji
Logged
linb
Administrator
Hero Member
*****
Posts: 435


View Profile
« Reply #1 on: December 16, 2009, 04:40:39 AM »

There's a onClickCell(profile, cell, e, src) event. You can try it.
Logged
benji
Jr. Member
**
Posts: 5


View Profile
« Reply #2 on: January 15, 2010, 08:33:11 AM »

yeah i saw the function but i didn“t understand how to use a function on 1 cell not @ all

idea?

thx benji
Logged
linb
Administrator
Hero Member
*****
Posts: 435


View Profile
« Reply #3 on: January 15, 2010, 08:41:41 PM »

1. use onClickCell event
onClickCell:function(profile, cell, e, src) {
    if(cell is your cell){
        do something
    }
}

or

2. your inner 'event' function in your cell dir:

cells:[{...},{caption:'your cell', event:function(){
  do somthing
}},{...}]
Logged
benji
Jr. Member
**
Posts: 5


View Profile
« Reply #4 on: January 18, 2010, 02:04:19 AM »

1. use onClickCell event
onClickCell:function(profile, cell, e, src) {
    if(cell is your cell){
        do something
    }
}

or

2. your inner 'event' function in your cell dir:

cells:[{...},{caption:'your cell', event:function(){
  do somthing
}},{...}]

thank you
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.7 | SMF © 2006-2008, Simple Machines LLC Valid XHTML 1.0! Valid CSS!