Author Topic: Add an html element in a blank filter column cell.  (Read 638 times)

jplevene

  • Pro Ultimate
  • Full Member
  • *
  • Posts: 154
    • View Profile
Add an html element in a blank filter column cell.
« on: July 20, 2025, 11:19:55 pm »
In my grid, some cells have filters, others don't.  In one of the columns that does NOT have a filter (so the filter cell is blank), I want to insert my own HTML element.  How do I do this?

paramvir

  • Administrator
  • Hero Member
  • *****
  • Posts: 6415
    • View Profile
Re: Add an html element in a blank filter column cell.
« Reply #1 on: July 21, 2025, 07:56:44 pm »
non filter cells in filter row are not configurable, however following workaround can be used:

Code: [Select]
filter:{
crules:[{condition:'equal'}],//use some condition.
init: function(ui){
ui.$cell.html("Empty");//insert custom html.
return true;
}
}

jplevene

  • Pro Ultimate
  • Full Member
  • *
  • Posts: 154
    • View Profile
Re: Add an html element in a blank filter column cell.
« Reply #2 on: July 22, 2025, 07:35:58 pm »
Should have mentioned that I already did this.  Just wondered if there was another way.  Thanks