ASP.net
Awesome
Learn
Forum
Buy
Demos
Sign In
☾
☀
Switch to
Dark
Light
Mode
this site works best with javascript enabled
Ask Question
Popup open on second click
Title:
B
I
{code}
?
Hello, when "viewbutton" button clicked first time popup opens, after close in opens only on second click. @(Html.Awe().InitPopupForm() .Name("Preview") .Width(800) .Url(Url.Action("Preview")) .Mod(o => o.OutClickClose()) .Title("MEDIA FILE") .Top().UseDefaultButtons(false) ) @{ var viewbutton = "<a class='btn btn-primary viewnst' data-toggle=\"tooltip\" data-placement=\"top\" title=\"View file\"><i class='ti-eye'></i></a>"; } @(Html.Awe().Grid(gridId) .Url(Url.Action("GridGetFiles", "m_files")) .Parent("txtSearch", "search").Parent("filetype", "filetype") .ShowGroupedColumn(false) .Page1OnSort(true) .Attr("data-syncg", "m_files") .Nests( new Nest { Name = "viewnst", GetFunc = "utils.loadNestPopup('Preview')" } ) .Columns( new Column { Bind = "fileTitle", ClientFormat = ".(FileTitle)", Groupable = false, Header = @Html.DisplayNameFor(x => x.fileTitle).ToString()}, new Column { Bind = "fileDescription", ClientFormat = ".(FileDescription)", Groupable = false, Header = @Html.DisplayNameFor(x => x.fileDescription).ToString() }, new Column { Bind = "idFileType", ClientFormat = ".(FileType)", Header = @Html.DisplayNameFor(x => x.idFileType).ToString(), Width = 120 }, new Column { ClientFormat = viewbutton, Header = "View", Width = 60 } ) .SingleColumnSort(true)) Regards, Vladimir.
Save Changes
Cancel
Vladimir Kerzhentsev
asked at 17 Feb 2022
please try to isolate the problem as shown here: https://www.aspnetawesome.com/learn/mvc/CommonProblems#Isolate-the-problem so we could have a look
at 18 Feb 2022
Omu
The problem was connected with cache: after I restarted the application pool a few times it disappeared. Thank you for your assistance.
at 22 Feb 2022
Vladimir Kerzhentsev
Answers
please
Sign In
to leave an answer
By accessing this site, you agree to store cookies on your device and disclose information in accordance with our
cookie policy
and
privacy policy
.
OK