Enable search for hidden columns in jqGrid
Asked Answered
F

1

9

I have bunch of hidden columns in my jqGrid, on which I want to enable search,

eg.

{ name: 'Col1', width: 200, hidden: true, search: true },
{ name: 'Col2', width: 200, hidden: true, search: true },
{ name: 'Col3', width: 200, hidden: true, search: true }

But this columns not displaying search popup.

Can anybody help ?

Fronton answered 20/3, 2012 at 10:59 Comment(0)
P
21

You should use additional searchhidden option in the column definition:

searchoptions: {searchhidden: true}
Petrel answered 20/3, 2012 at 11:3 Comment(3)
Hey Oleg, I have 1 more query, sorting is not working in formatted column. I mean in column , I have concatted 2 columns Date and its time, its displaying fine , but its doing nothing at the time of sort.Fronton
@DotNetIsMyPower: Everything is possible, but one have to know implementation details. I suggest that you open new question and include the code which you use. The test data are also helpful.Petrel
yup right , Everything is possible, and I got its solution :-)Fronton

© 2022 - 2024 — McMap. All rights reserved.