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.
Syncfusion Feedback

Fields values add extra slash (/) to query string

Thread ID:

Created:

Updated:

Platform:

Replies:

120093 Aug 29,2015 06:12 PM UTC Sep 4,2015 12:09 PM UTC ASP.NET MVC 3
loading
Tags: DropDownList
David Elies
Asked On August 29, 2015 06:12 PM UTC

When specifying the field value for a dropdownlist, It appends a $select statement to the query string used to retrieve the data.  This appends an extra slash to the query string, rendering the request invalid. Is it possible to keep it from appending this slash?  Is it possible to not use the field at all and just let it use the only returned column as both the value and the text?

Harikrishnan P [Syncfusion]
Replied On August 31, 2015 11:58 AM UTC

Hi David,

Thanks for contacting Syncfusion support.

Query: When specifying the field value for a dropdownlist, It appends a $select statement to the query string used to retrieve the data.  This appends an extra slash to the query string, rendering the request invalid.

We are unable to reproduce the reported issue. The ‘$select’ will be added to the query string, only if we use “select” statement to retrieve the data from database, otherwise it will not be added. Also the extra slash (“/”) is not added. Could you please check with the sample in the following location?

Sample Location: Dropdown Sample

In the above sample we have used the “value” filed and select statement to retrieve the value from table. Could you please provide answers for following queries?

The version of Essential studio that you are using?

Could you please provide more information about the query or the code snippets to showcase how you have framed the EJ query and specifying the data source for DropdownList?

If possible, kindly revert back the provided sample based on your application along with the replication procedure to reproduce the issue at our end, which would be more helpful for us to provide a solution at the earliest.

Query: Is it possible to not use the field at all and just let it use the only returned column as both the value and the text?

It is necessary to specify the “field” API while using remote data source. It is not mandatory to specify the “value” field but we need to specify the “text” field. If “value” field is not specified means, then the “text” field will be considered as “value” field.

Please let us know if you have further queries.

Regards,
HariKrishnan

David Cote
Replied On September 3, 2015 07:13 PM UTC

I am having the same issue with 13.2.0.34.  Was hoping you had a solution.

we are not using 'Select'

example code below:
 @Html.EJ().DropDownList(dllName).Datasource(ds => ds.URL(@Url.Action("GetFilterValuesNoData", "Filter", new { id = Model.FilterID }))).EnableAnimation(true).ShowCheckbox(true).Width("140px").Height("28px").Enabled(true).ShowRoundedCorner(true).DropDownListFields(f => f.Text("Text").Value("Value").ID(@Model.FilterName)).EnableIncrementalSearch(true).ClientSideEvents(e => e.CheckChange(@jsFunction)).WatermarkText(@watermarkText).CssClass("content")

The url is being generated as

http://localhost:7081/Filter/GetFilterValuesNoData/113/tableName?$select=patinet_groups,Text,Value,category,imageUrl,imageAttributes,spriteCssClass,htmlAttributes,selected

instead of...

http://localhost:7081/Filter/GetFilterValuesNoData/113

Please advise if there is an issue with the upgrade or we are missing something.  This code was previously working in 13.1

Thanks.


Harikrishnan P [Syncfusion]
Replied On September 4, 2015 12:09 PM UTC

Hi David,


Sorry for the inconvenience.


We are able to reproduce the reported issue (“additional parameters added to the query string in DropdownList”). A support incident to track the status of this issue has been created under your account. Please log on to our support website to check for further updates.

https://www.syncfusion.com/account/login?ReturnUrl=%2fsupport%2fdirecttrac%2fincidents


Regards,

HariKrishnan


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.

Warning Icon 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.Close Icon

;