Y
Y
Yuri Shcheglov2015-02-13 09:13:50
ExtJS/Sencha
Yuri Shcheglov, 2015-02-13 09:13:50

How to disable the OnEvent attribute server-side in Ext.Net?

My aspx has a button:

<ext:Button runat="server" ID="SaveButton"
                    Text="Save"
                    Icon="PageSave"
                    meta:resourcekey="SaveButton">
                    <DirectEvents>
                        <Click OnEvent="SaveData">
                            <EventMask ShowMask="True"></EventMask>
                        </Click>
                    </DirectEvents>
                </ext:Button>

Due to the architecture of the application, I do not have the right to edit aspx. How can I write an OnEvent cancellation in C# or JS? That is, so that the specified SaveData method does not work?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
Y
Yuri Shcheglov, 2015-02-16
@EpeTuK

The answer, it turns out, was simple:
SaveButton.DirectEvents.Click.Event -= SaveData;

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question