Re: Custom Rendering on CFGRID

2014-01-15 Thread Andrew Scott
If you had this if(data == 'false') then this is comparing the data to a string of false, if you want to check for a true or false then you need to remove the single quotes so that it is. if(data == false) Regards, Andrew Scott WebSite: http://www.andyscott.id.au/ Google+:

Custom Rendering on CFGRID

2014-01-14 Thread Anthony Doherty
Hi Guys, I have this custom rendering applied from this site http://alagad.com/2010/03/31/ask-an-alagadian-how-can-i-style-a-cell-in-lt-cfgrid-gt-based-on-the-data-it-contains/ But its only rendering everything in the first style - it wont change the style based on the IF statement. Below is my

Re: Custom Rendering on CFGRID

2014-01-14 Thread Andrew Scott
Anthony, Have you thought about a few debugging options here? First you could do console.log(data) and see what is contained in the data, the other option is to use the debugging tools in the browser to line debug and see what is happening. Regards, Andrew Scott WebSite:

Re: Custom Rendering on CFGRID

2014-01-14 Thread Anthony Doherty
Hi Andrew Thanks for getting back to me. I found the problem. The if statement did not like the word 'false' so I changed it to a number 1 and it worked. I believe it has something to do with the SQL db but because I inherited the db there was not much I can change Thanks for getting back