PartialView being rendered as text?

2 posts, 0 answers
  1. Tuan
    Tuan avatar
    4 posts
    Member since:
    Apr 2014

    Posted 27 Aug 2019 Link to this post

    I have a partial view that contains a TabStrip and each that contains a grid. The view works, it's currently in a different page and I'd like to move it to a kendo window.

    I've moved it to a kendo window and the window displays great.

    Here's the code that generates my window (please note the variable names have been changed for this).

    var window = $("#window").kendoWindow({
                    content: {
                        url: "/Case/CaseDetail",
                        data: {
                            Daid: Daid,
                            CaseID: CaseID,
                            RecordID: RecordID,
                            CanUserView: cuv,
                            OffenseCount: OffenseCount,
                            CoDefendantCount: CoDefendantCount,
                            VWCount: VWCount,
                            InternalProcessCount: InternalProcessCount,
                            ChargeDispositionCount: ChargeDispositionCount,
                            SentenceCount: SentenceCount,
                            OtherCaseCount: OtherCaseCount
                    actions: [
    //                close: onClose


    The window appears and the tabs are visible, the content of the 1st tab is loaded via an AJAX call that is never executed (so no content) and none of the tabs are functional when I click on it.

    When I look at the page source I can see that the window was rendered as text and all associated javascript is actual text and not, all the scripts related seem to be escaped, here's an example of some rendered content:

    <script type="text/javascript">
        function ProcessErrorO(args) {
            ProcessError(args, 'O_grid_' + '#= RecordID #');


    Any help would be appreciated.


  2. Martin
    Martin avatar
    262 posts

    Posted 29 Aug 2019 Link to this post

    Hello Craig,

    Thank you for the provided code snippet. Attached you will find a sample project which demonstrates a Window with TabStrip as PartialView. The tabs' content are loaded via AJAX call, as requested. Could you please modify the project to reproduce the issue you are experiencing and send it back to me? I will test it locally and provide you with the most appropriate solution.

    I am afraid I did not understand the part about the page source rendered as text. Could you please provide some additional information what did you have in mind?

    I am looking forward to your reply.

    Progress Telerik
    Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
Back to Top