24 maja 2010 21:21I have run the SDK demo [Walkthrough: Customizing the PWA Ribbon and] Accessing the JS Grid. This works only in the Project Center page and does not work in a schedule page. From the narrative, I should be able to get grid info from any PJ page that has a JSGrid. What do I have to change in the code that allows me to access a schedule page? I suspect that the "ProjectCenterMain" name in the initial OnLoad...call is what has to be changed. If so...to what? and ... where does one come to know the names of all such things within the model? Thanks.
25 maja 2010 01:08ModeratorThis not really supported on the schedule webpart page as it does not use the "Satellite" infrastructure like the other pages do. You can however get a reference to the grid object by going to its parent node in the DOM and calling the .jsgrid accessor. From that point on you should be able to use the grid as you would on other pages like project center, however it is not supported from a programmability standpoint and could get broken in a hotfix if the parent node element was changed in some way.
26 maja 2010 20:06
Would it be possible to post an example of doing this? Thank you.
21 września 2012 15:35
what do you mean guys "does not use the satellite" ) and proposing the variand with the DOM )
do not torture people )
here is the code to access the schedule js grid control in a PDP
var satellite = projectDrilldownComponent.get_ProjectDrilldownSatellite(); var grd = satellite.GetJsGridControlInstance();