Hello,
You call editGridRow twice which IMHO is not good.
In order to change the edit caption dynamically do this:
beforeShowForm : function (formid) {
var mytitle = “My text to show”; // or what you want
$(“.ui-jqdialog-title”,”#edithd”+mygridid).html(mytytle);
}
wher mygrid id is the id of the grid.
Best Regards
Tony
Hello,
It is again the common problem – which is the first the egg or the chicken?
– Also in order to check if you have records – the grid is already construct (expanded), since of the ajax call (we do not know initially how many records we have).
– If you make the grid initially hidden it is quite possible, that you have records in the view
and so on.
I think that there are two possible solutions:
1. Before to open the grid check if the current query has records. (The most clear way)
If this is the case construct the grid with hiddengrid:false otherwise hiddengrid:true
2. Use loadComplete event to check if you have records and then either use setGridState (currently this method is only in GitHub)
or trigger the click to hide/show grid button.
Best Regards
Tony
Hello,
Currently no, but I will think on this direction.
Best Regards
Tony
Hello,
1. Not sure what you mean with this, but you can use a custom formatter for this purpose. If you mean additional row – currently this is not possible.
2. Maybe you will need to use afterInsertRow event.
3. To be a honest I never try this , but you can
colModel :[
{name:'somename'… stype:'select', searchoptions:{multiple:true, size:3}..}
…
]
Best Regards
Tony
Hello,
Does your data contain special characters?
Regards
Tony
Hello,
Do not understand, and I think that
Have nothing to do with what you describe.
Best Regards
Tony
Hello,
Not understand what you mean. What you use – inline edit or form edit.
If you use form edit module you can use defaultValue (work only in add mod) – look into the docs.
Regards
Tony
Hello,
Remove pagina=” + paginaActual from url and do
..jqGrid({
….
postData:{pagina:paginaActual},
…
});
Also you do not need to trigger the grid. It is done automatically after this event ends.
Regards
Tony
Hello,
Better is this:
$(”.ui-jqgrid-titlebar-close”, “#gbox_mygrid”).click(…)
where mygrid is the id of the grid.
Regards
Tony
Hello,
Could you please try this way:
… editoptins:{value:{“”:”Select”,”Y”:”Yes”,”N”:”No”}}
direct in the colModel
Regards
Tony
Hello,
What you mean with “what I have to do to get an add-, edit-, search- and delete-button”
Regards
Tony
Hello,
What event do you use for this purpose? If you use onSelectRow event
Hello,
Use setCell method just before calling the editRow method.
Regards
Tony
Hello,
Adding dynamicaly images in tree grid currently is not possible. You can change only the predifined images. This is in the todo list for the next versions.
Best Regards
Tony
Hello,
Use dataInit event (see docs) to adda image and a click event to this image.
Best Regards
Tony
Copyright 2014 TriRand LtdAll Rights ReservedRSS
Back to Top