From c7b413e1b8546ee01199ec1af4890422424d443b Mon Sep 17 00:00:00 2001
From: Ming Li TreeGrid events exam
-
+
Node 1-2-1 Additional info
Code
@@ -95,16 +99,16 @@ Code
$('.tree').treegrid({
onChange: function() {
alert("Changed: "+$(this).attr("id"));
- },
+ },
onCollapse: function() {
alert("Collapsed: "+$(this).attr("id"));
- },
+ },
onExpand: function() {
alert("Expanded "+$(this).attr("id"));
}});
$('#node-1').on("change", function() {
alert("Event from " + $(this).attr("id"));
- });
+ });
});
</script>
@@ -124,7 +128,7 @@ Code
<tr class="treegrid-4 treegrid-parent-3">
<td>Node 1-2-1</td><td>Additional info</td>
</tr>
- </table>
+ </table>
</body>
</html>
@@ -152,4 +156,4 @@ Code
}
-