RadButton on DataForm

2 posts, 1 answers
  1. Kakone
    Kakone avatar
    68 posts
    Member since:
    Jan 2010

    Posted 23 Mar 2010 Link to this post

    Hello,

    I try to replace the standard buttons (Commit, Cancel, ...) on a DataForm with RadButtons. To do this, for example, I set the CommitButtonStyle property like this :
    <dataForm:DataForm.CommitButtonStyle>  
      <Style TargetType="ButtonBase">  
        <Setter Property="Template">  
          <Setter.Value>  
            <ControlTemplate TargetType="ButtonBase">  
              <telerik:RadButton x:Name="CommitButton" telerikNavigation:RadWindow.ResponseButton="Accept" Content="{TemplateBinding Content}" />  
            </ControlTemplate>  
          </Setter.Value>  
        </Setter>  
      </Style>  
    </dataForm:DataForm.CommitButtonStyle>  

    The appareance is good, but the events are not raised. Did you know how can I do this ?

    Cordially,
    Stephane.
  2. Answer
    Tina Stancheva
    Admin
    Tina Stancheva avatar
    3299 posts

    Posted 26 Mar 2010 Link to this post

    Hello Stéphane Mitermite,

    When you change the standard buttons of the DataForm to a RadButton for example, you cannot get the RadButton to listen to the DataForm control methods. Still, if you need you can handle the click event of the RadButton.

    Can you please elaborate on the scenario you want to implement, so that we can point you to a better solution?

    Please let us know if we can be of further assistance.

    Sincerely yours,
    Tina Stancheva
    the Telerik team

    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
Back to Top