update aliased column on record update

Questionsupdate aliased column on record update
Harry asked 9 years ago

Hi

I have an aliased column that contains a dropdown menu with a series of links based on records from other columns, e.g.

$col = array();
$col["title"] = "research gene";
$col["name"] = "pathway";
$col["width"] = "22";
$col["default"] = '<select onClick="openWindow(this)"><option value ="">select</option><optgroup label="Phenotype"><option value="https://phgkb.cdc.gov/HuGENavigator/geneProspector.do?query={subcategory}">Gene Prospector</option> … </select>';
$col["sortable"] = false;
$col["search"] = false;
$col["editable"] = false;
$col["align"] = "center";
$col["export"] = false;
$cols[] = $col;

How can I have this column (or the select statement) update when the field {subcategory} is edited?

Thank you

3 Answers
Abu Ghufran answered 9 years ago

If you reload whole grid after edit, it should have new subcategory value.

$grid["reloadedit"] = true;
$g>set_options($grid);

Harry answered 9 years ago

Reloading the entire grid takes time and resets the view.

Can just the contents of a single cell or row be updated?

Thank you

Abu Ghufran answered 9 years ago

I reviewed jqgrid forum and stackoverflow.
Currently its not doable and complex changes will be required.

Your Answer

16 + 2 =

Login with your Social Id:

OR, enter

Attach code here and paste link in question.
Attach screenshot here and paste link in question.



How useful was this discussion?

Click on a star to rate it!

Average rating 0 / 5. Vote count: 0

No votes so far! Be the first to rate it.

We are sorry that this post was not useful for you!

Let us improve this post!

Tell us how we can improve this post?