fire event on a devexpress pivot grid with the widget extender

0
0

hello,

i’m working on your sample application of this article : https://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

Attachment
  • You must to post comments
0
0

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

  • You must to post comments
0
0

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

  • You must to post comments
Showing 2 results
Your Answer

Please first to submit.