Saturday, July 31, 2010

How to disable CheckBoxList using Javascript

I have faced this problem very recently,how to disable CheckBoxList using Javascript. It is not possible to disable like other object(textbox,combobox..) . After goggling I have found the solution now its sharing with you.....

Javascript code:
               // Get the checkboxlist object.
                var objCtrl = document.getElementById('<%=chkNeighborhoodFeatures.ClientID %>');                // Does the checkboxlist not exist?
                if(objCtrl == null)
                {        return;
                }

                var i = 0;
                var chkNeighborhoodFeaturesArray = objCtrl.getElementsByTagName('input');
                // iterate through listitems that need to be enabled or disabled
                for(i = 0; i
                {
                    objItem = document.getElementById('<%=chkNeighborhoodFeatures.ClientID %>' + '_' + i);
                    if(objItem == null)
                    {
                     continue;
                    }
                    // Disable/Enable the checkbox.
                    objItem.disabled = true;
                    // Should the checkbox be disabled?
                    objItem.checked = false;

                } 
           

Tuesday, July 20, 2010

Presentation@aloashbei community

Last 17th July I had presented  "Mobile Application development using .NET framework" at Aloashbei community get together. The aloashbei community was meeting together for the first time in Emmanuel’s Banquet Hall (House#4, Road# 134-135, Gulshan – 1, Dhaka) on 17th July at 10:30 AM.

Method 'StartWorkflowOnListItem' in type 'Microsoft.SharePoint.WorkflowServices.FabricWorkflowInstanceProvider'

Exception: Method 'StartWorkflowOnListItem' in type 'Microsoft.SharePoint.WorkflowServices.FabricWorkflowInstanceProvider'...