mobile

How To Use A Game Pad Or Joystick Controller In C++ On Windows

C++ On Windows is one of the most powerful programming languages that we use for all sorts of purposes, from regular applications, games, business, industrial infrastructure, robotics, and in the control of IoT devices. The most well-known controllers for those areas where human and computer interaction are important and stretches beyond simple keyboard input are joysticks or gamepads. One of the simplest examples to use them on Windows is using the venerable XInput library which has been around for quite a long time but can still be easily used with the latest C++ Compiler. In this post, we explain how you can use a gamepad or joystick controller in C++ On Windows with Xinput library. Is there a component for the gamepad or joystick in C++ On Windows? If you are looking for a ready-to-use component library, there are Delphi and C++ Builder-compatible components built on the XInput library. For example, the Controller library is a Delphi and C++ Builder component that allows applications to receive input from an Xbox Controller. The main features of this library are, Uses Windows XInput API. Available for Delphi/C++ Builder 6 – 11 and Lazarus 2.0.12. Source code included in the registered version. Royalty free distribution. You can download the trial version of the XInput library or you can buy a professional edition from Winsoft.sk. How can I control a gamepad or joystick in C++ with the Xinput Library? The XInput library is deprecated but it still supported by Microsoft. They recommend moving towards the GameInput library or Windows.Game.Input for Windows applications. If we look at these kinds of libraries (i.e GamePad.h library), like MS’ own DirectXTK, we can see that the toolkit allows one to define USING_XINPUT vs. USING_GAMEINPUT vs. USING_WINDOWS_GAMING_INPUT to pick which underlying library is used. If we compare  XInput compared to GameInput: XInput library is fairly old and easy to implement Windows applications. XInput library is limited to 4 controllers. XInput library has no uniform interface to other inputs (like mouse/keyboard). XInput library input occurs with higher latency. XInput library is not friendly with other controllers. i.e. no support for Xbox One Rumble Motors. So, briefly, DirectInput is a better long-term choice than XInput. If you still want to use XInput, you can read more about https://learn.microsoft.com/en-us/windows/win32/xinput/getting-started-with-xinput XINPUT_GAMEPAD structure (declared in ) is explained here : https://learn.microsoft.com/en-us/windows/win32/api/xinput/ns-xinput-xinput_gamepad As in there, this structure has these members: wButtons, bLeftTrigger, bRightTrigger, sThumbLX, sThumbLY, sThumbRX, sThumbRY. Here wButtons member is used as a bitmask of the device digital buttons, it can be used as below, wButtons Device digital button flags Gamepad Bitmask XINPUT_GAMEPAD_DPAD_UP 0x0001 XINPUT_GAMEPAD_DPAD_DOWN 0x0002 XINPUT_GAMEPAD_DPAD_LEFT 0x0004 XINPUT_GAMEPAD_DPAD_RIGHT 0x0008 XINPUT_GAMEPAD_START 0x0010 XINPUT_GAMEPAD_BACK 0x0020 XINPUT_GAMEPAD_LEFT_THUMB 0x0040 XINPUT_GAMEPAD_RIGHT_THUMB 0x0080 XINPUT_GAMEPAD_LEFT_SHOULDER 0x0100 XINPUT_GAMEPAD_RIGHT_SHOULDER 0x0200 XINPUT_GAMEPAD_A 0x1000 XINPUT_GAMEPAD_B 0x2000 XINPUT_GAMEPAD_X 0x4000 XINPUT_GAMEPAD_Y 0x8000 How to use a gamepad or joystick in C++? If you wonder how XInput library works, you can create a simple example as in given steps below. First, we need library header to use XInput library. This is how you can use XInput library in C++. #include #include #include #pragma comment(lib, “XInput.lib”) Now, lets create a TController class that have n for the controller number and state for it. Here is an example. class TController { private: int n; XINPUT_STATE state; public:             // add controller methods here }; Then we need to add some methods for this class, first lets set our private controller number n in construction like […]

Read More

Cum RAD Studio Enterprise Edition vă ajută să creați aplicații mai bune

Dacă utilizați în prezent ediția Professional a Delphi, C++Builder sau RAD Studio, aveți o oportunitate unică de a beneficia de promoția actuală pentru edițiile Enterprise și Architect . Până la sfârșitul lunii august, cu o achiziție sau o actualizare RAD Studio Enterprise sau Architect Edition, obțineți și UltraEdit , un editor de texte premium, cunoscut pentru gestionarea sa facilă a fișierelor foarte mari de 4GB+ și o licență  InterBase Server de până la 50 de utilizatori . Vezi oferta promoțională aici . Pentru a explora caracteristicile UltraEdit și InterBase Server și valoarea pe care acestea o pot adăuga afacerii dvs., citiți această postare de blog . În regulă, spuneți, „ dar pe lângă instrumentele și licențele suplimentare, ce pot obține și care nu vine cu ediția Professional? Ce face ca upgrade-ul la Enterprise să merite investiția? ” În aceast articol vom încerca să răspundem la această întrebare. Vom analiza caracteristicile care diferențiază RAD Studio Enterprise Edition de Professional, beneficiile pe care le generează pentru dvs., dezvoltatorul, și valoarea pe care o puteți oferi clienților dvs. printr-un software mai bun, cu funcționalități mai mari. Diferența majoră: Enterprise Edition este pentru conectivitate avansată la rețea și acces la date Ediția Enterprise a RAD Studio®, Delphi® și C++Builder® adaugă mai multe îmbunătățiri și biblioteci ediției Professional. Aceste îmbunătățiri sunt concepute pentru a vă ajuta să creați aplicații cu conecțiuni sigure și să stocați în siguranță datele companiei pe dispozitive mobile. Pe scurt, Enterprise Edition este concepută pentru a dezvolta aplicații de tip client-server, care necesită colectarea și stocarea de la distanță a datelor în rețea. Cum RAD Studio®, Delphi® și C++Builder® Enterprise asigură conectivitate îmbunătățită. 1. Acces de mare viteză la distanță la baze de date cu FireDAC FireDAC este un data access layer care susține și simplifică accesul la date pentru aplicații de înaltă performanță. FireDAC oferă un API comun pentru accesarea unei game de back-end-uri de baze de date populare fără a afecta performanța aplicației . Ediția Enterprise a FireDAC adaugă conectivitate la nivel de rețea pe lână conexiunile de baze de date locale și încorporate. Migrarea de la Microsoft ADO la FireDAC este, de asemenea, foarte ușoară. Acesta este modul în care un dezvoltator și-a descris experiența cu FireDAC: „ Ne-am mutat la FireDAC de la ADO și am lansat produsul ca o actualizare majoră. Clienții sunt încântați, aplicația noastră a fost imediat mai rapidă, mai ușor de implementat și mai stabilă. ” 2. Multi-Tier Development Ediția Enterprise permite dezvoltarea aplicațiilor pe mai multe niveluri, oferind API-ul de nivel mediu pentru aplicațiile-client pentru a se conecta la sisteme și baze de date. Acest strat mijlociu creează un singur punct de acces pentru conectarea și gestionarea acestor sisteme și baze de date și un spațiu pentru ca logica de afaceri să existe independent. Aceste straturi separate reduc semnificativ complexitatea asociată cu dezvoltarea aplicațiilor la nivel de întreprindere, cu echilibrarea încărcăturii, mișcarea REST a datelor către nivelul client și ușurința de scalare. Opțiunile cu mai multe niveluri din RAD Studio®, Delphi® și C++Builder® sunt DataSnap, RAD Server și WebServer. Spre deosebire de DataSnap, RAD Server vine cu notificări push, stocare JSON securizată încorporată, gestionarea controlului accesului utilizatorilor/grupurilor, suport multi-tenancy și analiză API (vezi imaginea de mai jos). 3. Vizează Linux Cu ajutorul Delphi puteți desfășura aplicațiile și pe serverele Linux cu un cod partajat, care se compilează și pentru Windows. Rezultatul este viteză superioară și performanță generală, dezvoltare simplificată și flexibilitate extraordinară pentru dezvoltatori și utilizatorii software-ului lor. RTL (Run-Time Libraries) de la RAD Studio […]

Read More

5 Best Tools To Create HTML5 Grid Tables

If you have worked on developing web applications, you might have come across the need to display data in a table format. HTML5 grid tables come in handy when presenting large amounts of data in a clean and accessible manner. They organize data in rows and columns and allow end-users to perform various actions on that data, such as sorting, filtering, in-cell editing, and data exporting. In this post, let’s go through five popular tools for creating a fascinating HTML5 grid table. You can review and compare their features and pricing options to pick the best for your needs.   Why Sencha Ext JS Is The Best Solution For An HTML5 Grid Table?   Do you want a robust grid that can manage millions of records and process data extremely fast? Then, Sencha Ext JS should be the tool you are looking for. The Sencha Grid component enables developers to visualize any amount of data effectively using HTML5 grid tables. Sencha grid offers a wide range of features, from basic features like editing, grouping, filtering, and data locking to more advanced features like drag and drop, drill down, live data streaming, and customized themes and layouts. Developers can retrieve and display data in local or remote sources via AJAX, Restful, and JSON methods. Sencha offers demos of their main grid features to users. Moreover, they provide a  30-day free trial for users to try out Sencha grids. Main Features of Sencha The ability to handle a massive amount of data. Sophisticated features that make data management much easier ( ex: filtering, grouping, pagination and infinite scrolling, and live data streaming). High customizability. The ability to export data in CSV, HTML, XLS, and PDF formats. Compatibility with various browsers and web, mobile, and desktop platforms. Sencha mainly comes with two pricing options called perpetual license and annual subscription. Both options have three editions called community, enterprise, and professional. You can clear any doubts about these packages by referring to their FAQ page or submitting an inquiry.   Why Is w2ui Suitable To Create An HTML5 Grid Table? w2ui is a modern JavaScript UI library dependent on the main jQuery library. It basically utilizes HTML5 and CSS3 for front-end development. Apart from grid tables, this library contains all the other popular UI widgets such as layouts, tabs, sidebars, pop-ups, and forms. Therefore, W2ui is an integrated solution for all your front-end development needs. This library clearly separates the app data and the logic with a declarative syntax that is easy to reuse. This library is lightweight and faster than many other grid libraries on the market. The complete library has a minified size of only 69KB leading to significantly faster loading and execution times. w2ui is compatible with all modern browsers. Furthermore, this library is free to download and use. Main Features of w2ui Comes with a rich feature set, including resizable columns, frozen columns, infinite scroll, reordering, infinite scrolling, etc. Lightweight library with a small footprint. The ability to create your own color schemes.   How Successful Is jQuery Grid For Creating HTML Tables? jQuery grid is a supportive plugin for the major jQuery library. Thus, it is compatible with many browsers. This plugin allows displaying tabular data on web pages. It supports all the primary grid features such as data […]

Read More

Why Are UI Components Important For Web Based Development

Organizations are looking for web applications that provide users with many unique functionalities. For anything they provide, the User Interface is the most important part of a web application. UI helps capture the users’ attention and keeps the user engaged with the application. UI components play a major role in making web application development faster and easier. This article discusses why UI components are important for web based development.   How can you develop UIs faster and easier in your web based development? Building a UI that meets all your design, functional, and performance requirements takes considerable time and effort. However, you need to consider the project timeline and the available resources to deliver the project on time. UI components help developers to build UIs faster because they are reusable across the application. Once you build a new component, you can use it wherever you want. Also, if you want to extend the functionalities, you can build on the existing components. All these things minimize code duplication and reduce the coding time and effort eventually saving money for you. Therefore, UI components are the best solutions if you want to build web applications faster. Does consistency of UI designs matter in your web based development? Consistency is of utmost importance for a UI because it provides a professional look and feels and promotes usability. If the UI is not consistent across all the applications or web pages, then it might confuse the user. A consistent user experience helps customers understand your application’s functionalities and makes navigation across the UI much easier. You can use the same UI component for all the related UI parts without doing significant code changes. Thus, UI components help to bring that consistency to the UI. You can easily establish a standard set of components for some important parts like the company logo, headers, footers, etc. Thus UIs of all the applications across the organization can be standardized.  Do you want to do UI customizations for your web based development? Not every UI components stay the same across the applications. You may require to do some modifications to the existing components. Customizations are important if you want to change the behaviors of application components but do not want to impact and mess up the code of existing components. With the UI components, it is easy to do customizations. For example, you can add different styling for the same component without changing its internal functionalities and minimal code. Also, if you want to extend the UI parts to provide more functionalities, you can do so with UI components. This flexibility is important when building larger applications because you can easily do it with lesser time and effort.  Are efficiency and scalability the top-most priorities for your UI? When implementing the UI, one of the most important things to consider is the efficiency of your application. For UIs, there are specific efficiency-related metrics usually UI developers need to be aware of, but generally, the component load time is an important factor to consider. Are your web components loading according to your defined Service Level Agreements (SLAs)? If the UI takes a significant time to load, it may impact the user experience.  But, most UI components provided by component libraries are designed to achieve better performance. Also, scalability is another […]

Read More

Why Do You Need A JS Test Framework?

The JavaScript testing framework enables you to significantly boost your development workflow. It increases your team’s speed and efficiency. Also, it improves test accuracy. Besides, the JS test framework reduces test maintenance costs. It can be a live saver for projects with a low budget range. There are plenty of frameworks available online. But which is the best option? Can it help you efficiently test applications? Do you really need a JS test framework? In this post, you will find all the details. What is a JS test framework? The JS test framework is a tool for examining the functionality of JavaScript web applications. It helps you to ensure whether all the components are working properly or not. It enables you to easily identify bugs. Therefore, you can quickly take take the necessary steps to fix the issues. Why do I need a JS test framework? Greater efficiency:  Manually testing large web applications can take a huge amount of time. You don’t want to get involved in such a tiresome process. By using a JS test framework, you can quickly get the job done by automating the process. It enables you to continuously test and validate newly developed features. It reduces the feedback and testing cycle. As a result, you can deliver the application in significantly less time. Improve Accuracy: It’s quite usual for testers to make mistakes during monotonous manual testing. Therefore, you will not get accurate results. However, you can solve the issue by utilizing a JS test framework. It produces the same result every time you run it. Therefore, it can execute tests with 100-percent accuracy. Reduce Cost: JS test framework helps you to get the job done with fewer resources. Therefore, you don’t have to spend extra money. It enables you to significantly reduce the costs. If you have a tight budget, it can be very helpful for you. Read: Rapidly Build Testing Automation To Supercharge JavaScript App Quality What is the best JS test framework? The best JavaScript test framework is Sencha Test. It offers the most comprehensive solution for examining Ext JS apps. It allows you to create robust unit and end-to-end tests. As a result, you can deliver quality apps. Apart from Ext JS, it supports end-to-end testing of React apps. Overall, it is a versatile JavaScript testing framework. Why Sencha Test is the best solution for testing JavaScript apps? Enables you to auto-grab events while interacting with the app under test Provides comprehensive test results from automated and manual test runs Supports Istanbul integration for fixing code coverage gaps Allows you to execute code in any browser, local machine, or browser farm Enables you to use external Node modules to expand the scope of testing Does it support automated test runs? Sencha Test comes with a Command Line Interface (CLI). It helps you achieve the full power of automated test runs. Once tests are authored and checked into the source control repository, you can launch them from your Continuous Integration (CI) system. The CI system can automatically invoke the CLI once it detects a change to the application code or the test files. Does it allow me to schedule automated test runs? Sencha Test features Test Runner. You can use it to run selected unit and functional tests on any browser on […]

Read More

Top 5 Tools In My Web App Development Toolkit

There is no denying that web and mobile apps are the part and parcel of all businesses, whether small or large. Organizations rely on these apps to reach out to their customers, automate their business processes, keep track of sales, monitor employee performance, and even make future strategic decisions. Naturally, this makes web app development a critical process for any software engineer. In the context of web application development, it is important to know about the best Javascript tools to speed up the entire process of app creation. These tools are now a key to accelerating development and reducing the time-to-market. Developers can now spend more time on meeting the requirements of their clients and less time writing boilerplate code. When it comes to tools for Javascript app development, Sencha Ext JS is not just a complete framework for web and mobile app building. It also includes the most important tools required in all stages of app creation. Whether you are designing the app, creating its user interface, writing its business logic, designing its database schema, or packaging it for the end-user, Sencha Ext JS has an automated solution for you. Here is a list of the top 5 must-have tools, which are indispensable for any developer. Continue reading to discover why these tools are important and why you should include them in your app development toolkit. 1. What is Sencha Architect in Web App Development? Sencha Architect is an app builder with a visual interface. You can use Sencha Architect to develop cross-platform HTML 5 web applications for the desktop. As Ext JS is also a complete Javascript mobile app framework, you can use Sencha Architect while building mobile apps. One of the most awesome features of Sencha Architect is that it empowers you to build your apps using drag and drop features. This way you don’t have to spend much time on manual coding. Much of the boilerplate code is generated for you. Moreover, the generated code is optimized for high performance. The automatic code generation feature is available for desktop as well as mobile apps. Configurations and properties of many Ext JS UI components can be altered using a visual WYSIWYG window. This eliminates the chances of code errors that developers often make and helps speed up the overall development time. 2. What is Sencha Themer? While the default styles and themes provided by Ext JS are awesome, they may not be compatible with your organization’s color schemes. Sencha provides an easy solution to customizing all styles, color schemes, and themes with Sencha Themer. Sencha Themer, like Sencha Architect, is also a visual tool with a graphical interface. It enables you to style Ext JS apps without writing a single piece of code. Additionally, you can create custom themes and reuse them in other apps. Sencha Themer also includes a smart color palette, which enables you to apply different color combinations to different component states. The color palette with its progressively lighter and darker color shades makes it very easy to choose the base, body background, and font colors. What’s more, Sencha Themer has a font management option. You can quickly select the fonts of your choice in your app. Additionally, you can add web fonts from Google fonts. 3. How Does Sencha Cmd Accelerate Web App […]

Read More

How To Create A Grid In JavaScript

In this technological era, we are generating massive volumes of data. It is estimated that the data that is generated daily is of the order of a mind-blowing quintillion bytes per day! Hence, it’s no wonder that software apps, which can handle millions of data records are of paramount importance. In this context, a JavaScript grid that allows users to manipulate and work with tabular data is key. It is this reason that many data scientists and developers often ponder how to create a grid in JavaScript quickly and easily. Sencha Ext JS allows you to create data-intensive HTML 5 apps using JavaScript. You can effortlessly create cross-platform web and mobile apps for all modern devices. This is an easy-to-follow JavaScript grid tutorial that enables you to create a JavaScript grid effortlessly. Continue reading to discover how you can create a data grid using JavaScript and HTML. All you have to do is create an empty .html file and follow the four steps given below.  Why Should I Opt For Sencha Ext JS JavaScript Grid? Sencha Ext JS provides the fastest JavaScript grid. It empowers you with an incredibly fast speed and enables you to process millions of records within milliseconds. Experiments with performance benchmarks have shown that Ext JS grid beats all its competitors in terms of initial load time, filtering speed, and scrolling speed. Additionally, by using Sencha’s grid, you can completely revamp your HTML5 grid. The Sencha Ext JS JavaScript grid is 100% configurable. You can easily design a grid to fulfill all your clients’ requirements. You can add various data visualizations such as line charts, pie charts, bar charts, and more to the grid. This goes a long way to help your clients to understand their data. Moreover, you can also add other UI components to the grid. How To Create A Grid In JavaScript: What Are The Steps? You can easily create a grid in JavaScript using a single HTML file. Create an empty grid.html file and follow the steps given below. Once you complete these 4 steps, you’ll see a grid that looks as follows: In the above JavaScript grid, there are only three columns for the country, population, and population growth. However, you can extend the grid and add more columns and rows to the data table. Step 1: What Do I Need To Import For Creating A Grid In JavaScript? To create a JavaScript grid in a single HTML file, import the Ext JS library and stylesheets. You can add the following code anywhere in the header of the HTML file: Step 2: How Do I Define The Model For Creating A Grid In JavaScript? To build a grid using Ext JS, you need to create a model. In the code below, the name of the model is com.extjsGrid.Sencha and it extends Ext.data.Model. This code defines a model for three columns namely country, population and population growth. All three columns are specified using the field key. Ext.define(“com.extjsGrid.Sencha”, { extend: “Ext.data.Model”, fields: [“Country”, “Population”, “PopGrowth”] }); Step 3: How Do I Define The Data Store For JavaScript Grid? The data store holds all the data values for the grid. In the code below, senchaStore is a variable that stores all the data of the grid. To fill up the grid, specify one row of […]

Read More

How To Create Mobile Apps Using React JS

React JS is one of the most popular JavaScript libraries on the planet. It allows you to effortlessly create interactive UIs for your application. It is efficient, flexible, and intuitive. As a result, React has become massively popular among developers worldwide. It supports the responsive layout for all modern devices, including smartphones, laptops, and desktops. Therefore, you can create your mobile app using React JS. But is the process difficult? Can you easily create React apps for mobile devices? In this post, you will find all the details. Why Should I Create My Mobile App Using React JS? Supports Cross-Platform Application Development: By using React JS, you can make applications for a variety of platforms, including iOS and Android platforms. Therefore, you no longer have to learn different languages, like C++ and Java. By using JavaScript language and React framework, you can create applications for all platforms. Easier learning curve: React JS is very easy to learn. You just need to know JavaScript. You don’t have to learn other programming languages, like C# or Java. As a result, you can quickly pick up the technology and start creating your mobile app using React JS. Offers Code Reusability: React supports code reusability. It provides several big advantages. For example, it allows you to reuse the same code for similar features in multiple apps. As a result, you can quickly develop new applications. It can significantly reduce your development time. Open-source: React is an open-source framework. It is completely free. It doesn’t require you to pay any monthly or yearly fee. Hence, you can save a lot of money, which you can spend on other aspects of your business. Strong Community Support: React JS has a huge community. It is comprised of thousands of developers worldwide. The community is very helpful. Whenever you face any issue, you will always find a helping hand. Therefore, you should seriously consider creating your mobile app using React. It can make your life a lot easier. How Can I Easily Create My Mobile App Using React JS? You can easily create your mobile app using React JS by utilizing the power of GRUI by Sencha. It is a modern enterprise-grade grid solution. It offers 100+ data grid features, including virtual columns, infinite scrolling, and slider paging toolbars. By utilizing them, you can easily create data-intensive mobile apps using React JS. Why Should I Use GRUI By Sencha? Efficiently handle millions of records Support for large feature sets, including filtering, grouping, infinite scrolling, etc. Get full customization control over styling and theming Easily export data to different formats, including CSV, TSV, HTML, PDF, and XLS Easy React UI component integration Read: GRUI By Sencha vs. React Grid – Which Is Better? How Can I Create A Mobile App Using GRUI By Sencha? Sencha GRUI has made the process of creating mobile apps very simple. Let’s take a look at some practical examples. How Can I Create A Big Data Grid With GRUI? With GRUI, you can easily create Big Data grid. Here is an example: To create it, you have to follow these steps: 1. First, you have to import all the required libraries and components. import React, { Component, useState } from “react”; import { SenchaGrid, Column, CheckboxColumn, DateColumn, EmailColumn, MoneyColumn, NumberColumn } from “@sencha/sencha-grid”; import […]

Read More

Mobile performance optimization with Adaptive Performance 4.0

Boat Attack starts off with plenty of scalers engaged by the menu scene, which was stabilized before the capture was done. In this example, the temperature rises quickly and the device goes into throttling. Adaptive Performance tries to stabilize the situation and reduce effects on the GPU, as this is clearly the bottleneck. The shadow scalers thereby reduce quality rapidly – but because that’s not enough, both the view distance and resolution decrease as well. The frame rate then stabilizes and the temperature drops. The game is rescued from throttling and its frame rate raises to 60 fps. Layer culling scaler With the layer culling scaler, you can dynamically adjust layer cull distances at runtime. This feature uses the indexer system to make certain decisions, like when and how much to increase or decrease layer cull distances for optimal performance and thermal stability. The sample we ship with Adaptive Performance loops in medium CPU load until it reaches critical frame rates and then decreases the cull distance of layers. The result of this is that the cull distance for layers changes depending on the CPU and GPU load. You can set a different value for the culling distance of each layer so that they scale proportionally. This helps you determine which objects to cull earlier to save performance. For details on how to do this, see the following code sample. Adaptive decals Adaptive decals target visual effects. In Amazing Adventures of Dr. Arm, there is a boss fight scenario that uses many particles and decal projectors. When the mobile device gets hot and throttling is imminent (or already occurring), the number of particles emitted scales down. In this case, less visually important emitters, things like the leaves blowing in the wind, tiny sparks, and other such elements, turn off completely. The scaler also reduces decal distances.

Read More

How To Create A React Responsive Grid

A grid is a powerful method to display a large volume of information to the users within a website. It allows users to perform various tasks like sorting, filtering, etc. In this article, we will tell you how to build enterprise-ready React data grids. The React grid layout is the React library that enables the creation of powerful grids if you use React in your front-end. However, robust and fully-responsive grids are critical requirements for many applications that process large amounts of information. You can have a better React responsive grid if you choose a modern enterprise-grade grid solution like Sencha GRUI, which has 100+ amazing data grid features. This article will describe how to create a React responsive grid and why you should use Sencha for better results. How Can You Create A Grid In React? First, let’s see how you can use React grid layout using a React data grid example. First, we will create a React app from scratch. To create the react app, you can use the ‘create-react-app’ command and create a sample application template.  Run npx create–react–app my-grid-app Run cd my–grid–app Next, you need to install the ‘react-grid-layout’  package, which contains the modern react grid components and functions you can use to create responsive grids. Following is the command to install the React grid.  npm install react–grid–layout Then we can start creating our React grid component. First, you must import the GridLayout Component from the ‘react-grid-layout’  package.  import GridLayout from “react-grid-layout”; How To Extend The React Component Class To Create The Grid? After importing it, extend the React component class and create a component class to start using the GridLayout. You can use the ‘data grid’ property set the width, height, x and y-axis, and minimum and maximum width of each child grid in the grid layout. class MyGrid extends React.Component {   render() {     return (                          1                            2                            3                     );   } } This will create a basic grid layout you can use to extend to add more functionalities to the UI. If you are unable to work with React grid view, this article might help you. Other libraries provide the same capability with more powerful features and efficiency that React give to the grid layout. Sencha GRUI is one such intuitive grid that you can use to build more modern and responsive web applications. How Can You Create A Grid In Sencha GRUI? GRUI by Sencha, which has been created using Ext JS grid, consists of more than 100 grid features and enables users to create enterprise-grade grid solutions for React UI. This grid provides all the features of the React grid layout, but it is easier to use and performs better. Let’s see how you can create a React grid using a Sencha react grid example that uses the “sencha-grid” package.   First, create a react application using the create-react-app command as in the previous example.  Run npx create–react–app my-grid-app Run cd my–grid–app Next, you must install the sencha sencha-grid component package using the following command. Run npm add @sencha/sencha–grid Then, after importing the React component from the beginning, you need to import the SenchaGrid and Column Components, the main components you can use to create the grid layout.  import React from “react”; import { SenchaGrid, Column […]

Read More