Hi,
I have a radgrid with EditMode = "Popup" and EditType = "WebUserControl"
I can set some parameters of the PopUp using javascript:
var popUp;
function ShowPopUp(sender, args) {
popUp = args.get_popUp();
popUp.style.height = "auto";
popUp.style.width = "680px";
popUp.style.left = ((window.innerWidth - 680) / 2).toString() + "px";
popUp.style.top = ((window.innerHeight - 515) / 2).toString() + "px";
}
But how can I modify the settings from the caption of the popup?
Settings like:
Height
FontSize
FontColor
BackColor
Thank you so much for attention! And sorry for my bad english!
6 Answers, 1 is accepted
0
Accepted
Hello Marcelo,
You can achieve this requirement using CSS:
Hope this helps. Please give it a try and let me know about the result.
Regards,
Eyup
Telerik
You can achieve this requirement using CSS:
<style>
div.RadGrid div.rgEditForm div.rgHeader {
height
:
40px
!important
;
font-size
:
large
;
color
:
white
;
background-color
: lightblue;
background-image
:
none
;
}
</style>
Hope this helps. Please give it a try and let me know about the result.
Regards,
Eyup
Telerik
Do you want to have your say when we set our development plans?
Do you want to know when a feature you care about is added or when a bug fixed?
Explore the
Telerik Feedback Portal
and vote to affect the priority of the items
0
Marcelo
Top achievements
Rank 1
answered on 31 Jul 2015, 05:51 PM
Hello, Eyup.
Thank's for the answer!
This works fine!! Just the vertical align doesn't works and I don't know why.
After your help my code looks like:
<
style
type
=
"text/css"
>
div.RadGrid div.rgEditForm div.rgHeader {
height: 45px !important;
font-size: medium;
color: white;
background-color: rgb(49,147,192);
background-image: none;
vertical-align: middle; // This doesn't works
}
div.RadGrid div.rgEditForm {
border-color: rgb(75,75,75);
}
</
style
>
Regards,
Marcelo
0
Hello Marcelo,
You can achieve that by adding the following line to the mentioned rule:
That should do the trick. Looking forward to your reply.
In addition you can check various resources over the net about centering div content vertically:
http://www.vanseodesign.com/css/vertical-centering/
Regards,
Eyup
Telerik
You can achieve that by adding the following line to the mentioned rule:
line-height
:
33px
;
That should do the trick. Looking forward to your reply.
In addition you can check various resources over the net about centering div content vertically:
http://www.vanseodesign.com/css/vertical-centering/
Regards,
Eyup
Telerik
Do you want to have your say when we set our development plans?
Do you want to know when a feature you care about is added or when a bug fixed?
Explore the
Telerik Feedback Portal
and vote to affect the priority of the items
0
Marcelo
Top achievements
Rank 1
answered on 05 Aug 2015, 12:44 PM
Hello Eyup.
I did it with the command above:
padding-top: 10px;
Thank's again!!!
You can close this thread.
0
Hhj
Top achievements
Rank 1
answered on 11 Jul 2016, 08:21 AM
How to modify Popup Caption alignment in code behind
0
Hi,
You can use the CSS rule below to achieve this requirement:
CSS:
I hope this will prove helpful.
Regards,
Eyup
Telerik by Progress
You can use the CSS rule below to achieve this requirement:
<
EditFormSettings
CaptionFormatString
=
"Modify a Record"
>
</
EditFormSettings
>
div.RadGrid .rgEditForm .rgHeader > div:first-child {
margin-left
:
60%
;
}
I hope this will prove helpful.
Regards,
Eyup
Telerik by Progress
Do you need help with upgrading your ASP.NET AJAX, WPF or WinForms projects? Check the Telerik API Analyzer and share your thoughts.