using RadGanttView Gives error

4 posts, 0 answers
  1. Deep
    Deep avatar
    2 posts
    Member since:
    Oct 2012

    Posted 25 Oct 2012 Link to this post

    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>
  2. Yana
    Admin
    Yana avatar
    4554 posts

    Posted 26 Oct 2012 Link to this post

    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.

  3. UI for WPF is Visual Studio 2017 Ready
  4. Deep
    Deep avatar
    2 posts
    Member since:
    Oct 2012

    Posted 26 Oct 2012 Link to this post

    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"
  5. Yana
    Admin
    Yana avatar
    4554 posts

    Posted 26 Oct 2012 Link to this post

    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.

Back to Top