in
Forums
Blogs
Files
Devexpress.Com
Client Center
Support Center
DevExpress Channel

PreRender event in Templates -> EditForm

Last post 11/19/2008 7:58 AM by Mark Goldstein. 4 replies.
Page 1 of 1 (5 items)
Sort Posts:
Previous Next
  • 5/16/2008 11:21 PM

    PreRender event in Templates -> EditForm

    I have noticed that the PreRender event is not firing in the Template EditForm of ASPxGridView.  I have placed a Custom control (extended from LinkButton) and an ASP:LinkButton both inside the EditForm Template and outside the Grid.  The OnPreRender event is firing for the controls outside the grid but not inside the grid template EditForm.  Interestingly enough, the OnLoad and OnInit events are firing, just not the OnPreRender event.

    Am I missing something or has anyone else experienced this?

  • 5/19/2008 10:52 PM In reply to

    Re: PreRender event in Templates -> EditForm

     Can anyone validate this for me?  We have custom / .Net / Devexpress controls and need to use the PreRender event and this is a problem inside the Update Popup Edit Form.

  • 5/21/2008 10:44 PM In reply to

    Re: PreRender event in Templates -> EditForm

     Update on this item?

  • 5/26/2008 1:26 PM In reply to

    Re: PreRender event in Templates -> EditForm

     Hi Jeff,

    Thank you for the report.  This behavior is by design - a control's PreRender event is not called during a callback.  Since the ASPxGridView sends callbacks to the server by default, you see this problem.  If you set the ASPxGridView.EnableCallbacks property value to false, the problem will disappear.  I understand that often, this is not an option.  So, please explain your task and we will try to find a solution for you.

    Thanks,

    Plato

    Developer Express Support

    Thanks,

    Plato

    Developer Express Support
  • 11/19/2008 7:58 AM In reply to

    Re: PreRender event in Templates -> EditForm

     Hi,

    I experience a similar problem.

    My layout is as following:

    1. UserControl ("A") with AspxPageControl ("B") (EnableCallBacks="true")

    2. UserControl ("C") resides on a page in the "B"

    3. AspxGridView ("D") is placed in "C"

    I'd like to check (within "C") whether "D" has records to show and to set it visibilty accordingly. I tried to implement PreRender event of "C", but it never fires (or propagated).

     

    Any ideas?

     

     

    Filed under:
Page 1 of 1 (5 items)
Copyright © 1998-2008 Developer Express Inc.
ALL RIGHTS RESERVED