Access JSGrid in Project Schedule
-
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.
Wszystkie odpowiedzi
-
25 maja 2010 01:08Moderator
This 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.- Oznaczony jako odpowiedź przez Patrick MalatackModerator 25 maja 2010 01:08
- Oznaczenie jako odpowiedzi cofnięte przez Hill57 26 maja 2010 20:06
- Oznaczony jako odpowiedź przez Brian Smith - MSFTMicrosoft Employee, Moderator 1 czerwca 2010 22:44
-
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();