jQWidgets Forums
Forum Replies Created
-
Author
-
January 15, 2014 at 8:41 pm in reply to: cellclick broke with latest version of chrome and jqxgrid 2.x cellclick broke with latest version of chrome and jqxgrid 2.x #47925
I just tried it again and no joy. I think i did it originally this way
$('#main-container').on('cellclick', '#jqxgrid', function (event){ console.log("Cell clicked"); });
because the page is being loaded dynamically…
January 15, 2014 at 7:54 pm in reply to: cellclick broke with latest version of chrome and jqxgrid 2.x cellclick broke with latest version of chrome and jqxgrid 2.x #47919I did find in my init, if i added
if ( jQuery('#jqxgrid').length > 0 ) { jQuery('#jqxgrid').jqxGrid('clear'); }
that i no longer got the #jqxgrid! Please, check whether the used ID or CSS Class name is correct.
but the cellclick still no longer works
$('#main-container').on('cellclick', '#jqxgrid', function (event){ console.log("Cell clicked"); });
January 15, 2014 at 7:46 pm in reply to: cellclick broke with latest version of chrome and jqxgrid 2.x cellclick broke with latest version of chrome and jqxgrid 2.x #47918Peter, thanks for responding.
this is in a very large app , so i will try to provide some
If i simply replace the 2.7 version with the 3.1 version , when the page loads(that used to work) i get
#jqxgrid! Please, check whether the used ID or CSS Class name is correct.in the jQuery(document).ready(function($) i load via ajax the html that contains the div with the id of jqxgrid
i then tried in the html to add a temp div to middiv which is where the dynamic content is being loaded. So when the dynamic code gets loaded , the jqxgrid will get replaced with new html that includes the real jqxgrid div. This kindof worked, the grid loaded with the correct amount of rows, but the table labels did not populate and the cellclick no longer worked.
<div id="main-container" class="row-fluid"> <div id="middiv" class="row-fluid"> <div id="jqxgrid"></div> </div> </div>
I hope this is enough information
Thanks
January 15, 2014 at 3:42 pm in reply to: Uncaught Error: Invalid jQuery Selector Uncaught Error: Invalid jQuery Selector #47905i found that if i put <div id=”jqxgrid”></div> in the div that is going to get injected and replaced with new html that included the grid fixed the problem. Seems like it needs it when the jqxgrid script loads. This kind of fixed the problem, now other functionally does not work. The cells are created but the labels are not being displayed. So this little hack may not be the answer
January 15, 2014 at 3:33 pm in reply to: Uncaught Error: Invalid jQuery Selector Uncaught Error: Invalid jQuery Selector #47904Hi Siva,where did you end up putting those checks in your coding to make it work (in the doc ready section?)
Thanks
RandyJanuary 15, 2014 at 3:29 pm in reply to: Uncaught Error: Invalid jQuery Selector Uncaught Error: Invalid jQuery Selector #47903I am having the exact error
Works find in previous version and now does not
has anyone figure out what has broke (Peter please do not respond with that generic check your html . I can read and it worked before!)
It appears to be something with dynamic loading of the grid. I am using it in a large single page app. -
AuthorPosts