Welcome Guest Search | Active Topics | Sign In | Register

Applying Skins to TreeView and Calendar Options
David Porter
Posted: Sunday, August 19, 2007 8:12:06 AM
Rank: Advanced Member
Groups: Member

Joined: 6/14/2007
Posts: 36
Hi There,

I am having some issues with applying skins to my controls. I have created skins using the tool, which then creates the relevant ascx files.

Example code:

sTreeSkinFile = "~/data/myTreeSkin.EO.TreeView.ascx"
sSkinName = "treeSkin"

EO.Web.TreeView.LoadTreeViewSkin(sTreeSkinFile, sSkinName)
oTreeView.ControlSkinID = sSkinName

AND

sCalendarSkinFile = "~/data/myCalSkin.EO.Calendar.ascx"
sSkinName = "calSkin"

EO.Web.Calendar.LoadCalendarSkin(sCalendarSkinFile, sSkinName)
oCalendar.ControlSkinID = sSkinName


(Where oTreeView is a EO.Web.TreeView control, and oCalendar is a EO.Web.Calendar control.

However, for the tree, the skin does not even show (but I get no error), and for the calendar, i get the following error:

"Unable to cast object of type 'EO.Web.Calendar' to type 'EO.Web.DatePicker'"

Even though I do not have any Date Pickers on the page.

My skins look ok if I copy the control out of the ASCX file and into an ASPX page, but I cannot seem to apply the ASCX to other controls.


The strange thing is, a similar approach works for the TabStrip without issue. All this code gets called in my Page_Load event.

Is there something I've missed or have done wrong?

Regards,
David
eo_support
Posted: Sunday, August 19, 2007 8:54:48 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,095
Hi David,

It appears the first one is a bug, we will look into it and get it fixed as soon as possible. As for the second one, the skin need to be a DatePicker, not a Calendar. This is because the this way the same skin can be applied to both a Calendar and a DatePicker. You can use DatePicker Builder to create a DatePicker skin, or you can simply edit the skin file that you have already created, just change eo:Calendar to eo:DatePicker.

Thanks
David Porter
Posted: Sunday, August 19, 2007 6:58:07 PM
Rank: Advanced Member
Groups: Member

Joined: 6/14/2007
Posts: 36
Hi There,

Thanks for the quick response. :)

By changing the skin to use eo:DatePicker instead of eo:Calendar then it works :). Might be a comment you need to add to the Calendar builder so this is more obvious.

I look forward to the fix for the TreeView issue.

Regards,
David
David Porter
Posted: Thursday, August 23, 2007 7:23:08 PM
Rank: Advanced Member
Groups: Member

Joined: 6/14/2007
Posts: 36
Hi,

Is there a timeframe for a fix for this issue?

Regards,
David
eo_support
Posted: Thursday, August 23, 2007 7:49:09 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,095
Hi David,

I believe we already have an internal build that fixed this problem. Please see your private message for the download location for the fix.

Thanks
David Porter
Posted: Thursday, August 23, 2007 7:53:07 PM
Rank: Advanced Member
Groups: Member

Joined: 6/14/2007
Posts: 36
Thanks :)

I hopefully will get a chance to test this today. I'll respond back to let you know how it went.

Cheers,
David


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.