Hello,
All features except the methods from jQueryUI modules
Kind Regards,
Will
Guriddo Support Team
Hello,
Thank you for the code. I understand what you want to do.
You do nothing wrong. The behavior you describe is correct.
It is not possible to meet every user requirement, but fortunately we have created a lot of events and options where almost every problem can be solved.
One possible solution is to use a custom button. The idea is to chenge the index name before calling the search and put it back after the search dilog closes.
For this purpose we will use setColProp method and recreateFilter parameter set to tru so that every time the search is open the renaming can take effect. Bellow is a code snippet.
(You will need to disable the build in search in navigator search:false)
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 |
$("#list2").navButtonAdd("#pager", onClickButton : function() { $("#list2").setColProp("StoreName_0", {index : "StoreName_0"}); // do for the other you need $("#list2").jqGrid("searchGrid",{ recreateFilter: true, multipleSearch: true, closeAfterSearch: true, onClose : function () { $("#list2").setColProp("StoreName_0", {index : "d0_key"}); // do for the other you need } }); }); |
Kind Regards,
Will
Guriddo Support Team
Hello,
Please ignore my first post how to change the icons. It is wrog. Sorry for this.
To change the icons on colmenu you can do something like this (after loading jqGrid files:
|
1 2 3 4 |
... $.jgrid.styleUI.Bootstrap.colmenu.icon_freeze = "glyphicon-indent-left"; ... |
Kind Regards,
Will
Guriddo Support Team
Hello,
About 3. open the ui.jqgrid-bootstrap.css and find the class .colmenu. the styling is like this:
|
1 2 3 4 5 6 7 |
.ui-jqgrid .ui-jqgrid-htable .colmenu { position:absolute; right:1px; height:100%; color : black; } |
Change it to
|
1 2 3 4 5 6 7 |
.ui-jqgrid .ui-jqgrid-htable .colmenu { position:relative; left:20px; height:100%; color : black; } |
The 20px are to preserve a room for sorting icons.
About 5. Sorry that I explain it so that I think you are familiar with jqGrid.
Actually when using the jquery.jqGrid.min.js file it is not possible to see what to change. In order to have a idea, use the jquery.jqGrid.js file (not minified) and open it. Search for styleUI. you will find something like this
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 |
styleUI : { ... Bootstrap : { common : { disabled: "ui-disabled", highlight : "success", hover : "active", cornerall: "", cornertop: "",  cornerbottom : "", hidden : "", icon_base : "glyphicon", overlay: "ui-overlay", active : "active", error : "bg-danger", button : "btn btn-default", content : "" }, ... colmenu : { menu_widget : '', input_checkbox : "", filter_select: "form-control", filter_input : "form-control", icon_menu : "glyphicon-menu-hamburger", icon_sort_asc : "glyphicon-sort-by-alphabet", icon_sort_desc : "glyphicon-sort-by-alphabet-alt", icon_columns : "glyphicon-list-alt", icon_filter : "glyphicon-filter", icon_group : "glyphicon-align-left", icon_freeze : "glyphicon-object-align-horizontal", icon_move: "glyphicon-move" } ... |
the colmenu property describes the styling for the colmenu. The items which begin with icon_… set the icons for the particular menus. Change it in a way that I heva described in my previous mail
About 6. It seems really that you have missed to load some css file and I think that the ui.jqgrid-bootstrap.css is not loaded.
If you are familiar with FireFox or Chrome debug console you will see if all the needed files are loaded correct.
If you can prepare a simple example with simple data, please send it to us again with all the files (JavaScript and CSS), so that we can investigate the problem.
Thank you
Kind Regards,
Will
Guriddo Support Team
Hello,
1. The grid is independed from CSS style. Currently we support jQuery UI and Bootstrap. All the settings are stored in the common object $.jgrid.styleUI. For jQueryUi the styling is in $.jgrid.styleUI.jQueryUI property, and for Bootstrap $.jgrid.styleUI.Bootstrap. Properties under Bootstrap describes the classes and icons. To use the font awesome icon styling you will need to load the needed css files and changet the icon base. The icon base is in common property of Bootstrap and is equla to glyphicon. To change this you will need to change the base for font awesome. This can be done soething like this
|
1 2 3 4 |
... $.jgrid.defaults.styleUI.Bootstrap.common.icon_base = 'fa'; ... |
after loading the jqgrid files.
To change any icon in the column menu locate the styleUI Bootstrap colmenu in jqgrid javascript file property and change it to the desired icons.
Note that when using font awesome you will need to change all the icons for the grid – this is not tested and maybe both iconic systems can exists together using
|
1 2 3 |
... $.jgrid.defaults.styleUI.Bootstrap.common.icon_base = 'fa glyphicon'; ... |
2. To change the icon color/size one possible solution is to
|
1 2 3 4 5 6 |
.ui-jqgrid .fa .fa-camera-retro { /* your setting here */ } |
3. Can you please provide a example how will look this. Currently the coordinates can not be configured.
4. This is a bug and we have fixed it. Thank you.
5. Not sure that I understand this. Can you please explain it again? If you mean the texts you can access the language file and serch for the colmenu to see how to change the texts.
6. Can you please provide a example what you mean with sticky. We ask this in order to overcome some confusions. This is our example
Kind Regards,
Will
Guriddo Support Team
Hello,
Thank you for investigations. We will check issues you have. As for the 3. We can not tell you too much – it all depend on your code realization.
Kind Regards,
Will
Guriddo Support Team
Hello,
|
1 2 3 4 5 6 7 8 |
... .jqGrid({ ... storeNavOptions : true, ... }); ... |
Kind Regards,
Will
Guriddo Support Team
Hello,
You have set the datepicker only for editing – you use editoptioms dataInit event.
In order to use the datepicker in search form, you will need to add the same code using search options.
Another solution is to use the setDatepicker PHP method where this is by default. See here
Kind Regards,
Will
Guriddo Support Team
Hello,
Glad to hear that it is working as per your requirements.
Kind Regards,
Will
Guriddo Support Team
Hello,
Thank you for the feedback and the efforts.
Kind Regards,
Will
Guriddo Support Team
Hello,
Thanks. We work on this.
Kind Regards,
Will
Guriddo Support Team
Hello,
Unfortunately we can not reproduce the problem.This example uses the latest 5.1 Suito PHP version and we do not see any problem.
Could you please send us the code with sample data causing the problem?
Thank you.
Kind Regards,
Will
Guriddo Support Team
Hello,
Thank you very much for the code. We have found the problem and have fixed it.
You can download the fix from GitHub.
Please, let us know if the fixed version is working as expected.
Kind Regards,
Will
Guriddo Support Team
I see what you mean. Will see this.
Regards,
Will
Guriddo Support Team
I can not find yuor demo with onselect_event (or I’m missing something)
Can you please send us the code for this?
Thank you
Regards,
Will
Guriddo Support Team
Copyright 2014 TriRand LtdAll Rights ReservedRSS
Back to Top