Popupform title

Sep 20, 2011 at 8:25 PM


Is it possible to set the title of a popupform from @Html.PopupActionLink(..)?



Sep 20, 2011 at 9:18 PM

no you do it in the MakePopupForm

but I think you can change it with custom js in your view if you really need to

basically you do $('#popupid').dialog({ title: 'my new title' });

Sep 21, 2011 at 6:35 AM

Thanks. I ended up copying the standard function and adding one line which sets the title. 


    function callpviewlibraryTitle(id, title) {
        if(lpviewlibrary != null) return;
        lpviewlibrary = true;
        $.get('/Library/View', { id : id }, function(d){
            lpviewlibrary = null;
            $("#pviewlibrary").dialog("option", "title", title);

This would be handy in the Awesome library ;)