WPF Xaml using RadTreeListView with GroupedBy
up vote
0
down vote
favorite
At this moment I'm trying to use two collections in a RadTreeListView.
I have provided some code under, which I've used RadTreeView and managed to create something similar with what I want to achieve with RadTreeListView.
Since the items in the collection that I want to view contains multiple columns, I thought it would be more clever to use RadTreeListView instead.
You can see from the code under I've hard-coded two first items CategoryList1 and CategoryList2 it into the TreeView. This was done in order to make each item contain different items collection. What I've managed so far is to just populate one collection into the RadTreeListView, without any structure. I want to group this collection into a root level called CategoryList1. After expanding the CategoryList1 item in the RadTreeListView, I want to show all Items, but grouped by stores. The item has name and store as property. How can I achieve this in a RadTreeListView? My items is in a non-hierarchical, which means that all the items are just listed in the collection with each items properties.
In short; I want to use a RadTreeListView and display the data like this:
(Hard-coded item with header which hold the collection1 like shown in the code provided under) CategoryList1 ->
expanding CategoryList1 -> returns GroupedBy stores from the Item Collection1 ->
Expanding a store returns items the store contain.
Thanks, sorry for such a bad explanation. Please tell me if something is still fuzzy about my explanation.
<telerik:RadTreeView >
<telerik:RadTreeViewItem Header="CategoryList1" ItemsSource="{Binding CategoryCollection1}" >
<telerik:RadTreeViewItem.ItemTemplate>
<DataTemplate>
<TextBlock Text="{Items}" />
</DataTemplate>
</telerik:RadTreeViewItem.ItemTemplate>
</telerik:RadTreeViewItem>
<telerik:RadTreeViewItem Header="CategoryList2" ItemsSource="{Binding CategoryCollection2}" >
<telerik:RadTreeViewItem.ItemTemplate>
<DataTemplate>
<TextBlock Text="{Binding Item}" />
</DataTemplate>
</telerik:RadTreeViewItem.ItemTemplate>
</telerik:RadTreeViewItem>
</telerik:RadTreeView>
wpf xaml
add a comment |
up vote
0
down vote
favorite
At this moment I'm trying to use two collections in a RadTreeListView.
I have provided some code under, which I've used RadTreeView and managed to create something similar with what I want to achieve with RadTreeListView.
Since the items in the collection that I want to view contains multiple columns, I thought it would be more clever to use RadTreeListView instead.
You can see from the code under I've hard-coded two first items CategoryList1 and CategoryList2 it into the TreeView. This was done in order to make each item contain different items collection. What I've managed so far is to just populate one collection into the RadTreeListView, without any structure. I want to group this collection into a root level called CategoryList1. After expanding the CategoryList1 item in the RadTreeListView, I want to show all Items, but grouped by stores. The item has name and store as property. How can I achieve this in a RadTreeListView? My items is in a non-hierarchical, which means that all the items are just listed in the collection with each items properties.
In short; I want to use a RadTreeListView and display the data like this:
(Hard-coded item with header which hold the collection1 like shown in the code provided under) CategoryList1 ->
expanding CategoryList1 -> returns GroupedBy stores from the Item Collection1 ->
Expanding a store returns items the store contain.
Thanks, sorry for such a bad explanation. Please tell me if something is still fuzzy about my explanation.
<telerik:RadTreeView >
<telerik:RadTreeViewItem Header="CategoryList1" ItemsSource="{Binding CategoryCollection1}" >
<telerik:RadTreeViewItem.ItemTemplate>
<DataTemplate>
<TextBlock Text="{Items}" />
</DataTemplate>
</telerik:RadTreeViewItem.ItemTemplate>
</telerik:RadTreeViewItem>
<telerik:RadTreeViewItem Header="CategoryList2" ItemsSource="{Binding CategoryCollection2}" >
<telerik:RadTreeViewItem.ItemTemplate>
<DataTemplate>
<TextBlock Text="{Binding Item}" />
</DataTemplate>
</telerik:RadTreeViewItem.ItemTemplate>
</telerik:RadTreeViewItem>
</telerik:RadTreeView>
wpf xaml
add a comment |
up vote
0
down vote
favorite
up vote
0
down vote
favorite
At this moment I'm trying to use two collections in a RadTreeListView.
I have provided some code under, which I've used RadTreeView and managed to create something similar with what I want to achieve with RadTreeListView.
Since the items in the collection that I want to view contains multiple columns, I thought it would be more clever to use RadTreeListView instead.
You can see from the code under I've hard-coded two first items CategoryList1 and CategoryList2 it into the TreeView. This was done in order to make each item contain different items collection. What I've managed so far is to just populate one collection into the RadTreeListView, without any structure. I want to group this collection into a root level called CategoryList1. After expanding the CategoryList1 item in the RadTreeListView, I want to show all Items, but grouped by stores. The item has name and store as property. How can I achieve this in a RadTreeListView? My items is in a non-hierarchical, which means that all the items are just listed in the collection with each items properties.
In short; I want to use a RadTreeListView and display the data like this:
(Hard-coded item with header which hold the collection1 like shown in the code provided under) CategoryList1 ->
expanding CategoryList1 -> returns GroupedBy stores from the Item Collection1 ->
Expanding a store returns items the store contain.
Thanks, sorry for such a bad explanation. Please tell me if something is still fuzzy about my explanation.
<telerik:RadTreeView >
<telerik:RadTreeViewItem Header="CategoryList1" ItemsSource="{Binding CategoryCollection1}" >
<telerik:RadTreeViewItem.ItemTemplate>
<DataTemplate>
<TextBlock Text="{Items}" />
</DataTemplate>
</telerik:RadTreeViewItem.ItemTemplate>
</telerik:RadTreeViewItem>
<telerik:RadTreeViewItem Header="CategoryList2" ItemsSource="{Binding CategoryCollection2}" >
<telerik:RadTreeViewItem.ItemTemplate>
<DataTemplate>
<TextBlock Text="{Binding Item}" />
</DataTemplate>
</telerik:RadTreeViewItem.ItemTemplate>
</telerik:RadTreeViewItem>
</telerik:RadTreeView>
wpf xaml
At this moment I'm trying to use two collections in a RadTreeListView.
I have provided some code under, which I've used RadTreeView and managed to create something similar with what I want to achieve with RadTreeListView.
Since the items in the collection that I want to view contains multiple columns, I thought it would be more clever to use RadTreeListView instead.
You can see from the code under I've hard-coded two first items CategoryList1 and CategoryList2 it into the TreeView. This was done in order to make each item contain different items collection. What I've managed so far is to just populate one collection into the RadTreeListView, without any structure. I want to group this collection into a root level called CategoryList1. After expanding the CategoryList1 item in the RadTreeListView, I want to show all Items, but grouped by stores. The item has name and store as property. How can I achieve this in a RadTreeListView? My items is in a non-hierarchical, which means that all the items are just listed in the collection with each items properties.
In short; I want to use a RadTreeListView and display the data like this:
(Hard-coded item with header which hold the collection1 like shown in the code provided under) CategoryList1 ->
expanding CategoryList1 -> returns GroupedBy stores from the Item Collection1 ->
Expanding a store returns items the store contain.
Thanks, sorry for such a bad explanation. Please tell me if something is still fuzzy about my explanation.
<telerik:RadTreeView >
<telerik:RadTreeViewItem Header="CategoryList1" ItemsSource="{Binding CategoryCollection1}" >
<telerik:RadTreeViewItem.ItemTemplate>
<DataTemplate>
<TextBlock Text="{Items}" />
</DataTemplate>
</telerik:RadTreeViewItem.ItemTemplate>
</telerik:RadTreeViewItem>
<telerik:RadTreeViewItem Header="CategoryList2" ItemsSource="{Binding CategoryCollection2}" >
<telerik:RadTreeViewItem.ItemTemplate>
<DataTemplate>
<TextBlock Text="{Binding Item}" />
</DataTemplate>
</telerik:RadTreeViewItem.ItemTemplate>
</telerik:RadTreeViewItem>
</telerik:RadTreeView>
wpf xaml
wpf xaml
asked Nov 22 at 16:55
user6870932
add a comment |
add a comment |
active
oldest
votes
Your Answer
StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53435445%2fwpf-xaml-using-radtreelistview-with-groupedby%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Some of your past answers have not been well-received, and you're in danger of being blocked from answering.
Please pay close attention to the following guidance:
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53435445%2fwpf-xaml-using-radtreelistview-with-groupedby%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown