Violation message for C1Dialog and C1GridView 2025v2 399

Posted by: enrique.pv-ext on 8 January 2026, 8:42 am EST

  • Posted 8 January 2026, 8:42 am EST

    Hi,

    Migrate from 2010v1 to 2025v2 399 in ASP.NET WebForms NET Framework 4.8.1.

    Using C1GridView and C1Dialog from C1.Web.Wijmo.Controls.48.dll

    I have imageButton for open Edit dialog:

        <cc1:C1TemplateField >
            <ItemTemplate>
                <asp:ImageButton ID="ImageButtonEdit" runat="server" CommandName="EditDetraction" ImageUrl="~/App_Themes/Content/Imagenes/editing.gif" ></asp:ImageButton>
            </ItemTemplate>   
            <ItemStyle Width="30px" />
        </cc1:C1TemplateField>
    </Columns>
    </cc1:C1GridView>
    
    
    <cc2:C1Dialog ID="EditConfigurationParamWindow" runat="server"
           ClientIDMode="AutoID"
            VisualStylePath="~/VisualStyles" 
            UseEmbeddedVisualStyles="False"
            VisualStyle="CustomVisualStyle2"
            StartPosition="Page" 
            VerticalAlign="Middle" 
            HorizontalAlign="Center"
            Height="240px" 
            ImageHeight="0" 
            ImageWidth="0" AppendTo="body" 
            Localization-Close="Close" Localization-Maximize="Maximize" Localization-Minimize="Minimize" Localization-Pin="Pin" Localization-Refresh="Refresh" Localization-Toggle="Toggle" 
            MaintainVisibilityOnPostback="False" Show="blind" Modal="False" ShowOnLoad="False">
            <Content>

    The dialog not open.

    RowCommand not is called. Early version 2010v1 C1Window all was OK.

    protected void ConfigurationParamGrid_RowCommand(object sender, C1.Web.Wijmo.Controls.C1GridView.C1GridViewCommandEventArgs e)
    		{
    			// Version 2012v1
    			//var row = e.Row;
    
    			// TODO: NUEVO
    			var row = e.CommandSource as C1.Web.Wijmo.Controls.C1GridView.C1GridViewRow;
    
    			if (row == null) return;
    
    			if (row.RowType != C1.Web.Wijmo.Controls.C1GridView.C1GridViewRowType.DataRow) return;
    
    
    			//if (e.Row.RowType == C1GridViewRowType.DataRow)
    			//{
    			if (e.CommandName == "EditDetraction")
    			{
    				HiddenEditDetractionWindowClosedClientSide.Value = "false";
    				// Load Edit Detraction Window
    				lblParamName.Text = ((C1GridView)sender).DataKeys[row.RowIndex].Values["PARAM"].ToString().Trim();
    				txtParamValue.Text = ((C1GridView)sender).DataKeys[row.RowIndex].Values["VALUE"].ToString().Trim();
    
    				ViewState["ID"] = ((C1GridView)sender).DataKeys[row.RowIndex].Values["ID"].ToString();
    
    				// Show Window
    				System.Web.UI.ScriptManager.RegisterClientScriptBlock(this, this.GetType(), Guid.NewGuid().ToString(), "OpenEditParamWindow('" + EditConfigurationParamWindow.ClientID + "', '" + _textsShown[13].ToString() + "');", true);
    			}
    			//}
    		}

    I view message in console Chrome:

    [Violation] Added non-passive event listener to a scroll-blocking <some> event. Consider marking event handler as 'passive' to make the page more responsive. See <URL>
    [Violation] Added non-passive event listener to a scroll-blocking <some> event. Consider marking event handler as 'passive' to make the page more responsive. See <URL>
    [Violation] Added non-passive event listener to a scroll-blocking <some> event. Consider marking event handler as 'passive' to make the page more responsive. See <URL>
    [Violation] Added non-passive event listener to a scroll-blocking <some> event. Consider marking event handler as 'passive' to make the page more responsive. See <URL>
    [Violation] Added non-passive event listener to a scroll-blocking <some> event. Consider marking event handler as 'passive' to make the page more responsive. See <URL>
    [Violation] Added non-passive event listener to a scroll-blocking <some> event. Consider marking event handler as 'passive' to make the page more responsive. See <URL>
    WijmoControlsResource.axd?scripts=0;1;138;137;6;7;5;4;242;60;122;61;73;107;79;108;66;74;120;70;90;91;89;118;67;93;94;92;96;97;95;99;98;101;100;130;88;131;132;27;17;35;31&t=638990748872440533:28 [Violation] Added non-passive event listener to a scroll-blocking 'wheel' event. Consider marking event handler as 'passive' to make the page more responsive. See https://www.chromestatus.com/feature/5745543795965952
    setup @ WijmoControlsResource.axd?scripts=

    any suggestions ?

  • Posted 8 January 2026, 11:38 am EST - Updated 8 January 2026, 11:44 am EST

    I test this: I add C1CommandField column

                    <cc1:C1CommandField ShowEditButton="True">
                    </cc1:C1CommandField>

    My code backend server:

    		protected void ConfigurationParamGrid_RowCommand(object sender, C1.Web.Wijmo.Controls.C1GridView.C1GridViewCommandEventArgs e)
    		{
    			// Version 2012v1
    			//var row = e.Row;
    			// TODO: NUEVO
    			var name = e.CommandName;
    			var index = e.CommandArgument;
    			//var row1 = e.CommandSource as C1.Web.Wijmo.Controls.C1GridView.C1GridViewRow;
    			//if (row1 == null) return;
    
    			var grid = e.CommandSource as C1.Web.Wijmo.Controls.C1GridView.C1GridView;
    			var pc = grid.PageCount;
    			var pi = grid.PageIndex;
    			var ps = grid.PageSize;
    
    			var row = grid.Rows[grid.PageIndex];
    			if (row == null) return;
    			if (row.RowType != C1.Web.Wijmo.Controls.C1GridView.C1GridViewRowType.DataRow) return;
    			if (e.CommandName == "EditDetraction" || e.CommandName == "edit")
    			{
    				HiddenEditDetractionWindowClosedClientSide.Value = "false";
    				// Load Edit Detraction Window
    				lblParamName.Text = ((C1GridView)sender).DataKeys[row.RowIndex].Values["PARAM"].ToString().Trim();
    				txtParamValue.Text = ((C1GridView)sender).DataKeys[row.RowIndex].Values["VALUE"].ToString().Trim();
    
    				ViewState["ID"] = ((C1GridView)sender).DataKeys[row.RowIndex].Values["ID"].ToString();
    
    				// Show Window
    				System.Web.UI.ScriptManager.RegisterClientScriptBlock(this, this.GetType(), Guid.NewGuid().ToString(), "OpenEditParamWindow('" + EditConfigurationParamWindow.ClientID + "', '" + _textsShown[13].ToString() + "');", true);
    			}
    
    		}

    I get the error the RowEditing event was not handled. in console:

    Uncaught Sys.WebForms.PageRequestManagerServerErrorException: Sys.WebForms.PageRequestManagerServerErrorException: 'ConfigurationParamGrid': the RowEditing event was not handled.
        at Error.Error$create [as create] (ScriptResource.axd?
  • Posted 9 January 2026, 8:23 am EST

    Hi,

    We are currently looking into this issue. We will update you soon on this.

    Thanks & regards,

    Aastha

  • Posted 9 January 2026, 9:14 am EST

    I try ButtonType=“Image”

    
                    <cc1:C1CommandField ShowEditButton="True" ButtonType="Image" 
                    EditImageUrl = "~/App_Themes/Content/Imagenes/editing.gif" CancelImageUrl = "~/App_Themes/Content/Imagenes/cancel.gif" UpdateImageUrl = "~/App_Themes/Content/Imagenes/accept.gif">
                    <ItemStyle Width="40" />
                    </cc1:C1CommandField>
    	

    		protected void ConfigurationParamGrid_RowCommand(object sender, C1.Web.Wijmo.Controls.C1GridView.C1GridViewCommandEventArgs e)
    		{
    			// TODO: NUEVO
    			var name = e.CommandName;
    			var index = e.CommandArgument;
    			//var row1 = e.CommandSource as C1.Web.Wijmo.Controls.C1GridView.C1GridViewRow;
    			//if (row1 == null) return;
    
    			var grid = e.CommandSource as C1.Web.Wijmo.Controls.C1GridView.C1GridView;
    			var pc = grid.PageCount;
    			var pi = grid.PageIndex;
    			var ps = grid.PageSize;
    
    			var i = int.Parse("" + index);
    			var row = grid.Rows[i];
    			if (row == null) return;
    
    			if (row.RowType != C1.Web.Wijmo.Controls.C1GridView.C1GridViewRowType.DataRow) return;
    			if (e.CommandName == "EditDetraction" || e.CommandName == "edit")
    			{
    				HiddenEditDetractionWindowClosedClientSide.Value = "false";
    				// Load Edit Detraction Window
    				lblParamName.Text = ((C1GridView)sender).DataKeys[row.RowIndex].Values["PARAM"].ToString().Trim();
    				txtParamValue.Text = ((C1GridView)sender).DataKeys[row.RowIndex].Values["VALUE"].ToString().Trim();
    
    				ViewState["ID"] = ((C1GridView)sender).DataKeys[row.RowIndex].Values["ID"].ToString();
    				System.Web.UI.ScriptManager.RegisterClientScriptBlock(this, this.GetType(), Guid.NewGuid().ToString(), "OpenEditParamWindow('" + EditConfigurationParamWindow.ClientID + "', '" + _textsShown[13].ToString() + "');", true);
    			}
    		}
    		protected void ConfigurationParamGrid_RowEditing(object sender, C1GridViewEditEventArgs e)
    		{
    			var x = e.NewEditIndex;
    			var c = e.Cancel;
                   }
  • Posted 13 January 2026, 3:02 am EST

    Hello Enrique,

    Apologies for delayed response.

    Thank you for providing the details regarding your migration from 2010v1 to 2025v2.

    Event Handling: When using an ImageButton inside a C1TemplateField, it is best to handle the OnCommand event specifically to ensure the data context is captured correctly.

    The “RowEditing” Error: In the 2025v2 version, clicking an “Edit” button in a C1CommandField automatically tries to put the grid into edit mode. If you prefer using a separate Dialog for editing, you must handle the RowEditing event and cancel it to prevent server-side exceptions.

    Please refer to the attached working sample implementing your requirement. (see GridView_Dialog_Sample.zip)

    Please let us know if it helps.

    Regards,

    Uttkarsh.

  • Posted 26 January 2026, 9:58 am EST

    Thanks all.

    I have deleted column

    C1CommandField ShowEditButton="True"

                <cc1:C1GridView ID="ConfigurationParamGrid" runat="server" 
                    DataKeyNames="ID,PARAM,VALUE"
                    AutogenerateColumns="False"                     
                    Width="100%"                     
                    EmptyDataText= "No existen parámetros de configuración" 
                    AllowPaging="true" PageSize="25" 
                    AllowSorting="true"
                    ShowFilter="true"
                    OnFiltering="ConfigurationParamGrid_Filter" 
                    OnRowCommand="ConfigurationParamGrid_RowCommand"
                    OnSorting="ConfigurationParamGrid_Sorting"
                    OnSorted="ConfigurationParamGrid_Sorted"
                    OnPageIndexChanging="ConfigurationParamGrid_PageIndexChanging" 
                    OnRowDataBound="ConfigurationParamGrid_RowDataBound"      
                    >                     
        <Columns> 
            <cc1:C1BoundField DataField="ID" Visible="false"></cc1:C1BoundField>                      
            <cc1:C1BoundField DataField="PARAM" HeaderText="Parámetro"  SortExpression="PARAM">
                <ItemStyle CssClass="GridText" Width="140px" />
            </cc1:C1BoundField>
            <cc1:C1BoundField DataField="VALUE" HeaderText="Valor"  SortExpression="VALUE">
                <ItemStyle CssClass="GridText" Width="250px" />
            </cc1:C1BoundField>
            <cc1:C1BoundField DataField="DESCRIPTION" HeaderText="Descripción"  SortExpression="DESCRIPTION">
                <ItemStyle CssClass="GridText" Width="300px"/>
            </cc1:C1BoundField>
            <cc1:C1TemplateField>
                <ItemTemplate>
                    <asp:ImageButton ID="ImageButtonEdit" runat="server" CommandName="EditDetraction" ImageUrl="~/App_Themes/Content/Imagenes/editing.gif" 
                    CommandArgument='<%# Container.DisplayIndex %>'
                    CausesValidation="true"
                    OnCommand="ImageButtonEdit_Command"/>
                </ItemTemplate>   
                <ItemStyle Width="30px" />
            </cc1:C1TemplateField>
        </Columns>
        </cc1:C1GridView>

    RowCommand not executed, only OnCommand for ImageButton.

    backend code:

    		protected void ImageButtonEdit_Command(object sender, System.Web.UI.WebControls.CommandEventArgs e)
    		{
    			// Redirect to the shared logic
    			OpenDialogFromCommand(e.CommandName, e.CommandArgument);
    		}
    
    		protected void ConfigurationParamGrid_RowCommand(object sender, C1.Web.Wijmo.Controls.C1GridView.C1GridViewCommandEventArgs e)
    		{
                           // NEVER CALLED ????
    			var row = e.CommandSource as C1.Web.Wijmo.Controls.C1GridView.C1GridViewRow;
    			if (row == null) return;
    			if (row.RowType != C1.Web.Wijmo.Controls.C1GridView.C1GridViewRowType.DataRow) return;
    
    			if (e.CommandName == "EditDetraction")
    			{
    				HiddenEditDetractionWindowClosedClientSide.Value = "false";
    				// Load Edit Detraction Window
    				lblParamName.Text = ((C1GridView)sender).DataKeys[row.RowIndex].Values["PARAM"].ToString().Trim();
    				txtParamValue.Text = ((C1GridView)sender).DataKeys[row.RowIndex].Values["VALUE"].ToString().Trim();
    				ViewState["ID"] = ((C1GridView)sender).DataKeys[row.RowIndex].Values["ID"].ToString();
    
    				// Show Window
    				System.Web.UI.ScriptManager.RegisterClientScriptBlock(this, this.GetType(), Guid.NewGuid().ToString(), "OpenEditParamWindow('" + EditConfigurationParamWindow.ClientID + "', '" + _textsShown[13].ToString() + "');", true);
    			}
    		}

    You use RegisterStartupScript:

    ScriptManager.RegisterStartupScript(this, this.GetType(), "PopUp", script, true);

    I use RegisterClientScriptBlock

    ScriptManager.RegisterClientScriptBlock(this, this.GetType(), Guid.NewGuid().ToString(), script, true);

    why RowCommand not executed ?

    better use RegisterStartupScript ?

    Thanks a lot. Regards

  • Posted 27 January 2026, 7:33 am EST

    Hello,

    It seems RegisterClientScriptBlock() is injecting the script at the top of the page (right after the opening form tag). At this point, the browser hasn’t even seen the JavaScript function OpenEditParamWindow() yet, nor has it rendered the C1Dialog HTML. It tries to run the command, can’t find the function, and crashes.

    Whereas RegisterStartupScript() is injects the script at the bottom of the page (right before the closing form tag). By this time, the browser has loaded the scripts and rendered the Dialog.

    So, we recommend using ScriptManager.RegisterStartupScript() instead.

    Regards,

    Uttkarsh.

  • Posted 28 January 2026, 8:47 am EST

    Thanks. I use RegisterStartupScript.

    Anyways, why RowCommand event not executed in 2025v2 399 version ?

    I have many pages using C1TemplateField and ImageButton and RowCommand.

    I need be sure that RowCommand not can be used, for change many code in my WAP project.

    my legacy code:

                <cc1:C1GridView ID="ConfigurationParamGrid" runat="server" 
                    OnRowCommand="ConfigurationParamGrid_RowCommand" 
                     ...
                    >                     
    
                    <cc1:C1TemplateField>
                        <ItemTemplate>
                            <asp:ImageButton ID="ImageButtonEdit" runat="server" CommandName="EditDetraction" ImageUrl="~/App_Themes/Content/Imagenes/editing.gif" 
                            />
                        </ItemTemplate>   
                        <ItemStyle Width="30px" />
                    </cc1:C1TemplateField>
    protected void ConfigurationParamGrid_RowCommand(object sender, C1.Web.Wijmo.Controls.C1GridView.C1GridViewCommandEventArgs e)
    	{
    		var row = e.CommandSource as C1.Web.Wijmo.Controls.C1GridView.C1GridViewRow;
    		if (row == null) return;
    		if (row.RowType != C1.Web.Wijmo.Controls.C1GridView.C1GridViewRowType.DataRow) return;
    		// TODO: NOT CALLED event RowCommand en 2025v2 399 version
    		var grid = ((C1GridView)sender);
    		int rowIndex = row.RowIndex;
    		OpenDialogFromCommand(e.CommandName, rowIndex); // e.CommandArgument);

    please, friend, help me about RowCommand. thx, regards

  • Posted 29 January 2026, 6:48 am EST

    Hi,

    We are currently looking into this issue. We will get back to you on this as soon as possible.

    Regards,

    Akshay

  • Posted 30 January 2026, 7:48 am EST

    Hi,

    I tested the sample previously shared by Uttkarsh and it seems to be working fine at my end. Please share a runnable sample application replicating this issue or edit the previously shared sample application such that it reproduces the issue and send it back to us so we can reproduce this issue at our end and get back to you accordingly.

    Regards,

    Akshay

Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels