Skip to content

fire event on a devexpress pivot grid with the widget extender #1018

Closed

Description

@itg-assistant

henry stephane asked 2017-08-15 14:23:31 UTC

hello,

i'm working on your sample application of this article : http://wisej.com/blog/integration1/

i focus on the DevExpress Pivot Grid on try to fire an event when clicking on a cell (https://js.devexpress.com/Documentation/15_2/ApiReference/UI_Widgets/dxPivotGrid/Events/#cellClick). So I've changed the initscript adding the fllowing code:
cellClick: function(e)
*        {*
*            me.fireWidgetEvent("change", {cell: e.cell});*
*        },*

and was hopping that would fired this server side event
private void widgetPivotGrid_WidgetEvent(object sender, WidgetEventArgs e)
*        {*
*            MessageBox.Show(e.Type, "");*
*        }*

as you can imagine : i doesn't work and i don't know how to find a fix.

Can you help me?

best regards,

Stéphane

Activity

  1. itg-assistant commented on Jun 12, 2026

    @itg-assistant
    Author

    Frank (ITG) answered 2017-08-15 14:40:54 UTC

    Hi Stéphane,

    there are just 2 minor problems in your code.
    Please add

    var me = this;

    to the beginning of your init function.

    Then you need to change your event handler to

    onCellClick: function(e)
            {
                me.fireWidgetEvent("change", {cell: e.cell});
            },
    

    Best regards
    Frank

  2. itg-assistant commented on Jun 12, 2026

    @itg-assistant
    Author

    henry stephane answered 2017-08-15 19:24:18 UTC

    hi,

    it doesn't worked the way i want but you gave a good step forward. my issue is probably more on my understanding of devexpress than wisej.

    thank's a lot and continue with your amazing work

    best regards

    stéphane

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    GeneralQuestions, how-tos and everything else.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions