Telerik Forums
UI for WPF Forum
1 answer
166 views

I am having some trouble setting up drag and drop from a RadGridView to a RadGridView nested in another RadGridView's RowDetails.  

I have picture attached but basically I'd like to be able to drag n drop from the Strategies list to the Optimizations RowDetails list of Strategies.

Thanks in advance for the help! 

Stefan
Telerik team
 answered on 24 Jan 2017
1 answer
243 views

I read your documentation on how to Merge Cells in RadGridView, however, non of the examples you provide worked for me.
Can you please provide a complete simple example/project on how to use this feature to know what I am missing exactly.

Thanks in advance.

Stefan
Telerik team
 answered on 24 Jan 2017
6 answers
224 views

Hello there,

We already manage drag and drop operations fine ​to a RadScheduleView target in an empty slot or on an existing Appointment.  However we ​need to manage a drop event on a given resource on the left-hand side of the Schedule-View (resources displayed vertically here).  I mean in this case, we do not drop on a time slot, but on a resource header.

Just to make it clear : if a drop occurs on a given slot, we can already create an appointment for that slot.  â€‹Now we would like to provide an action "Create Appointment for that resource and find our the time slot automatically based on some business logic".  You see?

So far, it seems the DragDropBehavior.CanDrop() method is not involved when we drag over the resource header on the left side of the ScheduleView.

Thanks

/Sébastien Lacroix

 
Nasko
Telerik team
 answered on 24 Jan 2017
1 answer
286 views
Hi, I'm utilizing telerik's window 8 theme on the windows. But sometimes I would like to display the window as red to indicate it as an error. I would do the follow

Windows8Palette.Palette.AccentColor = Color.FromArgb(0xFF, 0xE0, 0x00, 0x00);

The issue with doing this is that I always have to change it back to the original colour after the window is shown. Any tips on a "better" way to do this. 

Windows8Palette.Palette.AccentColor = Color.FromArgb(0xFF, 0xE0, 0x00, 0x00);
 
RadWindow.Alert(new DialogParameters
{
    Content = new TextBlock { Text = message, MinWidth = 200, MaxWidth = 450, TextWrapping = TextWrapping.Wrap },
    Header = header,
    Theme = new Windows8Theme(),
    Owner = Application.Current.MainWindow
});
 
Windows8Palette.Palette.AccentColor = AppConfiguration.DefaultBlue;
return header;
Lance | Senior Manager Technical Support
Telerik team
 answered on 23 Jan 2017
5 answers
207 views

Hi,

At the moment, one of the columns has no filter. In my model, that column is a collection of strings. For the grid, I append them together separating by a comma. 

Person.cs

Name
Collection<strings> Tags

John Doe, new List("Apples", "Oranges")

In my grid, it appears as "John Doe" in the first column and "Apples, Oranges" in the second column.

In my database, I do have a collection of all the tags, I was wondering if I can create a custom filter such that it'll check if it contains the tags I select to filter by.  

Yoan
Telerik team
 answered on 23 Jan 2017
1 answer
353 views
Hierarchical Grouping and Filtering with TreeView WPF

Hello,

After long searches, I have finally found a way to (somehow) achieve my requirement to display my Resources in some sort of Hierarchical groups, through a TreeView.
This works quite well, as the TreeView can even be seen as a row header in some way.

However, I got some new Requirements.
I need to display my Treeview in another part of my View (or even hide it)
Therefore, I thought, that it might be possible to modify my CustomGroupHeaderContentTemplateSelector to Bind its Content (instead of an empty Content)

<telerik:GroupHeaderTemplateSelector x:Key="CustomGroupHeaderContentTemplateSelector">
    <telerik:GroupHeaderTemplateSelector.HorizontalTemplate>
        <DataTemplate>
            <ContentPresenter Content="{Binding FormattedName}" Height="16" Margin="4"/>
        </DataTemplate>
    </telerik:GroupHeaderTemplateSelector.HorizontalTemplate>
    <telerik:GroupHeaderTemplateSelector.VerticalTemplate>
        <DataTemplate>
            <ContentPresenter Content="" Height="16" VerticalAlignment="Top" />
        </DataTemplate>
    </telerik:GroupHeaderTemplateSelector.VerticalTemplate>
</telerik:GroupHeaderTemplateSelector>

to

<telerik:GroupHeaderTemplateSelector x:Key="CustomGroupHeaderContentTemplateSelector">
            <telerik:GroupHeaderTemplateSelector.HorizontalTemplate>
                <DataTemplate>
                    <ContentPresenter Content="{Binding FormattedName}" Height="16" Margin="4"/>
                </DataTemplate>
            </telerik:GroupHeaderTemplateSelector.HorizontalTemplate>
            <telerik:GroupHeaderTemplateSelector.VerticalTemplate>
                <DataTemplate>
                    <ContentPresenter Content="{Binding}" Height="16" VerticalAlignment="Top" />
                </DataTemplate>
            </telerik:GroupHeaderTemplateSelector.VerticalTemplate>
        </telerik:GroupHeaderTemplateSelector>

       
On Start, the application works (and displays its data) as expected
BUT,
I came across a MAJOR PROBLEM that you can reproduce in attached sample
When you collapse both items of the TreeView - then expand one (look at header of each row) - then collapse it - then expand it again, you can see that the header text has changed in a way I cannot re-enact (take a look at attached pictures)

My questions now are:
What causes this kind of behaviour?
Is there a way I can avoid this Problem?
What do you recommend, to achieve my Requirements?

P.S.: - The sample is one of yours (Telerik), with only the slight change/add of a binding
        - Yes I even tried it with the latest telerik release 2017.1.117
        - As it is still not possible to add a .rar file to a post in your forum I hosted the sample project at onedrive: https://1drv.ms/u/s!AqROZw-XiIMygxUHdEcNdVy83H-y

Yana
Telerik team
 answered on 23 Jan 2017
5 answers
221 views
Is it possible to generate a PropertyGrid on the fly by binding it to an XML string?
If not then what would be a good solution here?
I have a property that return an XML string with attributes and values, I need the attributes to be the property display names and values the property values. Maybe parsing the XML and creating PropertyDefinitions? I'd just like to avoid parsing an XML if PropertyGrid has some way doing it.

Thank you for the help!
Stefan
Telerik team
 answered on 23 Jan 2017
2 answers
745 views

Hi,

I´d like to use the template ERP sample source code in my project study.
where can i dowload it?

Regards,

Yale

Developer

Leandro
Top achievements
Rank 1
 answered on 23 Jan 2017
1 answer
122 views
hello Telerik,
i am not getting the value of checkbox from the grid. sorry to say but i am totally frustrated by searching, i am not able to get the value.
plz, assist me.
I am attaching the Screenshot.
I am not getting the value of checkbox and other cell values
Dilyan Traykov
Telerik team
 answered on 23 Jan 2017
1 answer
251 views

I'm trying to remove the built-in binding of the ESC key to the DiagramCommands.CancelEdit command. I've tried both approaches outlined here:

http://www.telerik.com/forums/override-keyboard-copy-paste-controls

with no success. The first approach successfully registers a new command, but the existing default command is still executed. I need to remove that default behavior.

Both the InputBindings and CommandBindings collections are empty after the diagram has been loaded, so I'm assuming that these default command handlers are stored elsewhere?

Am I approaching this the right way, or is there an easier way to handle this requirement?

 

 

 

Martin Ivanov
Telerik team
 answered on 23 Jan 2017
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
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?