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.
Unfortunately, activation email could not send to your email. Please try again.

Escape property name in column formatting

Thread ID:

Created:

Updated:

Platform:

Replies:

111187 Sep 11,2013 07:58 PM Sep 19,2013 03:10 AM ASP.NET MVC (Classic) 2
loading
Tags: Grid
Jeremy Branham
Asked On September 11, 2013 07:58 PM

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>


Hariharan J V [Syncfusion]
Replied On September 18, 2013 09:17 AM

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.

Hariharan J V [Syncfusion]
Replied On September 19, 2013 03:10 AM

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.

CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.

;