Stopping a Extjs grid checkboxcolum from being selected based on a condition
This link shows how you do that.
var sm_og = Ext.create('Ext.selection.CheckboxModel',{
checkOnly:true,
listeners:{
// prevent selection of records with invalid descriptions
beforeselect: function(selModel, record, index) {
if ((Ext.String.trim( record.get('x_field')) == '')) {
Ext.Msg.alert('Please complete the record! ','You cannot check these rows until you complete x field.');
return false;
}
}
}
});
Related cards:
How to add a tooltip to an Extjs 4 gridpanel row, using an xTemplate
How to add a tooltip to an Extjs 4 gridpanel row, using an xTemplate
Iterate an ExtJS store and add result as a JSON to an Ext.Ajax request
Iterate an ExtJS store and add result as a JSON to an Ext.Ajax request
Generate an SSH Key for Bitnami Gitlab on a local server
Use the link above to see how it is done. Then use the puttygen.exe file to generate the key and paste it in the profile of your Gitlab profile.
The PuTTY executables and source code are distributed under the MIT licence, which is similar in effe...
Dynamically change the color of an ExtJS Gridpanel row using css
Dynamically changing the color of an ExtJS gridpanel row using css based on record conditions
Generate PDF's from command line with 7-PDF maker
To convert DOC, DOCX, RTF to PDF from the command line:
7p C:\your\full\path\to-documents*.* true true
This means that is will generate the PDF's in the same folder as the documents itself. And it is doing it recursive.
If the program breaks, ...
Remove the red modified tags in an ExtJS 4 gridpanel
Remove the red modified tags in an ExtJS 4 gridpanel
How to create desktop shortcut or launcher on Linux
A great tutorial to create a shortcut to much used commands.
Index Match in Excel
When you have:
1 sheet called: Data
1 sheet called: Ref
- In Data you want to enter a value that came from worksheet Ref in:
column C has the keys
column G has the values
and you want to have based on a value in sheet Data the value from ...
Remove the keyring password in Debian
First find the location of the keyring.
find . -print | grep -i 'login.keyring'
Now delete the login.keyring file.
rm ~/.gnome2/keyrings/login.keyring
The file above can be on a different location in your case.
The next time whe...