Page 1 of 1
ew_SetClientVar not working on modal View page
Posted: Wed Nov 29, 2017 4:29 am
by sangnandar
This code works ok on non-modal View page:
Page_Render() {
ew_SetClientVar("addAction", "sometext");
Startup script:
$(".ewToolbar").append(ewVar.addAction);
But it fail on modal View page.
Why?
How to make it work?
Thanks.
Re: ew_SetClientVar not working on modal View page
Posted: Wed Nov 29, 2017 9:17 am
by mobhar
Since you open the modal dialog for View Page from List Page, then you should put this code:
ew_SetClientVar("addAction", "sometext");
in "Page_Render" server event that belongs to the "List Page" (not in View Page).
Re: ew_SetClientVar not working on modal View page
Posted: Wed Nov 29, 2017 7:43 pm
by sangnandar