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

Getting ValidationSummary RadDataForm

3 Answers 152 Views
DataForm
This is a migrated thread and some comments may be shown as answers.
Jawad
Top achievements
Rank 1
Jawad asked on 17 Dec 2013, 08:30 AM
Hi,

we are using Telerik RadDataForm in Our product which is using MVVM Pattern. we want to use our custom Commads  and Button for Commit and Cancel and to get this we are referencing RadDataFormStyle to set the command as shown.

<StackPanel x:Name="PART_FooterPanel" HorizontalAlignment="Right" Orientation="Horizontal">
      <telerik:RadButton x:Name="PART_CommitButton" Content="{TemplateBinding CommitButtonContent}" Command="{Binding Source={StaticResource DataContextProxy}, Path=Data.UpdateItem}"  InnerCornerRadius="0" Margin="2,4,4,4" MinWidth="48" MinHeight="20">
                                      <telerik:StyleManager.Theme>
                                          <telerik:Office_BlackTheme/>
                                      </telerik:StyleManager.Theme>
                                  </telerik:RadButton>
                                  <telerik:RadButton x:Name="PART_CancelButton" Content="{TemplateBinding CancelButtonContent}" Command="{Binding Source={StaticResource DataContextProxy},Path=Data.CancelItemUpdate}" InnerCornerRadius="0" Margin="2,4,4,4" MinWidth="48" MinHeight="20">
                                      <telerik:StyleManager.Theme>
                                          <telerik:Office_BlackTheme/>
                                      </telerik:StyleManager.Theme>
                                  </telerik:RadButton>
                              </StackPanel>

And following is the Rad Form Defined on the View. the 
CommandButtonsVisibility="None" is set to None because we don't want to see the navigation and other controls being used.

<telerik:RadDataForm x:Name="DataForm1" CurrentItem="{Binding CurrentLevelItem,UpdateSourceTrigger=PropertyChanged}"    Style="{StaticResource RadDataFormStyle1}"  DataFieldStyle="{StaticResource DataFormDataFieldStyle1}" AutoEdit="True" CommandButtonsVisibility="None"  />

The fields are auto generated and the problem is we want to get hold of the ValidationSummay in the View Model (if the condition of a text field etc is not met the Auto-generated validation Summary is Bound to a property in the view Model etc)to show it according to our requirements(i.e. on one of our self created Control to show information or errors etc) .
Is there a way to get hold of the validationSummay in the view Model?.

Thanks,
Jawad.

3 Answers, 1 is accepted

Sort by
0
Ivan Ivanov
Telerik team
answered on 19 Dec 2013, 04:27 PM
Hi,

I have just posted a reply in the other thread of yours. In order to achieve consistent dialogue, I would kindly ask you to carry out our further commination there. Thank you.

Regards,
Ivan Ivanov
Telerik
TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for WPF.
Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
Sign up for Free application insights >>
0
Jeff
Top achievements
Rank 1
answered on 19 Aug 2016, 09:12 PM

I'm trying to find the solution for a problem, and I come across this thread.

You have an answer, but you're posting it in a different thread.

I'm sure Jawad knew what other thread you were talking about, but those of us who find ourselves here, searching for answers, years later, do not.

Could you include a link to the other thread, next time?

Remember - these aren't private conversations, they're archived support forums.

0
Ivan Ivanov
Telerik team
answered on 24 Aug 2016, 03:46 PM
Hello,

Thank you for this valid remark. The original thread was double-post in the Silverlight and WPF forums. Here is the other one.  

Regards,
Ivan Ivanov
Telerik by Progress
Do you need help with upgrading your AJAX, WPF or WinForms project? Check the Telerik API Analyzer and share your thoughts.
Tags
DataForm
Asked by
Jawad
Top achievements
Rank 1
Answers by
Ivan Ivanov
Telerik team
Jeff
Top achievements
Rank 1
Share this question
or