File tree Expand file tree Collapse file tree 3 files changed +11
-2
lines changed 
blazorbootstrap/Components/Grid Expand file tree Collapse file tree 3 files changed +11
-2
lines changed Original file line number Diff line number Diff line change 6969                                                      GridColumnFilterChanged =" async args => await column.OnFilterChangedAsync(args, column)" 
7070                                                      PropertyType =" @column.GetPropertyType()" 
7171                                                      PropertyTypeName =" @column.GetPropertyTypeName()" 
72-                                                       Unit =" @Unit " 
72+                                                       Unit =" @column.FilterTextboxWidthUnit " 
7373                                } 
7474                            </th >
7575                        } 
Original file line number Diff line number Diff line change @@ -248,6 +248,15 @@ private async Task OnSortClickAsync()
248248    [ Parameter ] 
249249    public  int  FilterTextboxWidth  {  get ;  set ;  } 
250250
251+     /// <summary> 
252+     /// Gets or sets the filter textbox width units. 
253+     /// </summary> 
254+     /// <remarks> 
255+     /// Default value is <see cref="Unit.Px" />. 
256+     /// </remarks> 
257+     [ Parameter ] 
258+     public  Unit  FilterTextboxWidthUnit  {  get ;  set ;  }  =  Unit . Px ; 
259+ 
251260    /// <summary> 
252261    /// Gets or sets the filter value. 
253262    /// </summary> 
Original file line number Diff line number Diff line change @@ -183,7 +183,7 @@ or StringConstants.PropertyTypeNameDecimal
183183    [ Parameter ] 
184184    public  GridFiltersTranslationDelegate  FiltersTranslationProvider  {  get ;  set ;  }  =  default ! ; 
185185
186-     private  string  filterStyle  =>  FilterWidth  >  0  ?  $ "width:{ FilterWidth . ToString ( CultureInfo . InvariantCulture ) } { Unit . ToString ( ) . ToLower ( ) } ;":  "" ; 
186+     private  string  filterStyle  =>  FilterWidth  >  0  ?  $ "width:{ FilterWidth . ToString ( CultureInfo . InvariantCulture ) } { Unit . ToCssString ( ) } ;":  "" ; 
187187
188188    /// <summary> 
189189    /// Gets or sets filter value. 
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments