My requirement is want my table layout to be fixed. My problem is When I select value in dropdown box,Table column width dynamically changes according to length of selected value in dropdownbox but I want my MudSimpleTable Layout to be static non changing. I have created snippet link of my problem I am facing. Do anyone know how to fix it?
I Want my MudSimpleTable Layout to be Static-Non Changing
84 Views Asked by Joe At
2
There are 2 best solutions below
0
Joe
On
I Fixed it using Css by adding div tag above MudsimpleTable
<style>
.table-container2 {
overflow-x: auto;
}
.table-container2 table {
table-layout: fixed;
width: 100%;
}
.table-container2 th,
.table-container2 td {
overflow: hidden;
word-wrap: break-word;
white-space: normal;
}
</style>
<div class="table-container2"> <MudSimpleTable..../> </div>
Related Questions in HTML-TABLE
- Add interactive vertical scale within <td> elements?
- Can we achieve z-index like functionality without using z-index for html email template?
- Remove specific border inside a table
- Woocommerce Custom Variations html table only showing columns with values
- Material React Table dragging on mobile
- Paginator changes index of datasource
- How to customize Element Plus el-table
- Is there a way to display table columns as rows?
- Dispatch metadata from WordPress DB query into a table with 4 columns
- Is there any npm package that can show json schema in table?
- Can I make a td rowspan just by using css?
- Ant design Table didnt hide when overflow:hidden on mobile
- Why my data is not arranged in a single table
- Is there a way to fix Undefined data in table cells?
- Using Jquery, replace specific row with specific row with using up and down button in table
Related Questions in DROPDOWN
- How to change the Font Weight of a SelectValue component in React when a SelectItem is selected?
- drop down list to decide which range my graph will plot
- Dropdown Values not change in Flutter Modal
- What is the optimal way to detect press outside of a component like a dropdown menu?
- DropdownButtonFormField doesn't apply custom InputDecoration style
- Need to modify the code so that alert appears when user skips a drop down between already selected dropdowns
- n is not a constructor error for bs4.5.2 dropdown and jquery 3.5.1
- Convert HTML Menu Code In Blogger to SubMenu
- PrimeVue Dropdown access country code from #value template to set default selected flag
- CTkScrollableDropdown, how to change dynamically the values
- How to insert JSON string format into velo (WIX) textbox
- Return value from another cell when a cell has text from a dropdown
- How to auto select item from Fluent UI Dropdown
- Hide the selected DropdownItem's text in the DropdownButton and only display the icon
- Blazor custom dropdown with HTML select and sorting by text, not value for enums
Related Questions in MUDBLAZOR
- MudBlazor select dropdown is transparent which it shouldn't be
- Mudblazor Razor page is loading more than one time
- How to fix the MudTabPanel when scrolling
- I have used a custom class with MudSelect. How do I get the list of selected items back?
- Implementing drag-and-drop with MudBlazor TreeView (or plain Blazor)
- Mudblazor FilterTemplate UI not updating after event
- Nav link icons wrapped in tooltips flash when drawer shrinks
- MudBlazor DataGrid Default Column Width
- Blazor MudForm validation function not called for initially not shown MudTextField
- Change column value at runtime based on condition in mudblazor
- Alternative to adding new fields in Model
- Delay in CascadingParameter to child component
- MudTable - How to set cell color
- MudBlazor DataGrid Cell Overflow in FireFox
- How to send data back from MudDialog
Related Questions in COLUMN-WIDTH
- I Want my MudSimpleTable Layout to be Static-Non Changing
- How to (auto)match the value of the container width to a custom fields value
- How can I keep the same bar width with ggbarplot when using colour = "" and position = position_dodge()?
- React Material-Table column widths do not auto-adjust if column filter is applied
- How to increase the width of Cover block in Gutenberg Editor,Wordpress?
- C# Aspose RTF - column width messed up with Asian languages
- I'm trying to put a width to an <td> tag in html in ngFor but is not working
- how to achieve the following in a cross tab Set the Header for each column,Need to increase the width of the Row group,Column group,
- DBVisualizer: Is there a way to adjust how the auto resize feature works on column widths?
- JFileChooser - adjust columns width
- Conflict with flex-item and overflow and width
- Set columnwidth of a styled dataframe
- Python-docx table column width
- Parsing Text file with irregular column width into Pandas
- How to make the sidebar full width to completely fill one side only?
Related Questions in MUDSELECT
- How to change selected options for MudBlazor MudSelect component with buttons?
- MudBlazor MudSelect: Unable to set property 'IMudShadowSelect' on object of type 'MudBlazor.MudSelectItem`1
- I Want my MudSimpleTable Layout to be Static-Non Changing
- how to change the background colour of the icon in custom tab pannel from transperant to grey when selecting an icon in mudblazor?
- I have used a custom class with MudSelect. How do I get the list of selected items back?
- How to use Multiselection with MudSelect in Mudblazor
- How to customise a MudBlazor Component
- MudBlazor: Display customized text in Muti-select
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
Use static units for max-width on the td for the static column. E.g.
max-width:1px;the value just needs to be> 0and you use theColGroup>colto control the width of the column. e.g.<col style="width:30%;" />I'd also recommend using the preexisting templates such as
MudTd,MudTh.MudBlazor snippet demo