11 Answers, 1 is accepted
RadTreeMap can be used in Silverlight 4. You have to make sure you are using the Silverlight 4 DLLs, otherwise your project wont work.
Log into your Telerik account and navigate to your products page. Select the "Download: Installer and other resources" button for the RadControls for Silverlight. You'll see a section that contains the binaries for the controls. You want the one that is labeled "Silverlight 4- DLLs only"
Good luck,
Lancelot
Thanks for your info.
Can I bind the labelpath as a hyperlink and also add button? and its actions?
Also, is there drill down treemap in telerik?
Like If I click parent, have to navigate child treemap.
Regards,
MohanRajP
RadTreemap allows you to specify a custom item template for your nodes (items with children) and your leaves (items without children). In your TypeDefinition add ItemTemplate like this:
<
telerik:TypeDefinition
TargetTypeName
=
"Folder"
ValuePath
=
"Size"
LabelPath
=
"Name"
ChildrenPath
=
"Children"
ToolTipPath
=
"Size"
>
<
telerik:TypeDefinition.ItemTemplate
>
<
telerik:HierarchicalDataTemplate
ItemsSource
=
"{Binding Children}"
>
<
HyperlinkButton
Content
=
"{Binding Label}"
/>
</
telerik:HierarchicalDataTemplate
>
</
telerik:TypeDefinition.ItemTemplate
>
</
telerik:TypeDefinition
>
Now all of the Folders will use a hyperlink button to display their label. I have attached a sample app that demonstrates this approach.
Regards,
Yavor
the Telerik team
Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.
Thanks, its working fine. what about itemtemplace has two items when I tried it throws error like can't have more than one item.
1)
<
telerik:HierarchicalDataTemplate
ItemsSource
=
"{Binding Children}"
>
<
HyperlinkButton
Content
=
"{Binding Label}"
/>
<image x:name="imgchk" source="..\image1"/>
</
telerik:HierarchicalDataTemplate
>
I need a solution like this, is it possible in telerik treemap, please refer the attach
2) Also any legend control for Treemap, I have to change the color depth through this control by manually.
3) Min and Max range of ValueBrushColorizer value how to handle in code behind ie., textbox values or any other control.
1) You can put more items in your data template if you place them in a panel. You can find more information on panels in MSDN.
2) Currently we don't provide a legend control for treemaps, so it is up to you to create one.
3) All colorizers can be created and set-up in code behind.
Yavor
the Telerik team
Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.
Thanks Yavor, and 2 more quetions for my requirements,
1. Can we fire click event on each items? and have to get the object what clicked / selected item on the event?
2. Can we used Breadcrumb with Treemap?
Thanks & Regards,
MohanRajP
1) You can enable selection by setting the IsSelectionEnabled to True and hooking up the SelectionChanged event.
2) Yes, breadcrumb and treemap can work together. I have prepared for you a small demo application that shows how to connect them.
Yavor
the Telerik team
Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.
Yes, I can selection event through isselection true, but I can't get the selected object in that, is there any problem?
You can get the selected item from the selection changed event arguments like this:
private
void
treeMap1_SelectionChanged(
object
sender, Telerik.Windows.Controls.TreeMap.SelectionChangedRoutedEventArgs e)
{
MessageBox.Show(e.SelectedItem !=
null
? e.SelectedItem.ToString() :
"{null}"
);
}
Yavor
the Telerik team
Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.
I need to change radgridview filter icon color through fill or something. I done for header filter icon thorugh filtering dropdown template but same not applicable for filtering row filter. what will be the control template ?
can you please guide?
It will be better if you post your grid questions in the RadGridView category. In this way the community will be able to answer your or check the answer provided.
Regards,Vlad
the Telerik team
Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.