Kendo Grid Edit Form Not submitting if the any field on the form has html tags as data.

1 Answer 121 Views
Button Editor Form General Discussions Grid
Chhavi
Top achievements
Rank 1
Chhavi asked on 07 Jul 2023, 11:50 AM | edited on 07 Jul 2023, 02:03 PM

Hi,

 

I have a kendo grid, user wants to enter html data in one of the column.

user clicks edit button on the grid row then an edit form opens as popup. This edit form is a model.cshtml with all the fields of the model on it. This edit cshtml does not have any button on it. "Update" button is created on fly.

User enters html data (tags etc) and clicks Update button then it return 401 error. Which I think is because its taking the tags as an injection attack. If user enters normal text then it works fine.

what can do to make the edit form allow submit html tags data? can you please help me?

 

Thanks

CNS

Chhavi
Top achievements
Rank 1
commented on 07 Jul 2023, 02:03 PM

Any idea folks?

1 Answer, 1 is accepted

Sort by
0
Anton Mironov
Telerik team
answered on 12 Jul 2023, 06:44 AM

Hi Chhavi,

Thank you for the details provided.

I made a couple of tests on my side and the behavior is the expected one.

Here is a REPL example:

Type the following as an example in the PopUp Editor form - "Aniseed Syrup <b>test</b>".

The result:

It seems the issue with your application is caused by another part of the implementation. The fastest route to getting you up and running is if you could provide a runnable, isolated, sample project. Examining this project will let us replicate the issue locally and further troubleshoot it.

Looking forward to hearing back from you.

Kind Regards,
Anton Mironov
Progress Telerik

As of R2 2023, the default icon type will be SVG instead of Font. See this blogpost for more information.

Tags
Button Editor Form General Discussions Grid
Asked by
Chhavi
Top achievements
Rank 1
Answers by
Anton Mironov
Telerik team
Share this question
or