ASP.net
Awesome
Learn
Forum
Buy
Demos
Sign In
☾
☀
Switch to
Dark
Light
Mode
this site works best with javascript enabled
Ask Question
ClientFormat in popup title
Title:
B
I
{code}
?
Hello I am migrating from 6.7.3 to version 7.0.2. In Previous version im using client format in popup titles like this. public static string RenderButtonForOpenPopupWithTitle<T>(this IHtmlHelper<T> html, string title, string popupAction, string grid, string text, string key = "Id", string cssClass = "awe-btn o-pad", bool isCaretNeeded = true, object parameters = null, bool isEnabled = true) { var buttonName = text +(isCaretNeeded ? $" {_caret}" : ""); parameters = ConstructNewParametersWithId(key, parameters); return html.Awe().Button().Enabled(isEnabled).OnClick( html.Awe().OpenPopup(GetPopupName(html, popupAction, grid)).Params(parameters).Title(title) ).CssClass(cssClass).Text(buttonName) .ToHtmlString(); } Where title for example is ".(DispCoreSymbolName)" And call this method like this new Column { ClientFormat = Html.RenderButtonForOpenPopupWithTitle(".(DispCoreSymbolName)", "bookDisplay", grid, "Book"), Width = 100, Sortable = false, Reorderable = false, Resizable = false, Groupable = false, CssClass = "columnButton" }.Mod(o => o.Nohide()), But this not work in 7.0.2, and in result i get empty title. How i can use this in last version?
Save Changes
Cancel
Evgeny Alekseev
asked at 23 Aug 2021
you can download again, version 7.0.3 now, and the `OpenPopup` helper should work as before
at 23 Aug 2021
Omu
Thanks, it works right now
at 24 Aug 2021
Evgeny Alekseev
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