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
- Prevent tables from relocating
- Add a small space between tables
- CSS background property applied to HTML Input element within Table cell
- Python Beautiful Soup Table Data Scraping Specific TD Tags
- How can I make my cells align text to the left?
- Fixed column in table
- MVC View change specified row bgcolor
- How can I capture the value of a variable in a for loop using an event handler?
- How to maintain two tables side by side horizontally?
- Appending rows into table from dictionary
- thead style not applied
- Make divs inside table cells the same height without javascript
- Extract a Cell/Td/tabledata value from a given row of a table using javascript/jquery
- Echo html table with specific field
- Table click function called twice
Related Questions in DROPDOWN
- VBA Clear Contents in Drop Down List
- How do I sort table from dropdown list
- How to fill the second dropdown with the same value as the first dropdown
- dropdown color in choosen option
- Not able to get Angular 2 dropdown current value in ngModel
- dynamic dropdownlist in ASP.net Razor MVC5 from a Many to many database
- Unity Dropdown add values from database
- Drop down values selected in classic dialog doesn't show same value in touch ui dialog
- Bootstrap Dropdown not working with dynamic html
- Echo 'selected' in html5 dropdown form using PHP
- dropdown list that links to another page with direct href in a same page
- Dropdown has a SelectedValue which is invalid because it does not exist in the list of items, even though I cleared the selected items (C#)
- What's the purpose of dropdown-toggle class in bootstrap dropdowns?
- How to add multiple values from different arrays into an dropdown?
- VBA select dropdown menu website
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
- How to style Directory Listings with Apache Mod_autoindex using NameWidth & HTMLTable?
- iText 7 column widths why do these not fit?
- Auto Resize of Columns in a Data Grid from SQL using C#
- C# Convert csv to excel 2007
- column images full width responsive
- Twitter Bootstrap 3.0 - difference between nesting
- Ruby Axlsx true auto-width for columns?
- XSL-FO overflows width when flowing from page-master with wide region-body to narrow (including column-width changes) in Apache FOP and XMLSpy
- Same width in different columns using css
- HTML table, horizontal scroll which tracks headings and vertical scroll- problem with text width
- WPF user controlled grid column width
- formatting data table in RShiny
- How can I access the value of my hidden Gridview column?
- How to fix ngx data table column width with column mode is 'force'
- How to remove ellipsis from a row in a Python Pandas series or data frame, shown when long lines/wide columns are truncated?
Related Questions in MUDSELECT
- I have used a custom class with MudSelect. How do I get the list of selected items back?
- MudBlazor: Display customized text in Muti-select
- how to change the background colour of the icon in custom tab pannel from transperant to grey when selecting an icon in mudblazor?
- I Want my MudSimpleTable Layout to be Static-Non Changing
- MudBlazor MudSelect: Unable to set property 'IMudShadowSelect' on object of type 'MudBlazor.MudSelectItem`1
- How to change selected options for MudBlazor MudSelect component with buttons?
- How to customise a MudBlazor Component
- How to use Multiselection with MudSelect in Mudblazor
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