Editable Table Fetching


Topic: Editable Table Fetching

Philippe Yu asked 5 years ago

Hi,

Do you have an example of Editable Table fetching/add a rest api under REACT ?

It would help me a lot ! Thanks :)


Konrad Stępień staff answered 5 years ago

Hi @Philippe Yu,

We have an example without API. Only with local data.

You can see it here or on the documentation page.

If you have any problems with fetching data from API, tell me about it. I will be happy to help you if you can not find a solution.

Best regards, Konrad.


Philippe Yu answered 5 years ago

Hi,

So, if I understand, Editable Table is not working for fetching API. Because I don't understand how your Editable Table works with fetching an api rest.

Thanks for your answer!


Konrad Stępień staff answered 5 years ago

Hi @Philippe Yu,

No, you can use fetching API, but you need to write code to do.

I see the addon doesn't have getValue property, and which makes it impossible to manipulate edited and get data. If you want, I can pass it to the appropriate department to add the mentioned option.

Best regards, Konrad.


Philippe Yu answered 5 years ago

Hi,

Yes please, I will need just an example of the code with fetching and add for Éditable Table.

Thank you !


Philippe Yu answered 5 years ago

Hi,

Yes please, I will need just an example of the code with fetching and add for Éditable Table.

Thank you !


Konrad Stępień staff commented 5 years ago

Hi @Philippe Yu,

I forwarded it to our technical team. If there is anything else I could do for you do not hesitate to ask me. I'll be happy to help you.

https://react.mdbootstrap.com/tables/datatable-api Here you can find examples with DataTable Api.

Best Regards, Konrad.


Philippe Yu commented 5 years ago

Thanks Konrad, but your editable table doesn't work like your datatable, that's why i'm asking


Konrad Stępień staff commented 5 years ago

I will propose to the team make an example or add a new function.

Regards, Konrad.


atinbop answered 5 years ago

dear konrad i need the code to fetch editable from c# code behind please


Konrad Stępień staff commented 5 years ago

Hi @atinbop,

Could you develop your problem?

How do you want to have related data from c#?

Best regards, Konrad.


Philippe Yu answered 5 years ago

Hello,

Do you have any solution for this please ?

Thanks

Philippe


Konrad Stępień staff answered 5 years ago

Hi @Philippe Yu,

Did you checkt an example on this page?

This is the code:

<MDBDataTable
   striped
   bordered
   hover
   data="https://my-json-server.typicode.com/Rotarepmi/exjson/db" //pass here your api
/>

Please check it and tell me if you have more problems.

Best regards, Konrad.


Please insert min. 20 characters.

FREE CONSULTATION

Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.

Status

Answered

Specification of the issue
  • User: Free
  • Premium support: No
  • Technology: MDB React
  • MDB Version: 4.18.0
  • Device: PC
  • Browser: Chrome
  • OS: Windows
  • Provided sample code: No
  • Provided link: No