This is a migrated thread and some comments may be shown as answers.

Dropdownlist label font

3 Answers 66 Views
DropDownList
This is a migrated thread and some comments may be shown as answers.
jim
Top achievements
Rank 1
jim asked on 01 Sep 2017, 07:56 PM

I came across this issue and have been looking for awhile. In a radgrid control in edit mode I have a dropdownlist control and the font weight for the label is not bold. How can I do this? Also, in edit mode I have a radtextbox and it's label font weight is bold and can't be changed.

Thank you in advance.

Jim

3 Answers, 1 is accepted

Sort by
0
Vessy
Telerik team
answered on 05 Sep 2017, 01:59 PM
Hi Jim,

You can see how to access the controls in the Edit form of the Grid in the following forum post:
http://www.telerik.com/forums/accessing-controls-in-radgrid-edittemplate-edit-mode#npXQwt0PH0Si6VfJNbK-9Q

Once you get reference to the control which weight you want to control, you can set all needed properties to it. Let me know if you need further assistance on this matter.

Regards,
Vessy
Progress Telerik
Try our brand new, jQuery-free Angular 2 components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
0
jim
Top achievements
Rank 1
answered on 05 Sep 2017, 03:52 PM

Hi Vessy,

Here is my code..

<style type="text/css">
.label{
font-weight: normal !important;
}
</style>

<telerik:RadTextBox LabelCssClass="label" ID="radName" runat="server" Text='<%# Bind("name") %>' Width="160px" Skin="Bootstrap" ></telerik:RadTextBox>

and code behind...

protected void rgDependents_ItemDataBound(object sender, GridItemEventArgs e)
{
if(e.Item is GridEditableItem && e.Item.IsInEditMode)
{
GridEditableItem item = (GridEditableItem)e.Item;
RadTextBox txtname = (RadTextBox)item.FindControl("radname");
txtname.LabelCssClass = "label";
}
}

With all this, the font for the label is still bold. Any other ideas?

Thank you,

Jim

 

0
Vessy
Telerik team
answered on 08 Sep 2017, 02:14 PM
Hi Jim,

Can you share the whole RadGrid configuration, so we can reproduce the problem and examine what is causing it on our side. You can see how to prepare such page here:
http://www.telerik.com/blogs/isolating-a-problem-in-a-sample-project

Regards,
Vessy
Progress Telerik
Try our brand new, jQuery-free Angular 2 components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
Tags
DropDownList
Asked by
jim
Top achievements
Rank 1
Answers by
Vessy
Telerik team
jim
Top achievements
Rank 1
Share this question
or