Details
-
Type:
Improvement
-
Status:
Resolved
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: 1.0.1
-
Fix Version/s: 1.0.2
-
Component/s: None
-
Labels:None
Description
It would be nice to allow row click navigation if the dataUrl is present instead of just using it for row expansions. Currently, users have to do something like this to get this working (see this nabble issue):
<gui:dataTable
id="myDataTable"
---YOUR OTHER DATATABLE ATTRIBS---
/>
</gui:dialog>
<script>
var callback = {
success: function(request) {
alert('success');
},
failure: function(request) {
alert('failure');
}
};
// here we access the datatable through the GRAILSUI namespace and attach a custom listener
GRAILSUI.myDataTable.subscribe("rowClickEvent", function(oArgs) {
YAHOO.util.Connect.asyncRequest('POST', 'my/submission/url', callback, "clicked=" + oArgs.target);
});
</script>
If there is dataUrl in the JSON data for a row, and the dataTable attributes include rowClickNavigation="true", row click navigation is enabled.