<
Window
x:Class
=
"RadControlsWpfApp1.MainWindow"
xmlns:telerik
=
"http://schemas.telerik.com/2008/xaml/presentation"
Title
=
"MainWindow"
Height
=
"350"
Width
=
"525"
telerik:RadDragAndDropManager.DragQuery
=
"Window_DragQuery"
>
<
Grid
>
<
Grid.RowDefinitions
>
<
RowDefinition
/>
<
RowDefinition
/>
</
Grid.RowDefinitions
>
<
telerik:RadGallery
>
<
telerik:RadGalleryItem
telerik:RadDragAndDropManager.AllowDrag
=
"True"
Image
=
"/RadControlsWpfApp1;component/PDF-04.png"
></
telerik:RadGalleryItem
>
</
telerik:RadGallery
>
<
Image
Source
=
"/RadControlsWpfApp1;component/PDF-04.png"
Grid.Row
=
"1"
telerik:RadDragAndDropManager.AllowDrag
=
"True"
/>
</
Grid
>
</
Window
>
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;
namespace RadControlsWpfApp1
{
/// <
summary
>
/// Interaction logic for MainWindow.xaml
/// </
summary
>
public partial class MainWindow : Window
{
public MainWindow()
{
InitializeComponent();
}
private void Window_DragQuery(object sender, Telerik.Windows.Controls.DragDrop.DragDropQueryEventArgs e)
{
MessageBox.Show("draged");
}
}
}
Hi All
I had implemented INotifyDataError for my project it works fine for all column except the one in DataTemplate.(Error add to collection but it doesn't show in GridView)
<telerik:RadGridView x:Name="grvData"
ItemsSource="{Binding AllData, Mode=TwoWay}"
SelectedItem="{Binding SelectedData, Mode=TwoWay}"
IsFilteringAllowed="False"
ShowGroupPanel="False"
AutoGenerateColumns="False"
ShowInsertRow="True"
CanUserDeleteRows="False"
IsSynchronizedWithCurrentItem="True"
ActionOnLostFocus="None" BeginningEdit="grvData_BeginningEdit"
Helper:EventFocusAttachment.ElementToFocus="{Binding ElementName=grvDataMaster}"
Grid.Column="1">
<telerik:RadGridView.Columns>
<telerikGrid:GridViewColumn Header="کل تسعير ارز" Width="150">
<telerik:GridViewColumn.CellTemplate>
<DataTemplate>
<TextBlock>
<TextBlock.Text>
<MultiBinding Converter="{StaticResource NameConverter}" ConverterParameter="FormatNameValue">
<Binding Path="ExchangeKolCode"/>
<Binding Path="ExchangeKolName"/>
</MultiBinding>
</TextBlock.Text>
</TextBlock>
</DataTemplate>
</telerik:GridViewColumn.CellTemplate>
<telerik:GridViewColumn.CellEditTemplate>
<DataTemplate>
<Controls:LookUp LookUpItemsSource="{Binding DataContext.KolLookUpItems, RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type UserControl}}}"
LookUpId="{Binding ExchangeKol,Mode=TwoWay}"
LookUpName="{Binding ExchangeKolName,Mode=TwoWay}"
LookUpCode="{Binding ExchangeKolCode,Mode=TwoWay}" />
</DataTemplate>
</telerik:GridViewColumn.CellEditTemplate>
</telerikGrid:GridViewColumn>
</telerik:RadGridView>