Jan 07, 2011, 7:46 AM
Poupup window the return value to assign into TriggerField.
Hello.
TriggerFiled when I press the search button, some of the information listed in the popup window.
Value is selected from the list, the popup window closes, I want to assign into TiriggerFiled.
Can somebody help me about this subject.
TriggerFiled when I press the search button, some of the information listed in the popup window.
Value is selected from the list, the popup window closes, I want to assign into TiriggerFiled.
Can somebody help me about this subject.
<%@ Page Language="C#" AutoEventWireup="true" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
<title>Example</title>
<script type="text/javascript">
function alert_communication(page, w, h, t) {
isExist = Ext.isEmpty(Ext.getCmp('c2'));
if (isExist == true) {
win1 = new Ext.Window({
modal: true,
layout: 'absolute',
width: w,
height: h,
title: t,
closable: true,
resizable: true,
autoLoad: { showMask: true, maskMsg: "Loading", scripts: true, mode: "iframe", url: page },
autoScroll: true,
collapsible: true,
id: "c2"
});
win1.show(null);
}
else {
var isshown = Ext.getCmp('c2').isVisible();
if (isshown == false) {
win1.show(null);
}
}
}
var click = function() {
alert_communication("/System/HelpList.aspx?List=SalesmanList", 400, 400, "List");
}
</script>
</head>
<body>
<form id="form1" runat="server">
<ext:ResourceManager runat="server" />
<ext:ViewPort ID="ViewPort1" runat="server">
<Items>
<ext:TriggerField ID="tfSpeCode" runat="server" FieldLabel="Code" Width="200">
<Triggers>
<ext:FieldTrigger Icon="Ellipsis"/>
</Triggers>
<Listeners>
<TriggerClick fn="click"/>
</Listeners>
</ext:TriggerField>
</Items>
</ext:ViewPort>
</form>
</body>
</html>