Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8967827
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T17:19:56+00:00 2026-06-15T17:19:56+00:00

I really have 2 questions. One is it possible and two how to do

  • 0

I really have 2 questions. One is it possible and two how to do it?
RoleModel Type has an IEnumberable of PermissionModel and I’d like that column to show up as a list view. Something similar to this. I’m not sure how to bind the listview to the Permissions object.

@(Html.Kendo().Grid<RoleModel>()
    .Name("RoleGrid")
    .Columns(x =>
                 {
                     x.Bound(p => p.Name).Width(150);
                     x.Bound(p => p.Description).Width(350);
                     x.Bound(p => p.Permissions).ClientTemplate("test");
             }))


<script type="text/x-kendo-template" id="test" >
    @(Html.Kendo().ListView<PermissionModel>().Name("listView").AutoBind(true).ToClientTemplate()                                                                                                                                                                                                                                                               )
</script>
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-15T17:19:57+00:00Added an answer on June 15, 2026 at 5:19 pm

    You you can – you should use the dataBound event of the Grid, to find each cell where you want to put a listview and initialize a listview – to pass the collection with items first you need to retrieve it with the dataItem method of the grid.

    To make it clearer here is an example:

    @(Html.Kendo().Grid<Person>().Name("grid")
            .DataSource(dataSource => dataSource
                .Ajax()
                .Model(model=>model.Id(m=>m.PersonID))
                    .Read(read => read.Action("GetPersons","Home"))                    
            )
    
            .Columns(columns =>
            {
                columns.Bound(c => c.PersonID);
                columns.Bound(c => c.Name).ClientTemplate("test");
                columns.Bound(c => c.Children).ClientTemplate("<div class='myView'></div>");                
            })
            .Events(ev=>ev.DataBound("db"))
        )
    
    <script type="text/javascript">
        function db() {
            $.each($('.myView'), function () {
                var grid = $('#grid').data().kendoGrid;
                var row = $(this).closest('tr');
                var dataItem = grid.dataItem(row);
                $(this).kendoListView({
                    dataSource: { data: dataItem.Children },
                    template: kendo.template($("#templateLV").html())
                });
            });
        }
    </script>
    
    <script type="text/foo" id="templateLV"> 
    #=TestID# testid is a property of the Child model
    </script>
    

    Good luck

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Say that I have two html nodes like this: <div class='node a'>one</div> <input class='node
I have a page that displays two objects and then the user picks one
All the questions I have dug through in the boards aren't really answering a
A newbie question,really. Suppose I have a html table like this: <div id=div1> <table
A really simple shell script question. I have a file with something like this:
I have two separate installs of WebSphere. (Actually one is WebSphere Application Server V6.1
I actually have two questions, I found the answer to the second and didn't
I have grown to really like this fullscreen HTML5/jQuery slideshow: http://eikes.github.com/jquery.fullscreen.js/ As with most
I have two issues here, the second one is irrelevant if the first one
I think this is not really possible but worth asking anyway. Say I have

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.