Awesome!
Awesome!
Congratulation. Well done. I used it in my app and waiting for next releases. Good continuation.
Is this a (minor) bug .. or just me having overlooked something?:
The message only shows up when I 'mouse-over' the field, otherwise no message is shown.
Tx. again for your outstanding contribution!
Best regards
Klaus
Ext.onReady(function(){
Ext.QuickTips.init();
Ext.form.Field.prototype.msgTarget = 'side';
...
});
BoxSelect 5.0 is not working properly with my application. 1st value is selected but when i pressed 4 characters (minChars) boxselect control is hanged. Please refer the attachment.
When i debug through chrome, i got the following errer.
Uncaught TypeError: Cannot call method 'addCls' of null.
Please help me to solve this.
Thanks,
Kunal
Hi,
I am also facing the same problem as kunalshah6363 mentioned.
Kindly suggest me how to overcome this as I tried lot but not succeeded
Regards,
Mahesh
The next version (which I'll put out sometime this week) will have a fix to the field validation that makes the red-swirly marks properly appear. It looks like the code you've included there is for a previous version of ExtJS. I think you'll want to make that override on Ext.form.Labelable. Besides the missing styling, my tests show the actual error message display working as expected with the current release. Please see this thread for other general ExtJS migration information.
I am unable to replicate this in my own configurations, can either of you provide a bug report to help narrow this issue down?
Thanks for the reply,
I am not sure whether its bug or not. But what I had done is, I have downloaded files provided by you and put along with extJs4 files. and then below in my html code..
<head>
<link rel="stylesheet" type="text/css" href="lib/extjs/resources/css/ext-all.css" />
<link rel="stylesheet" type="text/css" href="lib/extjs/ezdi/BoxSelect.css" media="screen" />
<script type="text/javascript" src="lib/extjs/ext-all.js"></script>
<script type="text/javascript" src="lib/extjs/ext-all-debug.js"></script>
<script type="text/javascript" src="lib/extjs/ezdi/ezdigrid.js"></script>
<script type="text/javascript" src="lib/extjs/ezdi/BoxSelect.js"></script>
<script type="text/javascript">
Ext.onReady(function(){
Ext.QuickTips.init();
Ext.BLANK_IMAGE_URL = 'lib/extjs/examples/sandbox/images/s.gif';
var myViewport = new Ext.Viewport({
layout: 'border',
border: false,
renderTo: Ext.getBody(),
items: [{
xtype:'boxselect',
fieldLabel: 'keyWords',
id:'boxselect',
store: ds,
valueField:'name',
displayField:'name',
}]
})
})
</script>
</head>
As I try to solved it I came to know that error will occur when we try to entry the second or further elements by typing.
Also the error is occuring at line no 329 of your BoxSelect.js file(The error is same as kunalshah6363 mentioned)..
Code snippents is given below where error occurs
if (picker) {
// From the value, find the Models that are in the store's current data
selection = [];
ExtArray.forEach(me.valueModels.concat(me.filteredSelections) || [], function(value) {
if (value && value.isModel && (picker.store.findExact(valueField, value.get(valueField)) !== -1)) {
selection.push(value);
}
});
// Update the selection to match
me.ignoreSelection++;
selModel = picker.getSelectionModel();
selModel.deselectAll();
if (selection.length) {
selModel.select(selection); //HERE ERROR OCCURS
}
me.ignoreSelection--;
}
Hi first. your code is awesome. Thank you very much.
I have a question. how can i make a pre selection or initial value for the multiple select?
i set the store id in the valueField and set an initial value like
value: '4, 7'
but it doing nothing. the boxselect not showing anything.
Thanks.
regards,
Arthur
Thank you for your detailed report. There are a few things that make your code sample not runnable for me. Your store configuration is missing, but your layout for your viewport is also invalid (border without a center region). I used the example store in examples/form/combos.js and tried to replicate your error, but was still unable. Is the error stopping at that line, or does it go down in to the ExtJS framework? Can you modify the examples/form/combos.js to replicate your error?
Thanks for the bug report. Currently you can pre-select by passing in an array for the initial value, e.g. value: ['4', '7']. The next version will provide support for passing the value in as a string, using the combobox's delimiter string as the separator. With this change, your value of '4, 7' would work as expected. I am hoping to be able to track down and solve the issue that mahesh21688 is reporting before I push this change out, but will push the latest fixes out this week even if I am unable to do that.