Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
165
Can't cancel the Value Changing Client Event
posted

Here is the markup, I have been trying to cancel the valueChanging, the TextChanging - just about all of the Change events for a WHDG Editor Provider (TextEditorProvider) , however, when I simply set the client function to the following,

 

// This is not canceling the event

 function Default_Changed(sender, eventArgs) { debugger; eventArgs.set_cancel(true); }

I have my WHDG as follows (in assigning the Editor, and the Behavior setting for the column

(Behaviors in my Child Band)

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

<Behaviors

>

 

 

 

<ig:EditingCore AutoCRUD="false" Enabled="true" EnableInheritance

="true">

 

 

 

<Behaviors

>

 

 

 

<ig:CellEditing EditModeActions-EnableOnActive="true"

 

 

 

EditModeActions-MouseClick="Single"

 

 

 

EditModeActions-EnableOnKeyPress

="true">

 

 

 

<ColumnSettings

>

 

 

 

<ig:EditingColumnSetting ColumnKey="ChildID" EditorID="TestTextEditor"/>

 

 

 

</ColumnSettings>

 

 

 

<EditModeActions EnableOnActive="True" EnableOnKeyPress="True" MouseClick="Single"

/>

 

 

 

</ig:CellEditing>

 

 

 

<ig:RowAdding Enabled="true" Alignment="Bottom" EnableInheritance="true"

>

 

 

 

<ColumnSettings >

 

 

 

<ig:RowAddingColumnSetting ColumnKey="Test_DynamicMessage" EditorID="DynamicEditor" />

 

 

 

 

<ig:RowAddingColumnSetting ColumnKey="ChildID" EditorID="TestTextEditor" />

 

 

 

 

</ColumnSettings

>

 

 

 

 

<EditModeActions EnableOnActive="True" EnableOnKeyPress="True" MouseClick="Single" />

 

 

 

 

 

 

</ig:RowAdding>

 

 

 

</Behaviors>

 

 

 

</ig:EditingCore>

</Behaviors>

(Text Editor Provider)

 

 

 

 

 

 

 

<ig:TextEditorProvider ID="TESTTEXT">

 

 

 

<EditorControl ID="TestTextEditor" runat="server" StyleSetName="Default">

 

 

 

<ClientEvents ValueChanging="Default_Changed" />

 

 

 

</EditorControl>

 

 

 

</ig:TextEditorProvider>

(I am beginning to lose faith after a conversion of 300 hours from the UltraWebGrid - you can't Do an UpdateCellBatch - whats up with dat ?)

I am storing my data(as it is updated and added to in Cache, and then update all the changed data during a save, as you can not manually add rows or update rows on the client without having a postback occur.  But I digress - anyone else seen or had this problem, or am I just doing this wrong ?

Very Urgent, Thanks!