Posts

Showing posts from 2012

React and SPFx Interview Questions with Scenarios and Code Examples

Introduction React and SharePoint Framework (SPFx) are popular technologies used in modern web development, especially for building user interfaces and custom web parts in SharePoint. Preparing for interviews involving these technologies requires a solid understanding of core concepts, practical scenarios, and coding proficiency. In this blog, we’ll cover essential interview questions, different scenarios, and code examples to help you ace your React and SPFx interviews. Section 1: React Interview Questions 1. What is the Virtual DOM, and how does it improve performance in React? Scenario: Imagine you’re building a dashboard with multiple widgets that update frequently. How would React's Virtual DOM help optimize performance in this case? Explanation: React uses a Virtual DOM, an in-memory representation of the real DOM. When the state of an element changes, React updates the Virtual DOM first. It then calculates the difference (diffing) between the previous and current states of

HIde left navigation and top riboon by using CSS Code for sharepoint 2010

Hi Friends,                      As many time i face the issues that need to hide the top pannel in sharepoint page. Finally after some googleing and my css terms i got these functionality . please follow the below steps to add the code add content editor page in the page Add the below code in editor and make the layout hidden . it will hide the top bar. <style type="text/css"> #s4-ribbonrow, .ms-cui-topBar2, .s4-notdlg, .s4-pr s4-ribbonrowhidetitle, .s4-notdlg noindex, #ms-cui-ribbonTopBars, #s4-titlerow, #s4-pr s4-notdlg s4-titlerowhidetitle, #s4-leftpanel-content {display:none !important;} .s4-ca{margin-left:0px !important; margin-right:0px !important; </style> Thanks and Regards Amit

site collection by using Windows PowerShell

Create a site collection by using Windows PowerShell You typically use Windows PowerShell to create a site collection when you want to automate the task, which is common in enterprises. To create a site collection by using Windows PowerShell Verify that you meet the following minimum requirements: See Add-SPShellAdmin . On the Start menu, click All Programs . Click Microsoft SharePoint 2010 Products . Click SharePoint 2010 Management Shell . From the Windows PowerShell command prompt (that is, PS C:\>), type the following command and press ENTER: 6.   Get-SPWebTemplate 7.   $template = Get-SPWebTemplate "STS#0" New-SPSite -Url " <URL for the new site collection> " -OwnerAlias " <domain\user> " -Template $template This example retrieves a list of all available site templates and then creates a site collection by using the Team Site template. For more information, see New-SPSite and Get-S