Bot-BasicBot-Pluggable-Module-Notes
view release on metacpan or search on metacpan
root/js/Changes.txt view on Meta::CPAN
Fixes
=====
- Fixed bug in filterToolbar. We search now by index and when not found by
name.
- Fix in searchGrid method. We search now by index and when not found by
name.
- Fixed bug in IE when resizing columns. The function getOffset is changed
so that the resizing speed is the same as in Safari and FF.
- Fix multiple select bug in createEl function. Now we set the options before
checking for multiple:true
- Fixed bug in treegrid. The strict comparation in getNodeParent method
causes bad results.
- Fix in setGridWidth method. We do not initialize correct the new width which
causes after the first set of the width to not work in other grid in the same
page.
- Fixed bug in GridExport. We delete the columns that are generated
dynamically - multiselect, subgrid, treegrid or rownumbers. This way the
import is without errors
- Fixed a bug in addRowData method to add data with id = 0 (number)
- Fixed a forever loading bug in IE.
- Fixed altRows bug in delRowData method
- navGrid method fix for warning modal and IE6
- Fix setColumns method to the common apprach of forms and modals
- Fix for IE8 in getAbsoluteIndex method. IE8 seems to work as other browsers
- Fixed bug in delRowData - the grid does not resize when first row is
deleted.
- Fixed bug when rownumbers and subgrid are used together
- Fixed bug in row editing when the column name contain dot.
- Fixing bug in viewGridRow - also the id manes of the form are changed in order
to be not equal of those in editGridRow
3.5 beta (buld5)
FormEditing
===========
- added options checkOnUpdate (default false) in editGridRow method.
Also available in add and edit mode.
When this option is set to true the behaviour as follow:
When something is changed in the form and the user click on
Cancel button, navigator buttons, close button (on upper right corner of the
form), in overlay (if available) or press Esc key (if set) a message box apper
asking the user to save the changes, not to save the changes and go back in the
form or cancel all changes (this will close the modal form)
Note that checkOnSubmit option will work only when a submit button is clicked.
When nothing is changed we contionue with the action.
- added option - rowabove (default false) in colModel formoptions
When set to true a new empty row is added above this row in form editing.
- added option - rowcontent (default empty) in colModel formoptions.
This option have sense only when rowabove option is set to true.
With this option is possible to set a content to the new added empty row in
the form. In order to style easy these rows a class 'contentinfo' is set.
- added new items in the language files to support the checkOnUpdate option
- added class 'delmsg' in the delGridRow method. This allow us to change the
message dynamically using a beforeShow or afterSow eventrs. The class is added
to a element td.
Fixes
=====
- fix in Bulgarian translations files.
- fix in searchGrid method. Now we search by index (from colModel) and only if
it is not available we search by name.
- Fix for date parser in the base module. Now we can sort locally on
dates that contain month names
- Fixed bug in searchGrid. The translation messages for the operations does not
apper when not set in colModel
- removed some not needed events from base grid. Also return false do these
by default;
- Fix bug to check if datepicker is available in searchGrid.
- Fix a bug in searchGrid in IE6, where the data value is not set for elements
after the first
- Fixed bug when calling of jqModal multiple times on the same element. We
need the initialization only once and not every time. This cause a memory
leaks
- Fixed bug in formatter where the data containing ' causes break in IE
- Fixed bug in base module when adding data where the data contain a ' char.
This breaks in IE browsers.
- Fixed bug in checkboxes. We add the value setted in the editoptions. Also
converting to lower case make the option checkOnUpdate to be true every time.
- We replace white-space nowrap with pre in td element in the CSS file. This fixes
the bug in IE where the first row does not wrap when the text is longer than
the column width. Also this requiere DOCTYPE declaration in the document.
- Fixed bug in viewGridRow method where when resizing the modal causes the data
to apper bad.
3.5 beta (buld4)
Base
====
- added option footerrow - default false. If set to true this will place a
footer table with one row below the gird records and above the pager.
The number of columns equal of these from colModel
-added option userDataOnFooter(default false) which directly place the user data
array at footer. The rules are as follow: If the userData array contain name
which is equal to those of colModel then the value is placed in that column.
If there are no such values nothing is palced. Note that if this option
is used we use the current formatter options (if available) for that column.
root/js/Changes.txt view on Meta::CPAN
}
-------------------------------------------------------------------------------
dataUrl option is valid only for the elements of type select - i.e.,
edittype:select
When this option is set, the element will be filled with values from the ajax
request. The data should be a valid html select element with the desired
options. <select>
<option value="1">One</option> <option value="2">Two</option>
</select>
In form editing for add/edit this is called only once. In order to call it every
time the form is launched you should set the option recreateForm:true or use
other events like beforeShowForm (with another custom ajax call) to fill the
desired element.
In inline edit and cell edit this is fired every time you edit the row or cell
element.
--------------------------------------------------------------------------------
dataInit : function (elem) {
// do something
}
If set, this function is called only once ? when the element is created. The
function is passed the specified element. This option is ideal for attaching
date picker, time picker, etc. Example:
dataInit : function (elem) {
$(elem).datepicker();
}
--------------------------------------------------------------------------------
dataEvents: list of events to apply to the data element; uses
$("#id").bind(type, [data], fn) to bind events to data element
Should be described like this dataEvents: [
{ type: 'click', data: { i: 7 }, fn: function(e) { console.log(e.data.i); }
}, { type: 'keypress', fn: function(e) { console.log('keypress'); } }
]
The event(s) are called only once when the element is created
-------------------------------------------------------------------------------
defaultValue: 'value' or function This option is valid only in Form Editing
module when used with editGridRow method in add mode.If set this the input
element is set with this value if only element is empty. If used in selects the
text should be provided and not the key. Also when a function is used the
function should return value.
Now we can validate a url. The corresponding settings is in colModel
editrules:{required:true, url:true}
FormEditing
===========
In all methods that deal with the modals are added the following options (thanks
to Faserline Team: www.faserline.com)
jqModal: true. The default value is true. How it works. If set to true, first
jqGrid checks if the jqModal plugin is available. If this plugin is available we
create the modal according to the jqModal plugin. If this plugin is not
available jqGrid create its own modal. The difference between the jqModal window
and jqGrid modal window is that the overlay covers only the grid, but not the
entry page as jqModal does. If this option is set to false, jqGrid will create
its own modal as described above even if jqModal is available.
The only exception here is searchGrid method created with the new searchFilter
plugin, where this option is not available. In this method a jqGrid modal window
is used.
closeOnEscape : false. Default false. When set to true the modal window can be
closed with ESC key.
=======searchGrid==================
From now on jqGrid use a new search engine
thanks to wonderful plugin provided from Kasey Speakman (kasey@cornerspeed.com).
This plugin can also be used separately. Detailed documentation is provided in
the jquery.searchFilter.js which is provided with jqGrid package.
These options are not used anymore in the searchGrid method
----------------------------------------------------------
top : 0,
left: 0,
width: 360,
height: 80,
modal: false,
closeicon: 'ico-close.gif',
dirty: false,
processData: "",
Added the following options
---------------------------
recreateFilter: false, This option construct the filter every time a search
button is clicked.
multipleSearch : false, When set to false the behaviour of the search is the
same as those in versions before 3.5 When set to true: 1. We have a possibility
to add/delete as many conditions as we want 2. The posted data to the server is
string (actually a json array converted to string)
sFilter: 'filters', This option has an effect only when the multipleSearch is
set to true; it describes the name of the posted string. By default this, i.e.
the posted data, can look like this
filters ={
"groupOp":"AND","rules":[{"field":"id","op":"gt","data":"1"},
{"field":"name","op":"bw","data":"Client"}]
}
groupOp determines the logical operator that can be used in the where statement
of the select. The value can be AND or OR. This can be changed used a select box
which is created at bottom of the search filter.
The rules array describes actually which fields and how they are included in the
where clause The field element describes the name of the field The op element
describes the operator that should be used in the search The data element is the
data that we want to search.
The above example (if getted and constructed correctly) should generate the
following where clause
( run in 0.879 second using v1.01-cache-2.11-cpan-5a3173703d6 )