Skip to main content

Posts

Interview Questions of JavaScript

Top JavaScript Interview Questions with Answers Top JavaScript Interview Questions with Answers Author: Vishal Thakur Published: August 2021 JavaScript is a powerful and widely-used client-side scripting language. It is essential for web developers to have a strong understanding of JavaScript concepts to excel in interviews. Below are some of the most frequently asked JavaScript interview questions with detailed answers. 1. What is a Higher-Order Function in JavaScript? Answer: A higher-order function is a function that can accept another function as an argument or return a function as a return value. It is similar to delegates in .NET. const varfirstOrderFunction = () => console.log('HI!! this is first order'); const varHigherOrderFunction = ReturnFirstOrderFunction => ReturnFirstOrderFunction(); ...

Add dynamic control on property panel conditionally in SharePoint SPFx

How we can add text, select and checkbox fields dynamically to provide a rich and meaningful full user experience in the SPFx framework? Solution provided: The answer is yes, it is possible to add, show, hide inputs fields conditionally based on the user requirement in the SPFx framework property panel in the SharePoint modern side to realize how modern it is and w hich can be used only on demand. To achieve that kind of feature we just need to use some logic on our solution, so, don't be worried I am going to tell you all here about the new project. Step-1 Open the PowerShell or Visual Studio Code and run the command to create the new solution yo @microsoft /sharepoint     then select the solution name and WebPart name, in my case I created DynamicControl as the solution name. Once it is completed need to run gulp build after the successful build up the solution you only need to follow the below steps to achieve it on your solution To achieve this you need to write some ...

How to set Apply button and make the component full width in SharePoint SPFx

How to Set Apply Button in SPFx Property Pane - Step-by-Step Guide How to Set Apply Button in SPFx Property Pane - Step-by-Step Guide Author: Vishal Thakur Published: August 2021 The SharePoint Framework (SPFx) offers a rich UI and flexibility for creating dynamic and responsive web parts. One of the powerful features is the ability to add an Apply button in the SPFx property pane. This button allows you to apply changes made in the property pane asynchronously, eliminating the need to refresh the page to see updates. In this guide, we'll walk you through the steps to implement this feature. Introduction The SPFx framework is packed with rich UI capabilities, allowing developers to create dynamic and responsive web parts. One such feature is the Apply button in the property pane. This button enables asynchronous updates, so you can see changes wit...

Interview Questions of SPFx SharePoint

SPFx Interview Questions and Scenarios SPFx Interview Questions and Scenarios By Vishal Thakur What is SPFx? The SharePoint Framework (SPFx) is a web part model that provides full support for client-side SharePoint development. It integrates seamlessly with SharePoint data and extends Microsoft Teams. SPFx allows developers to use modern web technologies and tools in their preferred development environment to build responsive and mobile-ready experiences. Scenario-Based Questions Scenario 1: External API Integration Scenario: Your team is developing an SPFx web part that needs to retrieve data from an external API and display it on a SharePoint site. The API requires authentication using OAuth 2.0. The web part should also allow users to refresh the data manually. Question: How woul...

Non-Generic Collection and Generic Collection in.NET

What is Collection in .NET? What is Collection in .NET? By Vishal Thakur Introduction Microsoft .NET provides a variety of collection data types that can store a set of records or values. There are two types of collections in .NET: generic collections and non-generic collections . Generic collections are type-safe at compile time, providing better performance compared to non-generic collections. They support type parameters when constructed and do not require boxing-unboxing or type conversion from the Object type when adding or removing items. Non-generic collections store items as Objects, require casting, and are not recommended for modern development. Most developers prefer generic collections because they are faster, safer, and less prone to exceptions and compile-time errors. To use non-generic collections, you need to include ...

Types of Exceptions in .NET

Types of Exceptions in .NET C# Types of Exceptions in .NET C# By Vishal Thakur Introduction An exception is an issue that occurs during the runtime of a software application. It typically happens when the developer does not manage the code properly or fails to handle certain scenarios. Exceptions can break the application if not handled correctly. In this blog, we will explore various types of exceptions in .NET C# and how to handle them. Exceptions Overview Exceptions in .NET have the following properties: To use exceptions, you need to import System.Exception . Always use a try block around the statements that might throw an exception. When an exception occurs, the flow of control jumps to the associated exception handler. In C#, the catch keyword is used to define an excep...

Step-by-step guide to setup SPFx Environment in SharePoint Online

Step-by-Step Guide to Set Up SharePoint Framework (SPFx) Step-by-Step Guide to Set Up SharePoint Framework (SPFx) By Vishal Thakur Introduction SharePoint Framework (SPFx) is a modern development framework used to build web applications for SharePoint. Unlike traditional frameworks, SPFx is primarily used for internal purposes, such as intranet portals, document sharing, and collaboration among staff. If you are a beginner and want to learn SharePoint Online and its latest framework, SPFx, you are in the right place. In this blog, we will walk you through the setup process step by step. Steps to Set Up SharePoint Framework (SPFx) 1. Install Node.js Node.js is an open-source, cross-platform, back-end JavaScript runtime environment that runs on the V8 engine. For SPFx development, you need to install Node.js ...