jQWidgets Forums
Forum Replies Created
-
Author
-
Your code does work, I spend some time to track the problem down and it accursed when you open modal window from another window.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <link rel="stylesheet" href="../../jqwidgets/styles/jqx.base.css" type="text/css" /> <link rel="stylesheet" href="../../jqwidgets/styles/jqx.summer.css" type="text/css" /> <script type="text/javascript" src="../../scripts/jquery-1.10.2.min.js"></script> <script type="text/javascript" src="../../jqwidgets/jqxcore.js"></script> <script type="text/javascript" src="../../jqwidgets/jqxwindow.js"></script> <script type="text/javascript" src="../../jqwidgets/jqxbuttons.js"></script> <script type="text/javascript"> $(document).ready(function () { $('#jqxwindow').jqxWindow({ width: 300, height: 200 }); $('#jqxwindow2').jqxWindow({ autoOpen: false, height: 179, isModal: true, width: 300 }); $("#jqxbutton").jqxButton({ height: 30 }); $('#jqxbutton').click(function () { $("#jqxwindow2").jqxWindow('open'); $("#jqxwindow2").jqxWindow('bringToFront'); }); }); </script> </head> <body> <div id='content'> <div id='jqxwindow'> <div> Header</div> <div> <input type="button" id="jqxbutton" value="Invoke the bringToFront method" /></div> </div> <div id='jqxwindow2'> <div> Header2</div> <div> </div> </div> </div> </body> </html>
Hope it helps.
Great.
I don’t like the idea to use radio.
I will stick with jqxTabs and collapsible: true.But it would be a nice feature to have.
Is there any way I can change css style of the selected button?
I just found pagerheight: 0.
Now I just wonder if this is a good approach?January 3, 2014 at 6:47 pm in reply to: Automatically determine page size? Automatically determine page size? #47210Agree. This would be a nice feature.
I know that. I read your documentation more often then I eat.
I just want to use default mode, because it more suit my needs.Right now I am using jqxTabs with collapsible: true, where every content is empty, but this is cheating.
There must be some way?
I agree. I also need true time series. I want to show room temperature in my house in a graph. I want to use RangeSelector to choose from this date to that date and display this in a graph. I don’t have much success for now.
I must say, that I really like JQWidgets and that they are the best. And I try several of them. The best is Knockout integration and good support on forum.
December 16, 2013 at 3:47 pm in reply to: Using this inside object on grid events Using this inside object on grid events #46607Anyone, please?
December 11, 2013 at 8:27 pm in reply to: Using this inside object on grid events Using this inside object on grid events #46361Still no idea how to solve the problem, so I create an example and 2 sreenshots:
Demo: jsfiddle (just click run) Hope it works.
Hope it helps.
December 9, 2013 at 9:14 pm in reply to: Using this inside object on grid events Using this inside object on grid events #46247Thank you, for all answers, but:
I understand how this works, and when debugging, myVariable has pointer to Form object. I am asking only, how to send this pointer to renderstatusbar event handler?December 9, 2013 at 7:32 pm in reply to: Using this inside object on grid events Using this inside object on grid events #46235I get error:
Uncaught Invalid property: myVariable jqx-all.js:6
Code:var Form = function() { //... InitGrid: function() { var GridSettings = { //... showstatusbar: true, myVariable: this, renderstatusbar: function(statusbar) { myVariable.DoSomething(statusbar); } }; $('#grid').jqxGrid(GridSettings); }, DoSomething: function(statusbar) { //do something } };
December 9, 2013 at 5:40 pm in reply to: Using this inside object on grid events Using this inside object on grid events #46227How can I do that? I know this is now a funny question, but …
December 9, 2013 at 3:02 pm in reply to: Using this inside object on grid events Using this inside object on grid events #46215I know how to set up status bar. I wouldn’t waste your time with question, that have plenty examples on page.
I apologize for not telling enough informations.
The StatusBar worked for my grid. Then I try to pack all logic to JavaScript object, and I have problems with calling another method inside my object (where jqxGrid was created), because “this” refers to Grid and not my object (Form).
I hope that this explanation better explains my problem.Is there a way, to send some parameters to event handler function.
For example:this.Window.on('moved', { self: this}, function(event) { event.data.self.WindowMoved(event); });
Explanation:
var Form = function() { //... InitGrid: function() { var GridSettings = { //... showstatusbar: true, renderstatusbar: function(statusbar) { this.RenderStatusbar(statusbar); //this is grid, not form //how can I call RenderStatusbarPrivate from here??? } }; $('#grid').jqxGrid(GridSettings); }, RenderStatusbarPrivate: function(statusbar) { //do something } };
Great and thanks.
May 13, 2013 at 9:39 am in reply to: Render bug (with checkboxes when adding sub items) Render bug (with checkboxes when adding sub items) #21022True. The time progress so fast. Didn’t think of upgrading controls.
-
AuthorPosts