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

Change property of radelement in radstatusstrip during runtime

1 Answer 9 Views
StatusStrip
This is a migrated thread and some comments may be shown as answers.
Wesley
Top achievements
Rank 1
Wesley asked on 19 Jan 2015, 07:38 AM
Hi,

I have to 2 RadLabelElement in my RadStatusStrip. assuming the name RadLabelElement1 and RadLabelElement2. when the application load, the RadLabelElement2 text is ready. when the condition become login, i want to make RadLabelElement2 text become "login" and there's an image on the left side in the RadLabelElement2. How do i make it like that. thanks

Best regards,

Wesley

1 Answer, 1 is accepted

Sort by
0
Todor Vyagov
Telerik team
answered on 21 Jan 2015, 10:43 AM
Hello Wesley,

Thank you for writing.

You can set your label text and image at run time, for example upon a button click like this:
private void radButton1_Click(object sender, EventArgs e)
{
    radLabelElement2.TextImageRelation = TextImageRelation.ImageBeforeText;
    radLabelElement2.Text = "Login";
    radLabelElement2.Image = Resources.Image1;
}

I hope this helps.

Regards,
Todor
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
Tags
StatusStrip
Asked by
Wesley
Top achievements
Rank 1
Answers by
Todor Vyagov
Telerik team
Share this question
or