DataSourceRequest.ToODataString not encoding '#' character.

1 Answer 25 Views
Grid
Jstemper
Top achievements
Rank 1
Iron
Jstemper asked on 01 Jul 2021, 03:02 PM
I'm trying to pass a string containing a '<strong>#</strong>' character to an OData api and DataSourceRequest.ToODataString() is not encoding the character.&nbsp; Is it suppose to?

1 Answer, 1 is accepted

Sort by
0
Svetoslav Dimitrov
Telerik team
answered on 06 Jul 2021, 07:37 AM

Hello John,

The ToODataString() method is used to create the portion of the URI after the base URL. A base URL would be the place location the data resides ("https://demos.telerik.com/kendo-ui/service-v4/odata/Orders?") and the ToODataString() method creates the QueryOptions which might include the applied filters, sorts, page size, and skipped items. The ToODataString() method would not encode HTML elements such as the <strong> tag as this is not part of the QueryOptions. 

Could you follow up with some additional details on the need to provide HTML elements to the Data service?

Regards,
Svetoslav Dimitrov
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.

Tags
Grid
Asked by
Jstemper
Top achievements
Rank 1
Iron
Answers by
Svetoslav Dimitrov
Telerik team
Share this question
or