Adding images and search to GRID header


Hi all,



I have a simple issue that needs resolution.



I am trying to add an image and search option to a particular column in Header of a dhtmlx grid. I am not able to combine both in a single column as given in one of your documentation. The Search text field doesn’t appear, only the image is visible



The code below is basically a modification of one of your samples provided. It might have some errors of modification.





when I do mygrid.setHeader(“Search for:,#text_search,img:[searchBig.gif],”); its able to display the textfield and image in columns but when I do



mygrid.setHeader(“Search for:,#text_search img:[searchBig.gif],”); I get only the image and not the Searchbox.





Code snippet:





####################################################################



<%@page contentType=“text/html” pageEncoding=“UTF-8”%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
http://www.w3.org/TR/html4/loose.dtd”>







    Skinning

    

    





    

    

    



















    

        

        

        

        

        

        

        

    

Sample: dhtmlxGrid
X




    




    Choose skin to apply:

    

        sb dark

        gray

        mt

        xp

        clear

        modern

        light

    



    










    












Appreciate your immediate help on this issue





Thanks & Best Regards



Harish



Unfortunately there is no way to place image and #text_search in the one header’s cell. But you can implement custom searching input and place it like simple html:
mygrid.setHeader(“Search for:, ,”)

Thanks for your reply . It helped to some extent.

Best Regards

Harish