PDA

View Full Version : [CLOSED] Custom SelectionModel



multimediait
Oct 01, 2014, 7:14 PM
Good evening, I have a trivial question. I would like create a custom SelectionModel like CheckboxSelectionModel but I don't know how do it.
How I can start?

Thanks in advance

Daniil
Oct 02, 2014, 12:23 PM
Hi @multimediait,

These tutorials should help to start.
http://forums.ext.net/showthread.php?18103&p=78126&viewfull=1#post78126
http://forums.ext.net/showthread.php?27672

multimediait
Oct 06, 2014, 12:20 PM
i don't understand how set javascript file

Sorry, I don't quite understand what exactly you don't understand:) Please elaborate on that. What do you mean by "set JavaScript file"?

multimediait
Oct 06, 2014, 7:04 PM
I already created custom controls and I set up javascript file this way (example):



Ext.define('App.<ControlName>', {
extend: 'Ext.container.Container',
alias: 'widget.<ControlName>'

// ... other code
});


but with SelectionModel I don't know how start file client side file.
I hope I was clear

Daniil
Oct 07, 2014, 4:56 AM
Pretty much the same.

You can review the CheckboxSelectionModel JavaScript class as an example.
http://docs.sencha.com/extjs/4.2.1/source/CheckboxModel.html#Ext-selection-CheckboxModel

multimediait
Oct 07, 2014, 1:33 PM
thank you so much Daniil, this is exactly what I was looking for.
You can mark this thread with CLOSED