We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
close icon

Escape property name in column formatting

If I'm adding a format string that contains a property name, it always substitutes the value of the property even if there are no curly brackets around it.
 
The following example produces the wrong markup.
 

.Column(cols =>
{
cols.Add(c => c.Id);
cols.Add(c => c.EnvironmentId).Format("<a rel='nofollow' href='Environments?Id={EnvironmentId}'>Environment</a>");
}

 

For example, it will produce -
<a rel='nofollow' href='Environments?1=1'>Environment</a>

rather than -
<a rel='nofollow' href='Environments?Id=1'>Environment</a>


2 Replies

HJ Hariharan J V Syncfusion Team September 18, 2013 01:17 PM UTC

Hi Jeremy Branham,

Thanks for using Syncfusion products.

Sorry for the delay.

We will consider this as a issue. We will create incident for this query and update the details you on one business day(September 19,2013).

Please let us know if you need any further assistance.

Regards,
Hariharan J.V.


HJ Hariharan J V Syncfusion Team September 19, 2013 07:10 AM UTC

Hi Jeremy Branham,

Thanks for your patience.

We have created incident 113365 for the above query. We suggest you to followup this incident for further details.

Please let us know if you need any further assistance.

Regards,
Hariharan J.V.

Loader.
Live Chat Icon For mobile
Up arrow icon