PDA

View Full Version : [CLOSED] ProgressBar click?



ddeniz
Mar 22, 2014, 6:08 PM
Hi,

has progress bar click handler? i want click progressbar and show details of progressbar percentage on modal.
is it possible?

Daniil
Mar 23, 2014, 9:39 AM
Hi @ddeniz,

Please look at how it can be implemented.

<ext:ProgressBar runat="server" Width="300" Text="Some Text">
<Listeners>
<AfterRender Handler="this.mon(this.el, 'click', function() { alert(this.text); }, this);" />
</Listeners>
</ext:ProgressBar>

ddeniz
Mar 23, 2014, 1:20 PM
it dosen't work.

has ProgressBarColumn click property also?

Daniil
Mar 24, 2014, 5:07 AM
it dosen't work.

This example works for me. Does it work for you?

Example

<%@ Page Language="C#" %>

<%@ Register Assembly="Ext.Net" Namespace="Ext.Net" TagPrefix="ext" %>

<!DOCTYPE html>
<html>
<head runat="server">
<title>Ext.NET v2 Example</title>
</head>
<body>
<form runat="server">
<ext:ResourceManager runat="server" />

<ext:ProgressBar runat="server" Width="300" Text="Some Text">
<Listeners>
<AfterRender Handler="this.mon(this.el, 'click', function() { alert(this.text); }, this);" />
</Listeners>
</ext:ProgressBar>
</form>
</body>
</html>



has ProgressBarColumn click property also?

No, it has not. You could use a GridPanel's CellClick event.
http://docs.sencha.com/extjs/4.2.1/#!/api/Ext.panel.Table-event-cellclick