PIVOTAL CRM FORUM PIVOTAL CRM FORUM
Free Pivotal CRM advice from experts
Welcome, Guest. Please login or register.
Did you miss your activation email?
September 08, 2010, 08:09:31 AM

Login with username, password and session length
Search:     Advanced search
A reputed Pivotal CRM consultant starts a Pivotal CRM blog www.pivotalcrm.info
2147 Posts in 649 Topics by 1195 Members
Latest Member: Nelfweels
Home Help Login Register
+  Pivotal CRM Forum
|-+  General Category
| |-+  Misc migration topics
| | |-+  How to change style in Client Script
« previous next »
Pages: [1] Go Down Print
Author Topic: How to change style in Client Script  (Read 329 times)
dounax
Full Member
***

Karma: +0/-0
Offline Offline

Posts: 18



How to change style in Client Script
« on: January 28, 2010, 01:19:08 AM »

I'm begining a migration and i have a little question about client script in C#.

How can we change the style of field in Client Script? ( font, background, color ...)

I've tried this.FormControl.GetControlByDataName[field].XXX but i haven't found any function which change the style.


Have you an idea?

Thanks for read my post
Logged
CarlC
Hero Member
*****

Karma: +4/-1
Offline Offline

Posts: 100



Re: How to change style in Client Script
« Reply #1 on: January 28, 2010, 07:47:14 AM »

you need to get at the windowscontrol version of the control, rather than the Pivotal version.

This can be done doing

CdcSoftware.Pivotal.WindowsFormControls.TextBoxControl txtBox = (CdcSoftware.Pivotal.WindowsFormControls.TextBoxControl) GetControl("").WindowsControl;

txtBox.BackColor = System.Drawing.Color.White;

txtBox has other properties.

Not sure whether this is supported or will disappear if Pivotal changes something on their end, but works.
Logged
dounax
Full Member
***

Karma: +0/-0
Offline Offline

Posts: 18



Re: How to change style in Client Script
« Reply #2 on: January 28, 2010, 08:24:49 AM »

THX, it's work.

I need just to cast my Pivotal control object to get to the style method.
Logged
Pages: [1] Go Up Print 
« previous next »
Jump to:  

Powered by MySQL Powered by PHP Pivotal CRM Forum | Powered by SMF 1.0 Beta 5 Public.
© 2001-2004, Lewis Media. All Rights Reserved.
Valid XHTML 1.0! Valid CSS!