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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T13:30:56+00:00 2026-05-23T13:30:56+00:00

I am trying to implement MVVM, and are having issues with moving LoadOnDemand to

  • 0

I am trying to implement MVVM, and are having issues with moving LoadOnDemand to my ViewModel using triggers and RelayCommands, I have the event firing and all,
but as it turns out it is possible to expand a node in the tree without having it selected (i have databound the SelectedItem property in my ViewModel), thus breaking the logic, since the onLoad animation will continue to spin.

If I instead do this:

private void HierarchyTreeControl_LoadOnDemand(
                   Object sender, 
                   Telerik.Windows.RadRoutedEventArgs e){ 
RadTreeViewItem clickedItem = null;  
clickedItem = e.OriginalSource as  RadTreeViewItem;
if (clickedItem != null)  {  
...do load logic

in the code behind file. I have access to the expanding item (clickedItem). What am I missing?

Is it possible to do some sort of binding on the ExandingItem?

Any Help will be appreciated 🙂

  • 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-23T13:30:57+00:00Added an answer on May 23, 2026 at 1:30 pm

    Since you are not using a standard treeview, I cannot be sure this is relevant. But I have previously had success in binding a TreeViewItem’s IsExpanded property to a viewmodel property, in which I loaded items when the value was set to true (and not already loaded).

    Here is a useful link: One more platform difference more-or-less tamed

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

Sidebar

Related Questions

I'm trying to implement a WPF application using MVVM (Model-View-ViewModel) pattern and I'd like
I'm trying to implement Menu in a Window using MVVM pattern. So I have
trying to implement a dialog-box style behaviour using a separate div section with all
I am trying to implement MVVM (Model View ViewModel) pattern for my WinForms application.
I'm writing an MVVM configuration interface, and I'm trying to implement an expand/collapse all
I am currently trying to learn how to implement MVVM using Unity and Caliburn
I'm trying to implement IView for MVVM design pattern, which allows ViewModel to interact
I'm using wpf + mvvm and am trying to implement a conditional converter. Here
Im trying to implement pagination using multiple searching criteria. Supposed I Have student table.
I am trying to implement my first WPF application using an MVVM design pattern.

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.