Telerik Forums
UI for WPF Forum
1 answer
111 views
Hi,

I have just upgraded my Telerik from V2010.3.1314.35 to V2011.2.712.35 and I realized that the "DisplayDateChanged" event was remove and I found nothing about this change.

Can someone give me informations about this fix: Why this change was made, In which version this fix took place, etc...???

Thank's
Konstantina
Telerik team
 answered on 20 Sep 2011
1 answer
137 views
Hi,

I've attached an image which hopefully helps me to better describe my issue:
image

I need to enable drag and drop only for and within a single tree item.
So each content element within a tree item should only be drag-&dropable within the same item.
The tree items itself ( cars, trucks, etc.) shoudn't be draggable at all.

I'm having trouble to prevent a content drag&drop operation from one tree item to another one ( e.g (2) => (3)).

I would be glad for some help.

Thanks in advance

Thorsten

Kiril Stanoev
Telerik team
 answered on 20 Sep 2011
1 answer
479 views
 
I am trying to bind the background of the row to a variable in the datasource. I cannot seem to get it to work.
I am including the Xaml and Xaml.cs code to see if you can see what I am missing.

Reason for trying to bind to a variable is because I have a validate button in my program. It will return the ID of the invalid row
that will be highlighted in the treelistview... (the RowBGColor would be set to yellow ).


using System.Collections.ObjectModel;
using System.Windows;
using System.Drawing;
 
namespace TelerikRowBackground
{
    /// <summary>
    /// Interaction logic for MainWindow.xaml
    /// </summary>
    public partial class MainWindow : Window
    {
        private int rowIndex = 1;
        public MainWindow()
        {
            InitializeComponent();
        }
 
        private void Button_Click(object sender, RoutedEventArgs e)
        {
            MessageBox.Show("Highlight Row: " + rowIndex);
             
            //TODO: Change row background for rowIndex to Yellow.
            // And reset previous hightlighted row.
 
 
            if(rowIndex == 3)
            {
                rowIndex = 1;
            }
            else
            {
                rowIndex++;
            }
        }
    }
 
    public class ViewModel
    {
        public ObservableCollection<Model> AllData
        {
            get
            {
                return new ObservableCollection<Model>()
                           {
                               new Model()
                                   {
                                       ID = 1,
                                       RowBGColor = Color.Red,
                                       Property1 = "Test1.1",
                                       Property2 = "Test2.1",
                                       Property3 = "Test3.1",
                                       Children = new ObservableCollection<Model>()
                                                      {
                                                          new Model()
                                                              {
                                                                  ID = 2,
                                                                  RowBGColor = Color.Yellow,
                                                                  Property1 = "Test1.2",
                                                                  Property2 = "Test2.2",
                                                                  Property3 = "Test3.2",
                                                                  Children = new ObservableCollection<Model>()
                                                                                 {
                                                                                     new Model()
                                                                                         {
                                                                                             ID = 3,
                                                                                             RowBGColor = Color.Green,
                                                                                             Property1 = "Test1.3",
                                                                                             Property2 = "Test2.3",
                                                                                             Property3 = "Test3.3"
                                                                                         }
                                                                                 }
                                                              }
                                                      }
                                   }
                           };
            }
        }
    }
 
    public class Model
    {
        public int ID { get; set; }
        public string Property1 { get; set; }
        public string Property2 { get; set; }
        public string Property3 { get; set; }
        public Color RowBGColor { get; set; }
        private ObservableCollection<Model> _children;
        public ObservableCollection<Model> Children
        {
            get { return _children ?? (_children = new ObservableCollection<Model>()); }
            set { _children = value; }
        }
    }
}



<Window x:Class=
"TelerikRowBackground.MainWindow"
        xmlns:local="clr-namespace:TelerikRowBackground" Title="MainWindow" Height="350" Width="525">
    <Window.Resources>
        <local:ViewModel x:Key="MyViewModel"/>
    </Window.Resources>
 
    <DockPanel  DataContext="{StaticResource MyViewModel}">
        <telerik:RadTreeListView Name="radTreeListView1"
                                 DockPanel.Dock="Top"
                                 Margin="5,5,0,0"
                                 AutoGenerateColumns="False"                
                                 ItemsSource="{Binding AllData}"
                                 VerticalAlignment="Top"
                                 HorizontalAlignment="Left"
                                 IsFilteringAllowed="False"
                                 telerik:StyleManager.Theme="Windows7"
                                 EnableColumnVirtualization="True"
                                 EnableRowVirtualization="True"
                                 AutoExpandGroups="True" >
 
            <telerik:RadTreeListView.ItemContainerStyle>
                <Style TargetType="telerik:GridViewRowItem">
                    <Setter Property="Foreground" Value="{Binding RowBGColor}" />
                </Style>
            </telerik:RadTreeListView.ItemContainerStyle>
 
            <telerik:RadTreeListView.ChildTableDefinitions>
                <telerik:TreeListViewTableDefinition ItemsSource="{Binding Children}" />
            </telerik:RadTreeListView.ChildTableDefinitions>
 
            <telerik:RadTreeListView.Columns>
                <telerik:GridViewDataColumn x:Name="idColumn" DataMemberBinding="{Binding ID, Mode=TwoWay }" Header="ID" />
                <telerik:GridViewDataColumn x:Name="prop1Column" DataMemberBinding="{Binding Property1, Mode=TwoWay }" Header="Property 1" />
                <telerik:GridViewDataColumn x:Name="prop2Column" DataMemberBinding="{Binding Property2, Mode=TwoWay }" Header="Property 2" />
                <telerik:GridViewDataColumn x:Name="prop3Column" DataMemberBinding="{Binding Property3, Mode=TwoWay }" Header="Property 3" />
            </telerik:RadTreeListView.Columns>
        </telerik:RadTreeListView>
        <Button DockPanel.Dock="Bottom" Height="50" Click="Button_Click" >Click to Highlight Row</Button>
    </DockPanel>
</Window>
Pavel Pavlov
Telerik team
 answered on 20 Sep 2011
3 answers
326 views
I have two instances where I drag appointment onto the ScheduleView. Once dragging from a listview to the scheduleview, and once when you drag within the scheduleview. In both cases I would like to complete some kind of action after the drop is completed. I have added the appropriate drop info handler but it never gets hit. I do have a custom drag behavior that handles the drop action itself. What do I have to do to make something happen after the drop is completed. OnDropInfo never fires...
//Drag and Drop handlers to the result listview and ScheduleView
            RadDragAndDropManager.AddDragQueryHandler(resultListView, OnDragQuery);
            RadDragAndDropManager.SetAllowDrop(taskBoardScheduleView, true);
            RadDragAndDropManager.AddDropInfoHandler(taskBoardScheduleView, OnDropInfo);
            taskBoardScheduleView.DragDropBehavior = new TaskBoardDragDropBehavior();


protected virtual void OnDropInfo(object sender, DragDropEventArgs e)
        {
            if (e.Options.Status == DragStatus.DropComplete)
            {
                RefreshScheduleView();
                //DateSpan dateSpan = new DateSpan(taskBoardScheduleView.VisibleRange.Start, taskBoardScheduleView.VisibleRange.End);
                //viewModel.GetTaskAppointments(dateSpan);
            }
        }
Valeri Hristov
Telerik team
 answered on 20 Sep 2011
1 answer
73 views
Buen dia, quiciera saber como invocar o llamar a un evento cuando se da click sobre el boton que cambia la vista del mes?

muchas gracias, si exitste dicho evento?
Yana
Telerik team
 answered on 20 Sep 2011
5 answers
174 views
Hey,

I need to customize how theCarousel animate its' items and how it's placing them.
The default behavior looks like this (Bold is the selected item, usually it looks different):

item1, item2, item3, item4, item5.

when you scroll left it looks like this:

item0, item1, item2, item3, item4, 

I need the carousel to behave like this:

item1, item2, item3, item4, item5.

when you scroll left it looks like this:

item1, item2, item3, item4

I hope it is clearn enough.

Ariel
Maya
Telerik team
 answered on 20 Sep 2011
1 answer
55 views
Is function IndexOf in DataItemCollecion using Equals method on objects?
Nedyalko Nikolov
Telerik team
 answered on 20 Sep 2011
0 answers
110 views
I want to put check box before "+" (expande and collapse icon) .
Actually I want a single check box for all child item under "+".
How can I do it ?
saurabh
Top achievements
Rank 1
 asked on 20 Sep 2011
1 answer
135 views
Hello all.

I'm trying to display rowdetails in a nice tabcontrol.
I can display the rowdetails without any flaw using this method, but only if my grid is not wrapped in a tabcontrol:

XAML

<telerik:RadGridView.RowDetailsTemplate>
                <DataTemplate x:Name="TrackGrid">
                      <telerik:RadGridView Name="innerGrid"></telerik:RadGridView>
                </DataTemplate>
</telerik:RadGridView.RowDetailsTemplate>

Code

Dim club As New .Album
club = TryCast(RadGridView1.SelectedItem, Album)
 
Dim innerDataGrid As RadGridView = TryCast(e.DetailsElement, RadGridView)
innerDataGrid.ItemsSource = Track.GetAll(club.AlbumID)

As i work in VB, and i'm just switching  to WPF, i can't seem to find some decent exaples how to do this action while using a tabcontrol in my rowdetails. So what i need is to wrap my grid in a radtabcontrol, and then get the same output, in a tab, like this

<telerik:RadGridView.RowDetailsTemplate>
                <DataTemplate x:Name="TrackGrid">
                    <telerik:RadTabControl>
                        <telerik:RadTabItem>
                           <telerik:RadGridView Name="innerGrid"></telerik:RadGridView>
                        </telerik:RadTabItem>
                    </telerik:RadTabControl> 
                </DataTemplate>
</telerik:RadGridView.RowDetailsTemplate>

I'm looking towards your answer to this.

Greetings

Dimitrina
Telerik team
 answered on 20 Sep 2011
0 answers
107 views
Hi,

I had a requirement like this. I am having a radgridview in which I want a functionality like I should be able to insert a new row on Insert button click at whatever location I required like...

1. Below the selected row.
2. Above the selected row.

Can u please suggest me how to implement this...? Waiting for ur response...!!!

Thanks
Prakash.
Siva Prakash
Top achievements
Rank 1
 asked on 20 Sep 2011
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
PersistenceFramework
DataPager
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
Cynthia
Top achievements
Rank 1
Iron
Toby
Top achievements
Rank 3
Iron
Iron
Iron
Danielle
Top achievements
Rank 1
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Iron
yw
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Cynthia
Top achievements
Rank 1
Iron
Toby
Top achievements
Rank 3
Iron
Iron
Iron
Danielle
Top achievements
Rank 1
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Iron
yw
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?