hii everyone
i am using ig:link to refresh my ig:grid. After refreshing the grid i need to call a javascript function.
like "oncomplete" which we are using in a4j. is there any method to call a javascript function after the grid get loaded with data.
Thanks in advance
Hi Vijayada:
If you go to http://java.samples.infragistics.com and open the WebGrid bar, you'll see a sample labeled "CSOM".Click this link and in the sample that appears on the right, select the "JSP Source Code" tab. Here you'll see all the client side events for the grid listed. There is not an onLoaded event, but if you want to do something in JS when the PAGE is loaded you can, of course, us the onLoad event of the browser.
Not knowing the specifics of your application, I can't advise you further right now.
Best, Jim
Thanks jim
My grid contains context menu and all. so it takes some time to load. so on onload event if i write the js function is calling before the gird got loaded. after loading the page it is taking about 2 3 seconds to load the grid.
Okay - do you need any further information?
Thanks,Jim
Thanks Roshan
It is very helpful
Hello Vijayada,
Please refer the following page to get know more uses of the ig.smartSubmit() along wiht the sample applicaiton:
http://www.componentsforjsf.com/WebAJAXExamples/faces/examplePages/ajaxFromHTML.jsp
Thank you.
Thanks roshan
where i should include this ig:smartSubmit
Hi Vijayada,
If you are using the Infragistics ajax feature..which work on smartSubmit() java script function, then you can use the call back function by using this function.
ig.smartSubmit("frm1",null,null,"frm1:txt1","MycallBack");
function MycallBack(httpReq)
{
alert("After SmartRefresh Call");
}
Note: Here fifth parameter of smartSubmit() can be use as a callback method which will be invoke after completeing the Ajax submit.
Roshan
HI JIM
i am using NetAdvantage for JSF Vol1 2008. CAN I USE these
ig:gridClientEvents in my version or if not how should i get the events direct in javascripti want to call a js function after ajaxResponseCompletedThanks in advance