Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

Is it possible to hide the calendar icon in the control DateTimeControl.

I have tried to set Calendar to none, but it still shows the icon.

share|improve this question

1 Answer 1

up vote 2 down vote accepted

Personally, I prefer not to deal with server side code in this king of cases.

You could do it easily embedding the following piece of code on the page for SharePoint 2010 (requires jQuery)

<script language="javascript">
$(function(){
  $('a[onclick*="clickDatePicker"]').css('display','none');
});
</script>

The same way could be easily used for different kings of presentation related customizations.

share|improve this answer
    
i got this error while trying your solutions. " 'style' is null or not an object" –  Tan Aug 28 '13 at 10:00
    
Please, try to use this. I updated the answer. –  Sergey Prosin Aug 28 '13 at 11:11
    
Thanks it works now –  Tan Aug 28 '13 at 12:14

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.