jQWidgets Forums
jQuery UI Widgets › Forums › Dialogs and Notifications › Window › jqxwindow open firing late
Tagged: grid, initContent, jqxgrid, jqxwindow, open event, open method, window
This topic contains 6 replies, has 3 voices, and was last updated by gopinath_ui 10 years, 1 month ago.
-
Author
-
I have a Jqxwindow in my application in which i have a grid within the window.
When the open event of jqxwindow is fired beforer opening the window the next event is fired.
I need the window to open first then the proceeding event has to get fired.
In the attached example if you notice after the window is open i have fired a alert which gets fired before the window opens .
Steps
1.click on hide window first
2.click on show “before the window opens the HI alerts comes then only window opens”\PLEASE GO THROUGH THE ATTACHED EXAMPLE:
http://jsfiddle.net/FKQcW/19/Hello gopinath_ui,
Here is an example which shows how to use ‘open’ event: http://jsfiddle.net/fn46Lzon/.
Please, note that there is difference between ‘open’ event and ‘open’ method.Best Regards,
NadezhdajQWidgets team
http://www.jqwidgets.com/Hi nadezha
alert just example, instead of this I have used jqxgrid to load on open. But jqxwindow get delayed to open in ie9, when the jqxgrid loading rendering is start then the jqxwindow is opened. I have used above the example but not worked, any solution?.
Regards
Gopinath BSHi Gopinath BS,
Please, find the following example which works on our side: http://jsfiddle.net/5avw10ms/. I suggest you to use the most recent version of jQWidgets which is 3.7.1.
Best Regards,
NadezhdajQWidgets team
http://www.jqwidgets.com/Hi Nadezha
1.Jqxwindow initContent is work in jQWidgets v3.4.0?
2.Above example is array format, can u give example for json format with ajax url on initcontent?
Regards
Gopinath BSHi Gopinath BS,
1. For API supported in ver. 3.4.0, look at the documentation folder of that version’s download package.
2. To learn how to data bind jqxGrid, I suggest you to look at its examples and documentation. There is explained how to bind it to JSON and many more data sources.Best Regards,
Peter StoevjQWidgets Team
http://www.jqwidgets.com/welcome peter,
I have used data binding format:
”
// prepare the data
var source =
{
datatype: “jsonp”,
datafields: [
{ name: ‘countryName’, type: ‘string’ },
{ name: ‘name’, type: ‘string’ },
{ name: ‘population’, type: ‘float’ },
{ name: ‘continentCode’, type: ‘string’ }
],
url: “http://ws.geonames.org/searchJSON”
};
var dataAdapter = new $.jqx.dataAdapter(source,
{
formatData: function (data) {
$.extend(data, {
featureClass: “P”,
style: “full”,
maxRows: 50
});
return data;
}
}
);
$(“#jqxgrid”).jqxGrid(
{
source: dataAdapter,
columnsresize: true,
columns: [
{ text: ‘Country Name’, datafield: ‘countryName’, width: 200 },
{ text: ‘City’, datafield: ‘name’, width: 170 },
{ text: ‘Population’, datafield: ‘population’, cellsformat: ‘f’, width: 170 },
{ text: ‘Continent Code’, datafield: ‘continentCode’, minwidth: 110 }
]
});
”
through your documentation api which is on open jqwindow. but jqwindow is get delay to open in ie9 and also above example tried, it get same issue in ie9. can u give solution?Regards
Gopinath BS -
AuthorPosts
You must be logged in to reply to this topic.