Hi, I'm trying to do the following in RadChart itemdatabound event:
e.seriesItem.Label.TextBlock.Text = String.Format("#Y{#,#}", e.DataItem("mostviewed").ToString()) & " - " & e.DataItem("percentVal")
This causes the page to throw an error, saying that the input string is not in the correct format. If I change string.format to use "#Y", the page runs fine (but obviously my number has no comma formatting!).
I have used "#Y{#,#} with RadChart before to set defaultlabelvalue and it works as expected there so I am confused as to why the above does not work.
Thanks,
Matt
e.seriesItem.Label.TextBlock.Text = String.Format("#Y{#,#}", e.DataItem("mostviewed").ToString()) & " - " & e.DataItem("percentVal")
This causes the page to throw an error, saying that the input string is not in the correct format. If I change string.format to use "#Y", the page runs fine (but obviously my number has no comma formatting!).
I have used "#Y{#,#} with RadChart before to set defaultlabelvalue and it works as expected there so I am confused as to why the above does not work.
Thanks,
Matt