Thanks, will wait and try it in the next release
Thanks Tony, but rowObject.nm appears to be the current column name, not the column name (or text value) of the group name.
still looking for help on this one.
are you using a remote datasource like a php backend with SQL ?
If you are always going to be grouping in this fashion (i.e. it is not dynamic) then you can configure your grouping on the name column.
strange, i had tried it on my own and it did successfully make the text field readonly in edit mode
http://www.trirand.com/jqgridwiki/doku.php?id=wiki%3aform_editing#events
can you try using beforeShowForm() instead of beforeInitData()
Just got a chance to try it myself and it should work when using the new event.
in order to group by something it has to be sorted by that same index, otherwise your groups are going to be all messed up and out of order.
right click and inspect the editable element in the browser, it will tell you exactly what the ID is. (if you use chrome/firefox or firebug)
Depending on your version of jquery, you may need to use .attr() instead of .prop()
you can use an event like beforeInitData() in the edit function to make the form elements disabled.
do you have a demo of this ? I haven't the
in scenario one, you can trigger a reloadGrid when you save the new column selections
In scenario two, by default the column changer does not make server side calls since the data is always there it is just hidden. When you enable the column in the column chooser, it just removes the “hidden” attribute on the column so its visible
is grouping optional in your grid ?
or are you always wanting to disable sorting.
each element in the edit form has a unique ID, so you can use that to add the class to the element you want.
you can add classes to the colModel like this
{name:'computer',index:'computer',classes:'class1 class2'}
i dont think you can directly set the attribute the same way, but you can use a css class to set the same behavior, something like this
|
1 |
<div class="sfcode">table td { display: table-cell; vertical-align: top; }</div> |
|
1 |
Alternatively you can do something like this in loadComplete: () |
|
1 |
|
1 |
$(".jqgrow > TD").prop("valign","top"); // for jquery 1.9 or earlier, use .attr() |
can you clarify the question, it is far too vague right now to give a proper answer.
Copyright 2014 TriRand LtdAll Rights ReservedRSS
Back to Top