08.09.2009, 11:05 | #1 |
Участник
|
mscrm4ever: CRM 4.0 Creating a Readonly picklist
Источник: http://mscrm4ever.blogspot.com/2009/...-picklist.html
============== CRM Picklist control (HTML select tag) does not have a read-only attribute like other input html controls. The only way to make it read-only is to disable it which grays out the control completely. Once you disable the Picklist you can’t change its border or font color (i.e. make it look like a read-only field). The only way to achieve the functionality is to change the control behavior so each time the user tries to change the Picklist value the Picklist initial value is re-selected. Here is the JS code that does the job: function OnCrmPageLoad() { ReadOnlyPicklist(crmForm.all.); } function ReadOnlyPicklist(picklist) { picklist.savedIndex = picklist.selectedIndex; picklist.onchange = function() { this.selectedIndex = this.savedIndex; } } OnCrmPageLoad(); Источник: http://mscrm4ever.blogspot.com/2009/...-picklist.html
__________________
Расскажите о новых и интересных блогах по Microsoft Dynamics, напишите личное сообщение администратору. |
|
|
|