Use loadComplete after every request to attach this functionality!
Do you mean sortable (something like this in jQuery UI)?
If I understand you right – you want to refresh the select element every time you click to add or edit form. Is this true?
Tony
Hi
1. “Add image to the cell header” – never try but should work –
colNames :
I.e add a image link in colNames.
The upcoming release (not published) add a method setLabel where we can add a class, diffrent text and etc to column header.
2. “Image in the cell data” – this need to be improved
3. “Grid resize” – need a new method for this will see what I can do
4. “About the sort icon” – will be added in the upcomming release
Thank you.
Tony
Sorry forgot to tell that there are some problems related to z-index in jqModal and UI Datepicer. We have a couple of ways to solve this.
1. Open jqModal.js and set the zIndex value to something like 900. UI Datepicker use a z-index 1001.
2. Open UI Datepicker CSS and set the zindex to 3200 by example
3. Open grid.formedit.js find function viewModal and add on additional option
zIndex:900
This will solve and the second problem
Regards
Tony
Gregg,
You just can play with editoption – in you case the primary is in grid,
then set this in colModel
{name:”my_primary_key”, key:true,…,editoptions:{readonly:true}}
In this case the id is the primary key and in editform the key is visible, but can not be edited.
Enjoy
Tony
What you try to do actually?
You can update the form values too – you have the id of the form and the names and id are the same as these in colModel
You should update grid values and not form values. Data is read from the grid.
If you want to not to use id you can use hidden fields in colModel. This hidden field is actually your “id”. Hidden fields are posted too. You can obtain them via standart POST (in case of php)
Actually no. You should be sure that the data is updated with success and notify user if this is not so. See docs and examples haw this can be done
Regards
Maybe you should get the cookie value and put in options array. If you have firebug you can see what is the cookie value.
Regards
Yes there is way to that.
use getGridParam() without any name.
This will return all the state of the grid – i.e – the entry parameters of the grid. Save this in cookie and use this in options array
Something like
parm_grid = {…} // here are all the grid parameters
if( cookie_does not exists) {
$(“#mygrid”).jqGrid(param_grid);
} else {
$(“#mygrid”).jqGrid(cookie_here);
}
Regards
Tony
Hi,
Please read the docs. To this function are pased two parameters – the ARRAY of posted values and the id of the form;
So
beforeSubmit: function (aData, form_id) {
// to upload you shold use aData.my_field_with_url
// and the return at least at least array with one value
// something like
if( upload_via_ajax = succes ) return [true,”];
else return [false,’error msg’];
}
Regards
Tony
Maybe there is API in fck that can change dynamically the content ?!?
Copyright 2014 TriRand LtdAll Rights ReservedRSS
Back to Top