Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #100913
    admin
    Keymaster

    Good Morning,
    I have a problem with the initalization of the grid. On my website, I change html contents with the jquery $.load() method. By doing so, I am loading a smart-grid, too.
    The problem is, when I replace the html by other contents and then load the html with the smart-grid again, I lose all the properties. I use Smart(‘#grid’, class{}) for the initialization. Is this wrong? Is there any way to keep the properties? Or am I not allowed to put the grid out of the DOM and put it in again?
     
    Best Regards,
    Gerhard

    #100914
    admin
    Keymaster

    Hi Gerhard,
    That initialization requires the HTML Element to be in the DOM. If the querySelector by id, which in this case is ‘grid’, the component properties would not be set. In general, it is not necessary to use that kind of initialization. You can set properties as in the standard SELECT tags like myGrid.someProperty = someValue;
    Regards,
    Peter
    Smart UI Team
    https://www.htmlelements.com/

    #100928
    admin
    Keymaster

    Hi Peter,
    thank you very much! That worked for me.

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.