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 7180695
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T17:24:08+00:00 2026-05-28T17:24:08+00:00

So I have a header table, Client, and each client have some customer. I

  • 0

So I have a header table, Client, and each client have some customer.

I am using entity framework to query the data.

When the TreeView display, it will only show Clients, then until user Expands the Client node, it will query its Customers.

Is it possible to do this in MVVM + Linq?

I could do something dynamic, like click on first node and fire event for query, dynamic add tree item etc.

But I want to know if that’s possible to do it in easier way?
Like by take advantage of lazy loading with Linq, databinding etc? Is it possible?

  • 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-05-28T17:24:09+00:00Added an answer on May 28, 2026 at 5:24 pm

    Is it possible, absolutely, but how you do it depends on a lot of different factors which are specific to your project.

    What I would do is create a custom TreeViewItem class that takes your entity (probably via the constructor) and then when it’s Items property is called, it could call your entity’s Clients navigation property. If you have lazy loading properly configured, it would be here that the actual database query happened.

    If you had 10 nodes, and the user only expanded node 2, then only that node’s query would ever fire.

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

Sidebar

Related Questions

I am trying to have a table header, in a seperate div stay in
I would like to have a table header that looks like the image shown
In a table of mine I have the table header, th which have two
I have a gradient image as a background for a table header(9x18pix). This image
Let's say I have the following HTML: <table id=foo> <th class=sortasc>Header</th> </table> <table id=bar>
I have this bit of JavaScript... 15 $('.ajax_edit_address').each(function() { 16 $(this).ajaxForm({ 17 target: $(this).parents('table.address').find('tr.address_header').children(':first'),
When I have a table view with some sections which have their own headers
I am trying to create a csv file of some data. I have wrote
I have inherited a PHP project and the client is wanting to add some
I have the following code on the client side for retrieving data from the

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.