This is a migrated thread and some comments may be shown as answers.

using RadGanttView Gives error

3 Answers 65 Views
GanttView
This is a migrated thread and some comments may be shown as answers.
Deep
Top achievements
Rank 1
Deep asked on 25 Oct 2012, 01:34 PM
Hi,

I am using a class as per your Helpfile.when i use this systax as <local:CustomDragDropBehavior />    .It shows me error  as "Type not found.Verify that you are missing an assemble refernce".How to fix this Problem?

<Page x:Class="Page1"
            xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
            xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
            xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation"
            mc:Ignorable="d"
            d:DesignHeight="300" d:DesignWidth="300"
            Title="Page1">
        <Grid>
        <telerik:RadGanttView x:Name="radchart" TasksSource="{Binding Tasks}" >
<telerik:RadGanttView.DragDropBehavior>
        <local:CustomDragDropBehavior />   
    </telerik:RadGanttView.DragDropBehavior>
            <telerik:RadGanttView.Columns>
                <telerik:ColumnDefinition MemberBinding="{Binding Start}" Header="Start" ColumnWidth="140">
                    <telerik:ColumnDefinition.CellEditTemplate>
                        <DataTemplate>
                            <!--<telerik:RadDateTimePicker SelectedValue="{Binding Start,Mode=TwoWay}" />-->
                        </DataTemplate>
                    </telerik:ColumnDefinition.CellEditTemplate>
                </telerik:ColumnDefinition>
                <telerik:ColumnDefinition MemberBinding="{Binding End}" Header="End" ColumnWidth="140">
                    <telerik:ColumnDefinition.CellEditTemplate>
                        <DataTemplate>
                            <!--<telerik:RadDateTimePicker SelectedValue="{Binding End,Mode=TwoWay}" />-->
                        </DataTemplate>
                    </telerik:ColumnDefinition.CellEditTemplate>
                </telerik:ColumnDefinition>
                <telerik:ColumnDefinition MemberBinding="{Binding Progress}" Header="Progress" ColumnWidth="100">
                    <telerik:ColumnDefinition.CellEditTemplate>
                        <DataTemplate>
                            <!--<telerik:RadNumericUpDown Value="{Binding Progress, Mode=TwoWay}" CustomUnit="%" Minimum="0"
                        Maximum="100" />-->
                        </DataTemplate>
                    </telerik:ColumnDefinition.CellEditTemplate>
                </telerik:ColumnDefinition>
            </telerik:RadGanttView.Columns>
        </telerik:RadGanttView>
    </Grid>
</Page>

3 Answers, 1 is accepted

Sort by
0
Yana
Telerik team
answered on 26 Oct 2012, 08:39 AM
Hi Deep,

Actually "local" should reference the namespace where the CustomDragDropBehavior class is placed. You should define it in the Page tag. Here is an example:

xmlns:local="clr-namespace:Final.Telerik.Windows.Examples.GanttView.Programming.DragResizeConfigurator"


Greetings,
Yana
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

0
Deep
Top achievements
Rank 1
answered on 26 Oct 2012, 08:56 AM
Hello ,
I read your reply.It gives me error in CLr "Undefined clr namespace"

 xmlns:local="clr-namespace:Final.Telerik.Windows.Examples.GanttView.Programming.DragResizeConfigurator"
0
Yana
Telerik team
answered on 26 Oct 2012, 12:55 PM
Hello Deep,

Please find attached an example project demonstrating the approach.

Hope it helps.

All the best,
Yana
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

Tags
GanttView
Asked by
Deep
Top achievements
Rank 1
Answers by
Yana
Telerik team
Deep
Top achievements
Rank 1
Share this question
or