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>