Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 8695

Re: Table - add row dynamically, formatter issue

$
0
0

Hi Omri,

 

Try to move the formatter function next to path inside parts definition. That should fix it.

 

bindProperty("value", {

                        parts: [

                                {path : "tblModel>anotherText",

                                formatter : function(anotherText) {

                                if ((anotherText!=null) && (anotherText.trim().length>0)) {

                                    return "X" + anotherText;

                                } else {

                                    return anotherText;

                                }

                            }}

                        ],

 

 

                    // What is wrong with the formatter?

                    /*formatter : function(anotherText) {

                        if ((anotherText!=null) && (anotherText.trim().length>0)) {

                            return "X" + anotherText;

                        } else {

                            return anotherText;

                        }

                    }*/

 

Here's the jsbin: http://jsbin.com/gikoxejagidu/1/edit

 

Regards,

Kimmo


Viewing all articles
Browse latest Browse all 8695

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>