Pass value to controller

2 posts, 0 answers
  1. AppDev
    AppDev avatar
    7 posts
    Member since:
    Mar 2015

    Posted 26 Sep 2016 Link to this post

              .Items(panelbar =>
                      //.Action("Membership", "ICAPTeam").Data("getentityId")
                      .LoadContentFrom("Membership", "ICAPTeam", new { entityid = 18 })
                      .HtmlAttributes(new { id = "ictMembership", @class = "PanelBarFont" })
                      .LoadContentFrom("AgentResult", "ICAPTeam")
                      .HtmlAttributes(new { id = "ictAgent", @class = "PanelBarFont" })
                      .Text("Agent Association");
                      .LoadContentFrom("Proxy", "ICAPTeam")
                      .HtmlAttributes(new {id = "ictProxy", @class = "PanelBarFont"})
                      .LoadContentFrom("Contacts", "ICAPTeam")
                      .HtmlAttributes(new {id = "ictContacts", @class = "PanelBarFont"})


    Given this panelbar how can I set the value of entityid using JS?

    Why don't the action and loadcontentfrom panelbar methods have a data property that allow setting parameters for the controller action?



  2. Veselin Tsvetanov
    Veselin Tsvetanov avatar
    1240 posts

    Posted 28 Sep 2016 Link to this post

    Hi Travis,

    As I mentioned in the support ticket that you have opened on the same topic, the ​LoadContentFrom action of the PanelBar does not take data parameter (or data function) because of the nature of the widget. The PanelBar is considered to be a navigation widget, while the data functions are usually implemented for editors and data management widgets.

    In case you have any further questions, I would suggest you to continue this discussion in the support ticket and close this forum thread.

    Veselin Tsvetanov
    Telerik by Progress
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Back to Top