void OnDragInfo(object sender, DragDropEventArgs e)
{
if (e.Options.Status == DragStatus.DragComplete) {
e.Handled = true;
}
}
void OnDragQuery(object sender, DragDropQueryEventArgs e)
{
if (e.Options.Status == DragStatus.DragQuery)
{
e.Options.ArrowCue = RadDragAndDropManager.GenerateArrowCue();
}
}
Hello,
I have a question, if I don't set the property of axisY, the default value of AutoRange is 'true' .
Like following example, First I add some plus value to the dataseries , and then I add some minus value to the dataseries.
After that the chart crashes, it just can't show the points I add.
Can you help me to solve the problem? Thank you!
for (int i = 0; i < 6; i++)
{
ChartArea.DataSeries.First().Add(new DataPoint(i, 0.01 * i));
}
for (int i = 6; i < 10; i++)
{
ChartArea.DataSeries.First().Add(new DataPoint(i, -0.01 * i));
}
Dim myDataTable As New DataTable
myDataTable = GetDataTable() 'returns datatable with multiple rows
Me.myRadCarousel.ItemsSource = myDataTable
However, the carousel shows blank images, even though they exist. I double-click on the carousel to get the file name and I get the file name no issue. my datatable contains 1 field (filename)
<
Window.Resources>
<Style TargetType="{x:Type telerik:CarouselDataRecordPresenter}">
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="{x:Type telerik:CarouselDataRecordPresenter}">
<Grid IsHitTestVisible="False" HorizontalAlignment="Stretch"
VerticalAlignment="Stretch">
<Image Source="{Binding Path=Fields[filename].Value}" Height="400" Width="400" />
</Grid>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
</Window.Resources>
private void ExecuteGroupCommand(Object sender, ExecutedRoutedEventArgs e) { | |
telc.RadGridView grid = sender as telc.RadGridView; | |
if (grid != null) { | |
if (grid.CurrentCell != null) { | |
teld.IFieldDescriptor fieldDescriptor = grid.CurrentCell.Column; | |
// determine if a group descriptor for the current cell already exists | |
teld.GroupDescriptor groupDescriptor = grid.GroupDescriptors.FirstOrDefault<teld.GroupDescriptor>( | |
possibleDescriptor => possibleDescriptor.Member.Equals(fieldDescriptor.UniqueName)); | |
// if no group descriptor is found then create one and add it to the group descriptor collection. | |
// if one exists then the grid is already grouped by the selected cell so there is no need to | |
// do it again. | |
if (groupDescriptor == null) { | |
groupDescriptor = new teld.GroupDescriptor(); | |
groupDescriptor.Member = fieldDescriptor.UniqueName; | |
groupDescriptor.SortDirection = System.ComponentModel.ListSortDirection.Ascending; | |
grid.GroupDescriptors.Add(groupDescriptor); | |
} | |
} | |
} | |
e.Handled = true; | |
} |