This is a migrated thread and some comments may be shown as answers.

format date before sending to server

5 Answers 74 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Fernando
Top achievements
Rank 1
Fernando asked on 06 Jan 2020, 07:21 PM
I am using the grid wrap with a date type column, however when using the filter in that column, I send the value of the date in format: Wed Jan 08 2020 00:00:00 GMT-0400 (hora de Bolivia) how can i change the format?

5 Answers, 1 is accepted

Sort by
0
Martin
Telerik team
answered on 08 Jan 2020, 06:35 PM

Hello Fernando,

I will need some additional time to come up with a possible approach. I will get back to you as soon as I have more information to share.

Thank you for your patience.

Regards,
Martin
Progress Telerik

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
0
Fernando
Top achievements
Rank 1
answered on 08 Jan 2020, 09:43 PM
please be aware of any information
0
Martin
Telerik team
answered on 09 Jan 2020, 02:11 PM

Hello Fernando,

Thank you again for your patience. Please take a look at this Stackblitz example to see how the format we send to the server, as it seems to differ from the one you mentioned (Wed Jan 08 2020 00:00:00 GMT-0400).

Otherwise, you should be able to change the format by using the parameterMap function.

Let me know if you need any further assistance.

Regards,
Martin
Progress Telerik

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
0
Fernando
Top achievements
Rank 1
answered on 09 Jan 2020, 04:11 PM
The problem I see with this is that first the filter operators are lost and what happens if I am not in position 0 and I have more columns to filter? I have to be able to send all the columns with filters to my server
0
Martin
Telerik team
answered on 13 Jan 2020, 03:01 PM

Hello Fernando,

My apologies for sending a wrong example, that was not the one I wanted to share with you.

Please take a look at this Stackblitz sample to see the date format that is sent by the widget by default as an ISOstring, which is recommended so that it would be easily recognized by the server. You can see that it differs from the one you are sending (Wed Jan 08 2020 00:00:00 GMT-0400). Could you please provide information how do you manage to send that Date Format? Feel free to modify the example if necessary. Could you also please share in what format would you wish to send the filter date format, so that I could check if it is possible?

I am looking forward to your reply.

Regards,
Martin
Progress Telerik

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Tags
Grid
Asked by
Fernando
Top achievements
Rank 1
Answers by
Martin
Telerik team
Fernando
Top achievements
Rank 1
Share this question
or