Super Sale Limited Time 50% OFF for All-Access Plans
Save 50% Now

KTUI DataTable and client-side paging


Hi everyone!
I'm working with the Tailwind KTDataTable component in a Blazor project, and I'd really appreciate some help.
I'm trying to implement client-side paging while working with an API endpoint for the data.
Has anyone here tackled something similar and can share the best approach?
Also, I noticed that the documentation is a bit lacking when it comes to API usage, and I'm struggling to find detailed info.

Additionally, I'm curious if it's possible to set certain columns as hidden or not.

Thanks in advance!


Text formatting options
Submit
Click any option to insert into your comment. Select text first to wrap it.
  • **text** to make things bold
  • *text* to emphasize
  • ### Heading to make headings
  • [link text](url) for links
  • ![alt text](image-url) to paste in an image
  • - item to make a list
  • 1. item to make an ordered list
  • > quote to quote somebody
  • `code` for single line of code
  • ```js ... ``` for JS code block
  • ```html ... ``` for HTML code block
  • ```scss ... ``` for SCSS code block
  • ```php ... ``` for PHP code block
  • --- for a horizontal rule
  • happy  :)
  • shocked  :|
  • sad  :(

Replies (1)


Hi

The current KtUI DataTable options do not have built-in “hidden” or “visible” column setting. As a workaround you can:

- Omit the column from the table markup (no <th> / <td> for that field), or
- Hide it with CSS (e.g. a class or nth-child on the corresponding th/td).

share how you’re initializing the DataTable (config object and where you call it from Blazor), and we can narrow it down.


Text formatting options
Submit
Click any option to insert into your comment. Select text first to wrap it.
  • **text** to make things bold
  • *text* to emphasize
  • ### Heading to make headings
  • [link text](url) for links
  • ![alt text](image-url) to paste in an image
  • - item to make a list
  • 1. item to make an ordered list
  • > quote to quote somebody
  • `code` for single line of code
  • ```js ... ``` for JS code block
  • ```html ... ``` for HTML code block
  • ```scss ... ``` for SCSS code block
  • ```php ... ``` for PHP code block
  • --- for a horizontal rule
  • happy  :)
  • shocked  :|
  • sad  :(
Text formatting options
Submit
Click any option to insert into your comment. Select text first to wrap it.
  • **text** to make things bold
  • *text* to emphasize
  • ### Heading to make headings
  • [link text](url) for links
  • ![alt text](image-url) to paste in an image
  • - item to make a list
  • 1. item to make an ordered list
  • > quote to quote somebody
  • `code` for single line of code
  • ```js ... ``` for JS code block
  • ```html ... ``` for HTML code block
  • ```scss ... ``` for SCSS code block
  • ```php ... ``` for PHP code block
  • --- for a horizontal rule
  • happy  :)
  • shocked  :|
  • sad  :(