Sign In Start Free Trial
Account

Add to playlist

Create a Playlist

Modal Close icon
You need to login to use this feature.
  • Book Overview & Buying Learning Ext JS_Fourth Edition
  • Table Of Contents Toc
Learning Ext JS_Fourth Edition

Learning Ext JS_Fourth Edition

By : Carlos A Mendez Segura, Villa, Gonzalez
4.3 (4)
close
close
Learning Ext JS_Fourth Edition

Learning Ext JS_Fourth Edition

4.3 (4)
By: Carlos A Mendez Segura, Villa, Gonzalez

Overview of this book

If you are a JavaScript developer who now wants to use the Ext JS framework, this is the book for you. This guide is useful to you whether you're new to Ext JS 5 or are a seasoned expert. Experience in HTML, CSS, and JavaScript is required in order to understand and get the most out of this book.
Table of Contents (17 chapters)
close
close
16
Index

Selection models


So far, we have seen how to create a basic grid and set the columns for displaying data. Selection models are an important part of the Grid panel, because they will let us set the manner in which we can interact in terms of selections (data selection) in the grid's view.

The two main selection models on the framework are Ext.selection.RowModel, where single or multiple rows are selected, and Ext.selection.CellModel, where individual grid cells are selected.

By default, the Grid panel uses rowmodel when it's not defined (as in our previous examples).

In the next example code, we need to use the code in which we set the action column icons, and make some changes (first of all, make a duplicate of the code). In the grid configuration, let's add the selModel property:

selModel:{
  selType:'rowmodel',
  mode:'SINGLE'
}

The mode property can have one of these three values:

  • SINGLE: This allows selection of one item at a time

  • SIMPLE: This allows us to make a simple selection of multiple...

CONTINUE READING
83
Tech Concepts
36
Programming languages
73
Tech Tools
Icon Unlimited access to the largest independent learning library in tech of over 8,000 expert-authored tech books and videos.
Icon Innovative learning tools, including AI book assistants, code context explainers, and text-to-speech.
Icon 50+ new titles added per month and exclusive early access to books as they are being written.
Learning Ext JS_Fourth Edition
notes
bookmark Notes and Bookmarks search Search in title playlist Add to playlist font-size Font size

Change the font size

margin-width Margin width

Change margin width

day-mode Day/Sepia/Night Modes

Change background colour

Close icon Search
Country selected

Close icon Your notes and bookmarks

Confirmation

Modal Close icon
claim successful

Buy this book with your credits?

Modal Close icon
Are you sure you want to buy this book with one of your credits?
Close
YES, BUY

Submit Your Feedback

Modal Close icon
Modal Close icon
Modal Close icon