This content has been marked as final.
Show 3 replies
-
1. Re: Retrieve ExtendedDatatable Javascript Object.
radulf Nov 17, 2010 6:50 AM (in response to radulf)Someone? At least I would like to know if that is not possible.
-
2. Re: Retrieve ExtendedDatatable Javascript Object.
ilya_shaikovsky Nov 17, 2010 10:23 AM (in response to radulf)try #{rich:component('edtId')}.OnWindowResize()
b.t.w. client API for that component was not tested as component - community contributed.. so if will be some problems - better probably to use workaround.
-
3. Re: Retrieve ExtendedDatatable Javascript Object.
radulf Nov 17, 2010 11:23 AM (in response to ilya_shaikovsky)It worked as charm, but i did it a little diferently. Not the best approach, but I need to retrieve the object from a .js file, where I couldn't use the EL function. So, to workaround this, i used the prototype function $$ to retrieve everything with 'extdt-maindiv' class and got its components (the part that was missing for me ). The function that is called when the panels are resized looks like this now:
function westLayoutPanelResized() { // only have one table. var element = $$('.extdt-maindiv')[0]; if (element != null) { var extDt = element.component; extDt.OnWindowResize(); } };
Thanks a bunch.