Telerik Forums
UI for WPF Forum
4 answers
198 views
I have a databound listbox that is bound to a class call Animal.   On another form is several databound listboxes that are different types of animals.  All listboxes use the Animal class.   So what I want to do is when a user grabs an Animal class from the source listbox and drags it over to the form, depending on Animal.Type, only the listbox named the Animal.Type can accept the drop.

I thought maybe I could do this by using DragEnter.  But I can't seem to get the business object out of the data object.  I thought if I could, I could check it, and if it matched the Listbox name, I would enable drop.  If not, I would disable drop on that listbox.  I would do that to all of them.

Is this possible? I have been wrecking my brains and cannot figure out how to get the data out and what property to put it in.  All the examples seem to talk about drag/drop strings.  I have full blown bound objects.

So it is conditionally dropping depending on a property of the object being dragged.
Nick
Telerik team
 answered on 11 Sep 2013
4 answers
574 views
I have a GridViewComboBoxColumn inside a RadGridView. The GridViewComboBoxColumn is bound to a collection of Objects. I need to display different things for the selected option vs the dropdown options. I would like to display one property of the Object in the selection box (object.Name), and another property in the drop down (Object.Description).

I accomplished this in a RadComboxBox before by doing the following:
<telerik:RadComboBox Grid.Row="2" Grid.Column="1" telerik:StyleManager.Theme="Windows8Touch" Margin="5 3 5 0" MaxDropDownHeight="1000"
                     ItemsSource="{Binding MultiCropTypes}" SelectedValue="{Binding SelectedMultiCropTypeId, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged, ValidatesOnDataErrors=True}"
                     Tag="{Binding MultiCropTypes}" SelectedValuePath="PkMultiCropTypeId">
    <telerik:RadComboBox.SelectionBoxTemplate>
        <DataTemplate>
            <TextBlock Text="{Binding Description, UpdateSourceTrigger=PropertyChanged, Mode=TwoWay}" TextTrimming="CharacterEllipsis" />
        </DataTemplate>
    </telerik:RadComboBox.SelectionBoxTemplate>
    <telerik:RadComboBox.ItemTemplate>
        <DataTemplate>
            <TextBlock Text="{Binding Name, UpdateSourceTrigger=PropertyChanged, Mode=TwoWay}" TextWrapping="Wrap" Width="900" Margin="0,0,10,0" />
        </DataTemplate>
    </telerik:RadComboBox.ItemTemplate>
</telerik:RadComboBox>

I can't do this for a GridViewComboBoxColumn because there is no "SelectionBoxTemplate" property.

Is it possible to get the same behavior in a GridViewComboBoxColumn? Any help would be greatly appreciated. Thank you.
Yoan
Telerik team
 answered on 11 Sep 2013
1 answer
176 views
Hi,

i use your OrgChart example which work fine. Now i want to place a button on each node. This button is placed in the
<telerik:RadFluitContentControl.LargeContent> next to the toggle button.

On Click i want to open a database mask for this node. How do i get the selected node in my Click-Event?

Thanks
Best Regards
rene
Petar Mladenov
Telerik team
 answered on 11 Sep 2013
3 answers
225 views
Hello,

Is it possible to use the AggregateFunctions CountFunction with AutoGenerateColumns set to True?  We have a datasource we would like to connect to without defining each columns in xaml or code.  In every example I've always seen the AutoGenerateColumns set to false.  As it stands, if I do the same I will either endup with a "blank" column or duplicate.

Kind regards
Dimitrina
Telerik team
 answered on 11 Sep 2013
1 answer
148 views
Hello, I'm just wondering how you guys achieved this feature in the Annotations Chart demo. It seems like that part of the demo is not in the sample code, so it would be interesting to see your approach for that feature (Picture attached).

Please let me know. Thank you.
Carlo
Top achievements
Rank 1
 answered on 10 Sep 2013
2 answers
94 views
Hello,

I have performance problems with windows 8 theme.
When changing view, my radgridview takes more than  1.5s to appear.
The root cause is not my own code, I don't have this problem with other themes (windows7).

Anyone has had this problem?

Regards,

Laurent
Laurent
Top achievements
Rank 1
 answered on 10 Sep 2013
1 answer
165 views
Hi, I was wondering if there is a sample for the integration of RichTextBox in a DataForm?
I would like to use the RichTextBox as a replacement for a "normal" TextBox in a dataForm.

<telerik:DataFormDataField DataMemberBinding="{Binding Description, Mode=TwoWay}"

Label="Description:"

IsEnabled="True"

IsReadOnly="False"

Description="You can enter any information regarding this server in this field.">

<telerik:DataFormDataField.Content>

<telerik:RadRichTextBox x:Name="rtbDescription" Width="450" Height="200"></telerik:RadRichTextBox>

</telerik:DataFormDataField.Content>

</telerik:DataFormDataField>

I understand I'll have to capture certain events to keep the RichTextBox's document in sync with the bound property, and work with a FormatProvider to import/export the RichTextBox document into/from that property.

However, A sample would be much appreciated.

Thanks a lot

Boby
Telerik team
 answered on 10 Sep 2013
5 answers
477 views
Hi,

i'm looking for a working RadDataForm Validation Example. I use a RadDataForm with a newItemTemplate and some DataFormDataFields.But how can i validate this fields bound to a ObservableCollection?

I like this red border with the little red box beside! No example ist helping me
Thanks for helping me!

BestRegards
rene
Ivan Ivanov
Telerik team
 answered on 10 Sep 2013
0 answers
98 views
Hi,

for my scheduleview i create "GroupHaderResources" out of a database. These resources are employees and each employee is one group.
Grouping and filtering is running fine. if I create an appointment I set the group in my appointment dialog, ok. But is it possible to disable some
groups out of the grouphaderresource on entering the appointment dialog?

Thanks Regards
Rene
ITA
Top achievements
Rank 1
 asked on 10 Sep 2013
8 answers
380 views
We need to create a custom layout algorithm class to be used for laying out nodes. I suppose a certain class needs to be derived, adding necessary logic to handle events such as "new level" etc. Do you have a sample app that demonstrates this technique?

The major reason for our need for a custom layout algorithm is that your algorithms fail for most trees when using custom nodes. It's usually something like 90% correct, but that 10% looks really awful.

More about this issue here:
http://www.telerik.com/community/forums/wpf/diagram/treedown-layout-not-working-for-custom-nodes.aspx

This is what we have now:
var layoutSettings = new TreeLayoutSettings()
                {
                    TreeLayoutType = Telerik.Windows.Diagrams.Core.TreeLayoutType.TreeDown,
                    HorizontalSeparation = 50d,
                    UnderneathVerticalTopOffset = 50d,
                    UnderneathHorizontalOffset = 80d,
                    ComponentsGridWidth = 2000d,
                    UnderneathVerticalSeparation = 100,
                    AnimateTransitions = true
                };
 
                this.treeLayout.Layout(this.diagram, layoutSettings);

Result: See treedown.png.
Wanted: See treedown_extended.png


UPDATE: Why not just give us the source code of TreeLayout.cs. That would help a lot!
Petar Mladenov
Telerik team
 answered on 10 Sep 2013
Narrow your results
Selected tags
Tags
GridView
General Discussions
Chart
RichTextBox
Docking
ScheduleView
ChartView
TreeView
Diagram
Map
ComboBox
TreeListView
Window
RibbonView and RibbonWindow
PropertyGrid
DragAndDrop
TabControl
TileView
Carousel
DataForm
PDFViewer
MaskedInput (Numeric, DateTime, Text, Currency)
AutoCompleteBox
DatePicker
Buttons
ListBox
GanttView
PivotGrid
Spreadsheet
Gauges
NumericUpDown
PanelBar
DateTimePicker
DataFilter
Menu
ContextMenu
TimeLine
Calendar
Installer and Visual Studio Extensions
ImageEditor
BusyIndicator
Expander
Slider
TileList
DataPager
PersistenceFramework
Styling
TimeBar
OutlookBar
TransitionControl
FileDialogs
Book
ToolBar
ColorPicker
TimePicker
MultiColumnComboBox
SyntaxEditor
VirtualGrid
Wizard
ExpressionEditor
NavigationView (Hamburger Menu)
WatermarkTextBox
DesktopAlert
BarCode
SpellChecker
DataServiceDataSource
EntityFrameworkDataSource
RadialMenu
ChartView3D
Data Virtualization
BreadCrumb
LayoutControl
ProgressBar
Sparkline
TabbedWindow
ToolTip
CloudUpload
ColorEditor
TreeMap and PivotMap
EntityFrameworkCoreDataSource (.Net Core)
HeatMap
Chat (Conversational UI)
VirtualizingWrapPanel
Calculator
NotifyIcon
TaskBoard
TimeSpanPicker
BulletGraph
Licensing
WebCam
CardView
DataBar
FilePathPicker
PasswordBox
SplashScreen
Callout
Rating
Accessibility
CollectionNavigator
Localization
AutoSuggestBox
Security
VirtualKeyboard
HighlightTextBlock
TouchManager
StepProgressBar
Badge
OfficeNavigationBar
ExpressionParser
CircularProgressBar
SvgImage
PipsPager
SlideView
AI Coding Assistant
+? more
Top users last month
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?