Declined
Last Updated: 17 Apr 2020 10:48 by ADMIN
Waz
Created on: 11 Apr 2020 04:57
Category: TabStrip
Type: Feature Request
0
TabStrip LoadContentFrom should support Post method
The TabStrip loading from Ajax (LoadFromContent) only supports GET method.   This is shortsighted as quite often some content needs to be delivered via HttpPost.   For the MVC component it should also support sending the model (so a partialView can be returned from the Controller).
1 comment
ADMIN
Veselin Tsvetanov
Posted on: 17 Apr 2020 10:48

Hello Waz,

The TabStrip widget allows you to change the default GET method send to obtain tab content from remote to POST. What has to be done to achieve the desired is to pass an object instead of a string to the contentUrls collection of the widget:

$("#tabstrip").kendoTabStrip({
  contentUrls: [
    null,
    {
      url: "https://demos.telerik.com/kendo-ui/content/web/tabstrip/ajax/ajaxContent1.html",
      cache: true,
      method: "POST",
      data: {
      	test: "test"
      }
    }
  ]
});

Here you could find a small sample implementing the above: https://dojo.telerik.com/Adosorob/3

The same is yet not available in an MVC scenario. Nevertheless, for that case you could follow the suggestion posted in the following forum thread:

https://www.telerik.com/forums/tabstrip---how-to-pass-model-to-partial-views-using-loadcontentfrom#w6JcCoJuO0i2_2AXptLd3Q

Regards,
Veselin Tsvetanov
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.