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

Timeline not showing/generated in Razor Pages with RCL

1 Answer 107 Views
Timeline
This is a migrated thread and some comments may be shown as answers.
n/a
Top achievements
Rank 1
n/a asked on 19 Mar 2020, 12:01 PM

I have a kendo timeline in a razor page defined in a Razor Class Library.

it all works as expected when the RCL is referenced from an AspNet Core MVC project but nothing is generated or shown when referenced from a Razor Pages project. 

Am I missing something ?

NB: I am using one .cshtml file to render the page

1 Answer, 1 is accepted

Sort by
0
Tsvetomir
Telerik team
answered on 24 Mar 2020, 09:38 AM

Hi Craigh, 

In case the Kendo UI TimeLine is bound to a remote data source, then, it would be expected the configuration to not be interchangeable between MVC and RazorPages. In RazorPages, sending a forgery token with every request is mandatory. Here is an example setup:

.Read(r => r.Url("/TimeLine/TimeLineOperations?handler=Read").Data("forgeryToken")

<script>
    function forgeryToken() {
        return kendo.antiForgeryTokens();
    }
</script>

 

Regards,
Tsvetomir
Progress Telerik

Progress is here for your business, like always. Read more about the measures we are taking to ensure business continuity and help fight the COVID-19 pandemic.
Our thoughts here at Progress are with those affected by the outbreak.
Tags
Timeline
Asked by
n/a
Top achievements
Rank 1
Answers by
Tsvetomir
Telerik team
Share this question
or