jQWidgets Forums

Forum Replies Created

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • in reply to: itemClick not firing itemClick not firing #84665

    sudeep
    Participant

    Hi,
    i am using angularjs for tree but i cant fire the event in the tree when i press something…..i have used jqx-on-itemclick..can you help me..
    this is my code….
    <script>
    $scope.press = function (event) {
    alert(“hello”);
    var args = event.args;
    alert(“[” + $(args).text() + “]”);
    };
    </script>
    <body>
    <div ng-app=”demoApp” ng-controller=”demoController”>

    <jqx-tree jqx-on-itemclick=”press($event)” jqx-width=”‘300px'” jqx-height=”‘300px'”>

      <li id=’home’>Home
      <li item-expanded=’true’>Solutions
    • Education
    • Financial services
    • Government
    • Manufacturing
    • Solutions
    • All industries and solutions
  • Products
  • Support
  • Communities
    • Designers
    • Developers
    • Educators and students
    • Partners
    • By resource
  • Company
    • About Us
    • Press
    • Investor Relations
    • Corporate Affairs
    • Careers
    • Showcase
    • Events
    • Contact Us
    • Become an affiliate
  • </jqx-tree>
    </div>
    </body>


sudeep
Participant

i am using HTML 4 does it matter for this error


sudeep
Participant

Hii,
i have tried to load a HTML page in popup using ng-include but it is not loading. that HTML page contain a calender of jqwidgets.here is the code.

<script type=”text/javascript”>
var app=angular.module(“myApp”,[“jqwidgets”]);
app.controller(“calenderController”, function ($scope) {
var dialog;
$scope.imageClick=function(){
alert(“hello”);
dialog.open();
};
$scope.dialogSettings = {
created : function(args) {
dialog = args.instance;
},
resizable : false,
position : {
left : popup.offsetLeft + 300,
top : popup.offsetTop
},
width : 400,
height : 300,
autoOpen : false
};
});
</script>
</head>
<body ng-app=”myApp” ng-controller=”calenderController”>
<center>
<input type=”text”>
datesrc
</center>
<jqx-window jqx-on-close=”close()” jqx-create=”dialogSettings” jqx-settings=”dialogSettings”>
<div id=”popup”>Edit Dialog</div>
<div style=”overflow: hidden;”>
<div ng-include=” ‘Calender.html’ “></div>
</div>
</jqx-window>
</body>
</html>


sudeep
Participant

thank you…………peter


sudeep
Participant

what is jqx-setting and jqx-create and jqx-watch

Viewing 5 posts - 1 through 5 (of 5 total)