Maybe this would seems a kind of silly question, but it really bothers these days, the problem is that
I use the kendo MVVM to databind the viewmodel to the grid control. i use the template to display to content.
ViewModel name is 'DetailModel', kendo grid control name is 'DetailGrid'
the template is "<span title='" + FieldName + "'> #: " + (FieldName == null) ? ' ' : FieldName + "# </span>" which FieldName is a Viewmodel field name dynamically get from server after a post request to the server. for simplicity, I omit the code for post request.
It works fine when the FieldName is 'normal' character (alphanumeric, 'FirstName', 'LastName' etc), but it fails when the FieldName contains '&', for example 'Family&WoldTeam'. I
The scenario is kind of the same in http://jsfiddle.net/cJmE2/315/ link with 'firstDate' field name changes to 'first&Date' .
Is there a work around for this problem ? i don't think that we can escape that '&' character or html encode in the field name with '&&' or '&'
I would greatly appreciate if you can come up with some suggestion or solution .
Thanks & Regards