Welcome Guest Search | Active Topics | Sign In | Register

Dynamic creation of progressbar does not accept skinid Options
Anton Beerens
Posted: Friday, November 14, 2008 2:38:15 AM
Rank: Newbie
Groups: Member

Joined: 11/14/2008
Posts: 3
Hi,

I have a website where a progressbar is created dynamically in the onload of the page. (see code below) This does work because when I enter the backgroundcolor etc I see the control.

However when I choose a SkinId this does not work. The bar is there because I see the percentage text but the rest is not showed properly.

If I put the progressbar directly on the page (not dynamic) then SkinId does work...

Do I forget something to initialize?

Kind regards,
Anton Beerens

code is:
EO.Web.ProgressBar myProgressBar = new EO.Web.ProgressBar();
myProgressBar.SkinID = "Windows_Vista";
myProgressBar.Maximum = 100;
myProgressBar.Minimum = 0;
myProgressBar.Value = 75;
myProgressBar.Height = 15;
myProgressBar.Width = 100;
myProgressBar.Visible = true;
myProgressBar.ShowPercentage = true;

eo_support
Posted: Friday, November 14, 2008 5:38:58 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,194
Hi,

Try to move the code from Page_Load into Page_Init and see if that works.

Thanks!
Anton Beerens
Posted: Monday, November 17, 2008 9:22:56 AM
Rank: Newbie
Groups: Member

Joined: 11/14/2008
Posts: 3
Hi,

I tried to create the progress bar in the Page_init but the same result. percentage is visible but the bar is not.

Kind regards,
Anton Beerens
eo_support
Posted: Monday, November 17, 2008 7:01:06 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,194
Hi,

You need to use:

Code: C#
myProgressBar.ControlSkinID = "Windows_Vista";


Instead of:

Code: C#
myProgressBar.SkinID = "Windows_Vista";


Thanks
Anton Beerens
Posted: Tuesday, November 18, 2008 9:33:18 AM
Rank: Newbie
Groups: Member

Joined: 11/14/2008
Posts: 3
Hi,

Thank you very much that works fine!

Kind regards,
Anton Beerens


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.