Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

Sorry, you do not have permission to ask a question, You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please type your username.

Please type your E-Mail.

Please choose an appropriate title for the post.

Please choose the appropriate section so your post can be easily searched.

Please choose suitable Keywords Ex: post, video.

Browse

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

Querify Question Shop: Explore Expert Solutions and Unique Q&A Merchandise

Querify Question Shop: Explore Expert Solutions and Unique Q&A Merchandise Logo Querify Question Shop: Explore Expert Solutions and Unique Q&A Merchandise Logo

Querify Question Shop: Explore Expert Solutions and Unique Q&A Merchandise Navigation

  • Home
  • About Us
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • About Us
  • Contact Us
Home/ Questions/Q 8680

Querify Question Shop: Explore Expert Solutions and Unique Q&A Merchandise Latest Questions

Author
  • 60k
Author
Asked: November 28, 20242024-11-28T03:24:09+00:00 2024-11-28T03:24:09+00:00

Empowering Mobile Users with Syncfusion React Data Grid’s Adaptive UI Layout

  • 60k

As technology advances, users’ demands also advance regarding software interfaces. One area where this is particularly evident is in the realm of data grids. To meet these demands, Syncfusion has introduced a new layout design for its grid component, specifically designed to provide an optimal viewing experience and improve usability on small screens.

This feature ensures that users can easily interact with the grid on various devices, improving the overall usability of the component.

Enable Adaptive UI Layout in Syncfusion React Data Grid

One of the most significant features of this new layout design is the ability to render row elements in both vertical and horizontal modes. In today’s mobile-first world, vertical rendering of row elements is becoming increasingly necessary. This feature allows more rows to be shown on the screen at once and can make it easier for users to scroll and interact with the grid. This can be useful for mobile devices, tablets, and small screens.

The UI interaction-oriented features such as filtering, sorting, searching, and dialog editing were also redesigned to fit small screens.

To enable the adaptive UI layout and vertical rendering mode, developers need to set the enableAdaptiveUI property of the grid to true and the rowRenderingMode property to vertical. This will unleash the full potential of this new layout design.

We’ve included the following example to give you a better idea of this new layout.

Note: We’ve integrated the grid with a mobile layout for this example to give you a mobile experience.

import { ColumnDirective, ColumnsDirective, GridComponent, Inject } from '@syncfusion/ej2-react-grids'; import { AggregateColumnsDirective, AggregateColumnDirective, AggregateDirective, AggregatesDirective } from '@syncfusion/ej2-react-grids'; import { Filter, Sort, Edit, Toolbar, Aggregate, Page } from ‘@syncfusion/ej2-react-grids’; import * as React from ‘react’; import { data } from './datasource'; function App() {     const editSettings = { allowEditing: true, allowAdding: true, allowDeleting: true, mode: ‘Dialog' };     const toolbarOptions = ['Add', 'Edit', 'Delete', 'Update', 'Cancel', 'Search'];     const validationRule = { required: true };     const orderidRules = { required: true, number: true };     const filterOptions = { type: 'Excel' };     const renderingMode = 'Vertical';     let grid;      const load = () => {         grid = document.getElementById('adaptivebrowser').ej2_instances[0];         grid.adaptiveDlgTarget = document.getElementsByClassName('e-mobile-content')[0];     };      const footerSum = (props) => {         return (<span>Total Models: {props.Count}</span>);     };      let menuFilter = { type: 'Menu' };     let checkboxFilter = { type: 'CheckBox' };      return (<div className="e-adaptive-demo e-bigger">             <div className="e-mobile-layout">               <div className="e-mobile-content">                   <GridComponent id="adaptivebrowser" dataSource={data} height='100%' ref={g => grid = g} enableAdaptiveUI={true} rowRenderingMode={renderingMode} allowFiltering={true} allowSorting={true} allowPaging={true} filterSettings={filterOptions} toolbar={toolbarOptions} editSettings={editSettings} created={created}>                     <ColumnsDirective>                       <ColumnDirective field='SNO' headerText='S NO' width='150' isPrimaryKey={true} validationRules={orderidRules}></ColumnDirective>                       <ColumnDirective field='Model' headerText='Model Name' width='200' editType='dropdownedit' validationRules={validationRule}/>                       <ColumnDirective field='Developer' headerText='Developer' width='200' filter={menuFilter} validationRules={validationRule}></ColumnDirective>                       <ColumnDirective field='ReleaseDate' headerText='Released Date' editType='datepickeredit' type='date' format='yMMM' width='200'></ColumnDirective>                       <ColumnDirective field='AndroidVersion' headerText='Android Version' width='200' filter={checkboxFilter} validationRules={validationRule}></ColumnDirective>                     </ColumnsDirective>                      <Inject services={[Filter, Sort, Edit, Toolbar, Aggregate, Page]}/>                       <AggregatesDirective>                        <AggregateDirective>                         <AggregateColumnsDirective>                           <AggregateColumnDirective field='Model' type='Count' footerTemplate={footerSum}> </AggregateColumnDirective>                         </AggregateColumnsDirective>                       </AggregateDirective>                     </AggregatesDirective>                   </GridComponent>               </div>             </div>              <br></br>               <div className="datalink">Source:                 <a href="https://en.wikipedia.org/wiki/List_of_Android_smartphones" target="_blank">Wikipedia: List of Android smartphones</a>               </div>             </div>); } export default App; 
Enter fullscreen mode Exit fullscreen mode

The next images show the adaptive layout’s horizontal and vertical rendering modes.

Vertical Rendering Mode
Vertical Rendering Mode
Horizontal Rendering Mode
Horizontal Rendering Mode

Data Grid Features with Adaptive UI Layout

Now, let’s look at the different grid features in the new layout. The following .gif demonstrates the new layout’s sorting, filtering, searching, and dialog editing features and how to interact with them.

Data Grid with Adaptive UI Layout

References

For more details, refer to our documentation and demos.

Conclusion

The adaptive UI layout feature in Syncfusion’s React Data Grid offers a unique solution for grid lovers and users looking for optimal viewing and improved usability on small screens.

With the ability to render row elements in vertical mode, developers can create more user-friendly and efficient interfaces for small-screen devices.

Please try out this great feature and provide valuable feedback in the comments section.

Are you already a Syncfusion user? You can download the product setup here. If you’re not yet a Syncfusion user, you can download a free 30-day trial.

You can also contact us through our support forums, support portal, or feedback portal. We are always happy to assist you!

Related blogs

  • Restrict Editing of Word Documents Based on User in a Web Application
  • Preact vs. React
  • 7 VS Code Extensions for React Developers
  • How to Integrate the Syncfusion React Mention Component with Rich Text Editor

datagridmobilereactwebdev
  • 0 0 Answers
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

Sidebar

Ask A Question

Stats

  • Questions 4k
  • Answers 0
  • Best Answers 0
  • Users 1k
  • Popular
  • Answers
  • Author

    How to ensure that all the routes on my Symfony ...

    • 0 Answers
  • Author

    Insights into Forms in Flask

    • 0 Answers
  • Author

    Kick Start Your Next Project With Holo Theme

    • 0 Answers

Top Members

Samantha Carter

Samantha Carter

  • 0 Questions
  • 20 Points
Begginer
Ella Lewis

Ella Lewis

  • 0 Questions
  • 20 Points
Begginer
Isaac Anderson

Isaac Anderson

  • 0 Questions
  • 20 Points
Begginer

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help

Footer

Querify Question Shop: Explore Expert Solutions and Unique Q&A Merchandise

Querify Question Shop: Explore, ask, and connect. Join our vibrant Q&A community today!

About Us

  • About Us
  • Contact Us
  • All Users

Legal Stuff

  • Terms of Use
  • Privacy Policy
  • Cookie Policy

Help

  • Knowledge Base
  • Support

Follow

© 2022 Querify Question. All Rights Reserved

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.