Forums

EditForm editor update programatically

Last post 12/23/2008 4:26 PM by Maria Petrova. 0 replies.
Sort Posts: Previous Next
  • Maria Petrova

    EditForm editor update programatically

    12/23/2008 4:26 PM
    • Not Ranked
    • Joined on 12/11/2008
    • Posts 3

    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>

More from DevExpress
Live Chat
Have a pre-sales question?
Need assistance with your evaluation?
We are here to help.
Chat is one of the many ways you can contact members of the DevExpress Team. We are available Monday-Friday between 8:30am and 5:00pm Pacific Time.
If you need additional product information, require pre-sales assistance, or want help with your order, write to us at info@devexpress.com or call us at
+1 (818) 844-3383.