in
Forums
Blogs
DevExpress.com
Client Center
Support Center
DevExpress Channel

EditForm editor update programatically

Last post 12/23/2008 4:26 PM by Maria Petrova. 0 replies.
Page 1 of 1 (1 items)
Sort Posts: Previous Next
  • 12/23/2008 4:26 PM

    EditForm editor update programatically

    Hi! In the EditForm of the grid except the standard editors I have a button which loads the ASPxPopup control which I use to lookup for preconfigured data. I would like when I close up the ASPxPopup control, the "Description" editor on the EditForm to update with the selected text on the ASPxPopup control. I've been trying with the following code, but the "Description" editor does not get updated. is it possible to update an editor with dynamically generated data at all? Can I somehow use server-side event?Please help!

    <dxpc:ASPxPopupControl ID="ASPxPopupControl5" runat="server" HeaderText="Descriptions Search" Height="113px" PopupElementID="btnDescriptions1" Width="469px" ClientInstanceName="popupDescriptions"><ClientSideEvents CloseUp="function(s, e) { OnCloseUp(s,e); }" />

     

    <script type="text/javascript"> function OnCloseUp(s, e) {grid.GetEditor("Description").SetValue(popupDescriptions.Text);}script>

     

    I also tried to update the "Description" editor on the EditForm with a Session variable, with no luck, example:

    <script type="text/javascript"> function OnCloseUp(s, e) {grid.GetEditor("Description").SetValue(Session["SelectedText"]);}script>

Page 1 of 1 (1 items)
Copyright © 1998-2009 Developer Express Inc.
ALL RIGHTS RESERVED