I read those before while creating module but not helpful for my current situation. So far I stored generated application URL in a Session Variable and using this session variable in my UIgrid control extender OnInit() method
If session not null I am doing below
page.ClientScript.RegisterClientScriptBlock(this.GetType(), "JavaScript", "<script>" +
"window.CMS.UG_m_c_plc_lt_ctl01_Listing_gridElem.redir('\\/MyProjectName\\/CMSModules\\/AdminControls\\/Pages\\/UIPage.aspx?elementguid=31d7cbfe-1c46-4471-beca-499226b1a7ac&displaytitle=false&objectid=1');__doPostBack('m$c$plc$lt$ctl01$Listing$gridElem$v$ctl02$aedit','')</script>");
but it keeps throwing below error
Uncaught TypeError: Cannot read property 'UG_m_c_plc_lt_ctl01_Listing_gridElem' of undefined