Formatter Types

URLFormatter

This formatter lets you put a link with a URL to a grid column.

It takes optional arguments below:

Option NameDescription
UrlFormat

This is the format of URL. A sample would be "http://www.site.com/{0}" where {0} is the UrlProperty value.

If no format is specified, link will be the value of UrlProperty as is.

If your URL format starts with "~/", it will be resolved to application root. For example, if format is "~/upload/{0}" and your application runs at "localhost:3045/mysite", resulting URL will be "/mysite/upload/xyz.png".

UrlProperty

This is name of the property that will be used to determine link URL.

If not specified, it is the name of the column that this formatter is placed on.

If UrlProperty value starts with "~/" it will be resolved like UrlFormat.

DisplayFormat

This is the display text format of link. A sample would be "click to open {0}" where {0} is the DisplayProperty value.

If no format is specified, link will be the value of DisplayProperty as is.

DisplayProperty

This is name of the property that will be used to determine link text.

If not specified, it is the name of the column that this formatter is placed on.

Target

This is the target of the link. Use "_blank" to open links in a new tab.

results matching ""

    No results matching ""