Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
1495
TextField as a function call?
posted

How can I accomplish this.  I get an error saying code blocks are not allowed.

 

<

 

 

 

ig:DataTreeNodeBinding DataMember="AssetTransferList" TextField="<%# ShowText(Eval("AssetName"), Eval("Answer"))%>" ValueField="AssetName" ImageUrlField=""

/>

Parents
  • 3147
    posted

    This is not supported, node bindings should be mapped to a single field in your data source.

    There are a few options to implement such behavior:

     - define node template where you can use such expressions.

     - modify your data source so the TextField data is contained in a single field/property

     - handle the NodeDataBound server-side event and set the node text value programatically

     

    Hope that helps!

Reply Children
No Data