ASP.net
Awesome
Learn
Forum
Buy
Demos
Sign In
☾
☀
Switch to
Dark
Light
Mode
this site works best with javascript enabled
Ask Question
Lookup: Ok and Cancel ClassName
Title:
B
I
{code}
?
Hi, Is possible to assign classnames for the OK and another for the Cancel button in the dialog of a Lookup? I need to put a different image in each button. Thanks.
Save Changes
Cancel
sgambolati
asked at 27 Jan 2014
there's no easy/direct way, you could use plain css to get to the button or use custom js in a custom search lookup form (http://demo.aspnetawesome.com/LookupDemo/CustomSearch); you can also bind (using $(document).on) to the dialogopen event of the popup window (popup window has id = lookupid-awepw)
at 27 Jan 2014
Omu
Can you please, take this sugestion for future version? I need this because I have in older versions.
at 27 Jan 2014
sgambolati
what do you mean ?
at 27 Jan 2014
Omu
I would like to set this in anywhere else instand of doing JS-stuff in all the views where I have lookups.
at 27 Jan 2014
sgambolati
so I understand you want for this to be easier to accomplish in the next version ? for the moment, you don't have to do it in all the views where you have lookups, you can do it in the Site.master/_Layout.cshtml, bind to the dialogopen check if the lookup has a lookup related class (awe-list awe-srlcont) inside of it, if yes you modify the buttons
at 27 Jan 2014
Omu
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