Wisej 3 Devextreme WidgetFunction Problem

Answered
0
0

Greetings,

I upgraded from Wisej version 2.5 to 3. However, the WidgetFunctions I used on dxDataGrid do not work.
While my 2.5 project is still active, it does not work only when I update.

The cellTemplate function does not work in your https://demo.wisej.com/devextreme/#dxDataGrid demo. I think wisej.web.ext.DevExtremeWidget.dxDataGrid.js file was removed in wisej 3. How can we use WidgetFunctions actively.

Thanks for your help.

  • You must to post comments
Best Answer
1
0

Hi Lefyapı,

To attach a client-side JavaScript WidgetFunction to the configuration of a control like the dxDataGrid, you can use the lambda syntax in C#,

i.e.
this.dxDataGrid.Options.someFunc = "()=>nameOfWidgetFunction"

There are multiple variations of this syntax:
"(cellInfo)=>customizeText"-> assigns the WidgetFunction, “customizeText” with one argument passed in, “cellInfo”
"()=>customizeText()" -> immediately executes the WidgetFunction, “customizeText” and assigns the result of the function to the member.
"()=>customizeText(1)” -> immediately executes the WidgetFunction with the given arguments.

You can apply this syntax to the cellTemplate of the dxDataGrid. If you can’t figure it out, please attach a small runnable sample and we’ll be happy to take a look.

Regards,
Levie

  • Lefyapı İnşaat AŞ
    Hello Levie, Thank you for your reply, it worked with the method you said. Best regards, good work.
  • You must to post comments
Showing 1 result
Your Answer

Please first to submit.