Telerik Forums
UI for WPF Forum
4 answers
597 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
183 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
246 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
154 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
102 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
173 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
495 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
103 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
411 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
1 answer
232 views
Hi,

we use the RadDiagram as OrgChart. In your Example you have one CEO (Andrew Fuller) the next two Persons are President QA (Jeremy Boather) and President Dev. Dept. (Steven Buchanan).

Is it possible to have perhaps two CEO with one President in the next step? Or Two Presidents with one employee for each?
How must the xml file look like?

thanks
Best Regards
Rene
Pavel R. Pavlov
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
NavigationView (Hamburger Menu)
Wizard
ExpressionEditor
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
Callout
PasswordBox
SplashScreen
Localization
Rating
Accessibility
CollectionNavigator
AutoSuggestBox
Security
VirtualKeyboard
HighlightTextBlock
TouchManager
StepProgressBar
Badge
OfficeNavigationBar
ExpressionParser
CircularProgressBar
SvgImage
PipsPager
SlideView
AI Coding Assistant
InlineAIAssistant
+? more
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?