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

ValidatesOnDataErrors

1 Answer 73 Views
TreeListView
This is a migrated thread and some comments may be shown as answers.
Yonggu Kang
Top achievements
Rank 1
Iron
Yonggu Kang asked on 08 Mar 2011, 01:26 PM
Hi Telerik team,

I have no luck to display validation error mark whatever setting is.
My xaml is as follows. Pls have a look and let me what is wrong.

<telerik:RadTreeListView x:Name="taskTreeList" Grid.Column="2" ItemsSource="{Binding Path=Model}" Style="{StaticResource treeListStyle}"
                               SelectedItem="{Binding Path=SelectedRow,Mode=TwoWay}"  ValidatesOnDataErrors="InViewMode"
                                      telerik:RadDragAndDropManager.AllowDrop="True" IsDragDropEnabled="True" DragCueItemTemplate="{StaticResource TaskLineTemplate}">
               <telerik:RadTreeListView.ChildTableDefinitions>
                   <telerik:TreeListViewTableDefinition ItemsSource="{Binding Path=ChildTasks}" />
               </telerik:RadTreeListView.ChildTableDefinitions>
               <telerik:RadTreeListView.Columns>
                   <telerik:GridViewDataColumn Header="업무 절차" IsReadOnly="True" DataMemberBinding="{Binding Path=TaskName}" TextAlignment="Left" Width="0.65*" HeaderTextAlignment="Center" ValidatesOnDataErrors="InViewMode"/>
                   <telerik:GridViewCheckBoxColumn Header="최초 시작업무" DataMemberBinding="{Binding Path=InitTask,Mode=TwoWay}" 
                                                IsReadOnlyBinding="{Binding Path=IsNotTask}" TextAlignment="Left" Width="0.35*" HeaderTextAlignment="Center" ValidatesOnDataErrors="InViewMode"/>
               </telerik:RadTreeListView.Columns>
           </telerik:RadTreeListView>

My business object is certain there is error, and I tried with 'InView/InEdit/Default' in treelistview only and
both in column as above but no luck.

p.s. I always in radgridview without problem.

Thank you in advance.

Kang

1 Answer, 1 is accepted

Sort by
0
Ivan Ivanov
Telerik team
answered on 09 Mar 2011, 07:22 PM
Hi Yong-Gu Kang,

I have prepared a sample project for you, which depicts a RadTreeListView validation case. You may test the functionality by editing the child elements. Please, have a look at it and inform us, if this solutions fits into your requirements.


All the best,
Ivan Ivanov
the Telerik team
Registration for Q1 2011 What’s New Webinar Week is now open. Mark your calendar for the week starting March 21st and book your seat for a walk through all the exciting stuff we ship with the new release!
Tags
TreeListView
Asked by
Yonggu Kang
Top achievements
Rank 1
Iron
Answers by
Ivan Ivanov
Telerik team
Share this question
or