Getting ValidationSummary RadDataForm

4 posts, 0 answers
  1. Jawad
    Jawad avatar
    10 posts
    Member since:
    Jul 2013

    Posted 17 Dec 2013 Link to this post

    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.
  2. Ivan Ivanov
    Admin
    Ivan Ivanov avatar
    1128 posts

    Posted 19 Dec 2013 Link to this post

    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 >>
  3. UI for WPF is Visual Studio 2017 Ready
  4. Jeff
    Jeff avatar
    100 posts
    Member since:
    Apr 2008

    Posted 19 Aug in reply to Ivan Ivanov Link to this post

    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.

  5. Ivan Ivanov
    Admin
    Ivan Ivanov avatar
    1128 posts

    Posted 24 Aug Link to this post

    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.
Back to Top