Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
100
CellValuePresenterStyle not firing AddingNew and OnEditModeEnded events
posted

Hi, I have a requirement to show text and double in a cell based on specific conditions. I am using CellValuePresenterStyle  to achieve this functionality, everything works fine except none of the events are getting fired. See sample attached. I am not able to add a new row.

 

 

RecordAddedEvent.zip
Parents
No Data
Reply
  • 138253
    Verified Answer
    Offline posted

    Hello Vjjo,

     

    Thank you for your post. I have been looking into it and I can say that this behavior is expected, because when you retemplate the CellValuePresenter you lose all the built in functionality. My suggestions is to copy the default Style of the CellValuePresenter, which is located here by default:

     

    C:\Program Files (x86)\Infragistics\2014.1\WPF\DefaultStyles\DataPresenter\DataPresenterAero_Express.xaml file

     

    And add the TextBox in the template. I created a sample project for you showing you how to do so. Also I can suggest you use this approach in the future, when you want to retempalte elements. Please let me know if you need further clarifications on this matter.

     

    Looking forward for your reply.

    RecordAddedEventModified.zip
Children
No Data