Sigma Php Ajax framework, Ajax Components, GUI Builder
May 16, 2012, 11:53:09 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: Checking value of isCheckColumn field  (Read 1240 times)
Donatello
Newbie
*
Posts: 1


View Profile
« on: July 12, 2010, 07:43:50 AM »

Hi guys,

I've been playing around with Sigma grid and so far its been great. However, I think I may have discovered a bug.

How do I determine if the checkbox for a specific row has been checked or not? I'm using the "isCheckColumn : true" option for the first column in my grid and would like to know if a row is checked or not in an event handler such as onRowCheck or onCellClick. Although I have discovered a solution I think the fact that there are some bugs made the procedure unnecessarily complex, please see my code and comments below:

Problem: onRowCheck event - This event handler is never called for some reason. Here is some sample code:



The alternative is to use onCellClick, but here are problems as well:



To get hold of the checked value took a couple of hours for me to figure out. If the onRowChecked event worked then I would have had not reason to try and solve the problem using an alternative method. If the Checked value was passed through the "value" parameter on the onCellClick event then it would not have been a problem as well.
« Last Edit: July 12, 2010, 07:45:27 AM by Donatello » Logged
OKL
Jr. Member
**
Posts: 14


View Profile
« Reply #1 on: July 28, 2010, 12:21:37 PM »

use grid.checkedRows property.
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!