Our blazing fast Grid component built with pure JavaScript


Post by tjmeal »

Hello and thanks for your reply,

I read your reply and based on that:

Sorry, but it takes hours/days to read all the code you send

Because it completely understandable but i did not send the whole code in order for you to read all of it.

So, if i say from all the code i send you:
1) Run the code
2) Login
3) visit http://localhost:3000/to/transfers/grid/
4) The only code that you have to read is GridWsHelper.js and GridConfig.js files and nothing else from all the code i have send, in order to help me with my problem would be okay ?

By the way, I did find the issue with that problem on current thread : i was using

    {
      id: "vehicleCategory-field",
      text: 'Vehicle',
      field: 'vehicleCategory',
      // align: "center",
      renderer(props) {
        if (typeof props.value === "object") {
          return operatorSummaries[WS_TYPES.VEHICLE_CATEGORIES]
            .find(record => record.id === props.value.data.id)?.name
        } else if (Number.isInteger(props.value)) {
          return operatorSummaries[WS_TYPES.VEHICLE_CATEGORIES]
            .find(record => record.id === props.value)?.name
        }
      },
      editor: {
        ...comboConfig,
        items: operatorSummaries[WS_TYPES.VEHICLE_CATEGORIES],
        required: true,
      },
      autoWidth: true,
    },

when i updated to the following it was able to match it as expected

    {
      id: "vehicleCategory-field",
      text: 'Vehicle',
      field: 'vehicleCategory',
      // align: "center",
      renderer(props) {
        if (typeof props.value === "object") {
          return operatorSummaries[WS_TYPES.VEHICLE_CATEGORIES]
            .find(record => record.id === props.value.data.id)?.name
        } else if (Number.isInteger(props.value)) {
          return operatorSummaries[WS_TYPES.VEHICLE_CATEGORIES]
            .find(record => record.id === props.value)?.name
        }
      },
      editor: {
        ...comboConfig,
        required: true,
        store: {
          data: operatorSummaries[WS_TYPES.VEHICLE_CATEGORIES],
          //grouper: [{field: "name"}]
        }
      },
      autoWidth: true,
    },

Post by alex.l »

Hi,

Does it mean you unblocked now or you need an assistance?

All the best,
Alex Lazarev

How to ask for help? Please read our Support Policy

We do not write the code in bounds of forum support. If you need help with development, contact us via bryntum.com/services


Post by tjmeal »

I have fixed the issue that i opened the ticket for performing the mentioned action.

But i really would like to get a reply in order to understand please on my above question:

So, if i say from all the code i send you:
1) Run the code
2) Login
3) visit http://localhost:3000/to/transfers/grid/
4) The only code that you have to read is GridWsHelper.js and GridConfig.js files and nothing else from all the code i have send, in order to help me with my problem would be okay ?


Post by alex.l »

What is format of operatorSummaries[WS_TYPES.VEHICLE_CATEGORIES] data? I don't see you set valueField/idField for combo editor, as well as editor type

All the best,
Alex Lazarev

How to ask for help? Please read our Support Policy

We do not write the code in bounds of forum support. If you need help with development, contact us via bryntum.com/services


Post by tjmeal »

id:
name:
extraInfo:
type:


Post by tjmeal »

Please clsoe,

Thanks


Post Reply