At the end of all I think that this event would be useful.
The feature ticket has been created.
https://extnet.lighthouseapp.com/pro...es/tickets/104
Added to SVN, revision #3763.
There are two arguments of an IndicatorIconClick: item and indicatorEl.
Example
<%@ Page Language="C#" %>
<%@ Register Assembly="Ext.Net" Namespace="Ext.Net" TagPrefix="ext" %>
<script runat="server">
protected void IndicatorIconClick(object sender, DirectEventArgs e)
{
X.Msg.Alert("DirectEvent", e.ExtraParams["id"]).Show();
}
</script>
<!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 runat="server">
<title>Ext.Net Example</title>
</head>
<body>
<form runat="server">
<ext:ResourceManager runat="server" />
<ext:Container Layout="FormLayout" runat="server">
<Items>
<ext:TextField
ID="TextField1"
runat="server"
Width="200"
IndicatorIcon="Accept"
FieldLabel="Test">
<Listeners>
<IndicatorIconClick Handler="alert('Listener : ' + this.id );" />
</Listeners>
<DirectEvents>
<IndicatorIconClick OnEvent="IndicatorIconClick">
<ExtraParams>
<ext:Parameter Name="id" Value="this.id" Mode="Raw" />
</ExtraParams>
</IndicatorIconClick>
</DirectEvents>
</ext:TextField>
<ext:CompositeField
ID="CompositeField1"
runat="server"
FieldLabel="Test">
<Items>
<ext:Container
runat="server"
Layout="FormLayout"
Width="200"
HideLabels="true">
<Items>
<ext:TextField
ID="TextField2"
runat="server"
AnchorHorizontal="-20"
IndicatorIcon="TagBlueAdd">
<Listeners>
<IndicatorIconClick Handler="alert('Listener : ' + this.id);" />
</Listeners>
<DirectEvents>
<IndicatorIconClick OnEvent="IndicatorIconClick">
<ExtraParams>
<ext:Parameter Name="id" Value="this.id" Mode="Raw" />
</ExtraParams>
</IndicatorIconClick>
</DirectEvents>
</ext:TextField>
</Items>
</ext:Container>
<ext:Container
runat="server"
Layout="FormLayout"
Width="200"
HideLabels="true">
<Items>
<ext:TextField
ID="TextField3"
runat="server"
AnchorHorizontal="-20"
IndicatorIcon="TagBlueAdd">
<Listeners>
<IndicatorIconClick Handler="alert('Listener : ' + this.id);" />
</Listeners>
<DirectEvents>
<IndicatorIconClick OnEvent="IndicatorIconClick">
<ExtraParams>
<ext:Parameter Name="id" Value="this.id" Mode="Raw" />
</ExtraParams>
</IndicatorIconClick>
</DirectEvents>
</ext:TextField>
</Items>
</ext:Container>
<ext:Container
runat="server"
Layout="FormLayout"
Width="200"
HideLabels="true">
<Items>
<ext:TextField
ID="TextField4"
runat="server"
AnchorHorizontal="-20"
IndicatorIcon="TagBlueAdd">
<Listeners>
<IndicatorIconClick Handler="alert('Listener : ' + this.id);" />
</Listeners>
<DirectEvents>
<IndicatorIconClick OnEvent="IndicatorIconClick">
<ExtraParams>
<ext:Parameter Name="id" Value="this.id" Mode="Raw" />
</ExtraParams>
</IndicatorIconClick>
</DirectEvents>
</ext:TextField>
</Items>
</ext:Container>
</Items>
</ext:CompositeField>
</Items>
</ext:Container>
</form>
</body>
</html>