Attaching dhtmlx gridbox to a Modal Window


Hello All,



I have a problem with attaching a grid to a Modal window. I followed the snippet provided in your documentation as per the

URL : dhtmlx.com/docs/products/docsExp … &type=smpl



it did not work as expected. May be I am missing something here.



Copy of my index.jsp/html page - Basically its grid with data populated by JSON object and then to be attached to the modal window.



When I try attaching the below way it does not display the grid nor the modal window properly.





Code ::



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



<%@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

    



    










    












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





Note : Without the attaching grid to modal window it works perfectly.





Please advise on what could be missing or wrong here as I tried many variations but nothing seems to work.







Many Thanks in Advance





Harish


Hello,


There are a lot of issues in the provided code. The main of them is that setHeader method isn’t missed here.


We have attached the correct sample


1250760010.zip (107 KB)


Thanks for your Sample Code and it helped me and I am able to replicate it for a small POC . I will contact you again if I have something more to know


Best Regards

Harish