Load different content based on selected id

2 posts, 1 answers
    REIMANN avatar
    3 posts
    Member since:
    Nov 2013

    Posted 18 Feb 2014 Link to this post


    I use a panel bar to load content from a partial view which receives an id to display some informations based on it. Is it possible to reload a pane with different id using? I want something like this:

    function loadDetails(id) {
          // get a reference to the panel bar
          var panelBar = $("#panelbar").data("kendoPanelBar");
          // reload the panel bar
          panelBar.reload("#paneWithAjax", new {id = id});

    The panel bar has a pane  added with 
    .LoadContentFrom("ShowDetails", "Controller", new {id = id})


  2. Answer
    Alexander Popov
    Alexander Popov avatar
    1434 posts

    Posted 20 Feb 2014 Link to this post

    Hello Reimann,

    I am afraid that the reload method currently does not support passing additional parameters to the Ajax request. You could however, make the Ajax request manually and once the data is received, use it to populate the panel element. For example: 
    //Change the first item's content
    $("#panelbar .k-item:first .k-content").html("my ajax response goes here")

    Alexander Popov
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Back to Top