material-table icon indicating copy to clipboard operation
material-table copied to clipboard

Selection not working in material table

Open priyankdeeps78 opened this issue 6 years ago • 1 comments

Problem I have made selection: true but I am having problem in material-table which is the checkboxes do not get selected whenever I click them. Can anyone tell me the reason?

Code

<MaterialTable
       columns={columns}
        data={dummyData}
        options={{
          search: false,
          selection: true,
          showTitle: false,

          rowStyle: {
            fontSize: 12,
          },
    
          paging: false,
        }}
        icons={tableIcons}
        editable={{
          onRowUpdate: (newData, oldData) =>
            new Promise((resolve) => {
              handleRowUpdate(newData, oldData, resolve);
            }),
          onRowAdd: (newData) =>
            new Promise((resolve) => {
              handleRowAdd(newData, resolve);
            }),
          onRowDelete: (oldData) =>
            new Promise((resolve) => {
              handleRowDelete(oldData, resolve);
            }),
        }}
      />

priyankdeeps78 avatar Oct 18 '20 15:10 priyankdeeps78

Problem I have made selection: true but I am having problem in material-table which is the checkboxes do not get selected whenever I click them. Can anyone tell me the reason?

Code

<MaterialTable
       columns={columns}
        data={dummyData}
        options={{
          search: false,
          selection: true,
          showTitle: false,

          rowStyle: {
            fontSize: 12,
          },
    
          paging: false,
        }}
        icons={tableIcons}
        editable={{
          onRowUpdate: (newData, oldData) =>
            new Promise((resolve) => {
              handleRowUpdate(newData, oldData, resolve);
            }),
          onRowAdd: (newData) =>
            new Promise((resolve) => {
              handleRowAdd(newData, resolve);
            }),
          onRowDelete: (oldData) =>
            new Promise((resolve) => {
              handleRowDelete(oldData, resolve);
            }),
        }}
      />

I have the same issue , could you find any solution?

shivarad avatar Apr 26 '21 19:04 shivarad