jQWidgets Forums
Forum Replies Created
-
Author
-
April 4, 2013 at 4:49 am in reply to: Grid Dynamic refresh indicator Grid Dynamic refresh indicator #18567
Thank you Peter,
Calling updatebounddata on the grid in my drop box’s change event worked.
Appreciate your help.
April 4, 2013 at 3:37 am in reply to: Grid Dynamic refresh indicator Grid Dynamic refresh indicator #18563Thank you Peter,
What is the correct way of dynamically refreshing the data in the grid using server data? The examples I saw in the documentation are using local data only.
Thanks.
Thank you Peter. Your suggestion worked perfectly.
I solved the problem by upgrading my jQuery and jQWidgets versions.
Thanks.
Hi Peter,
Thank you for you response. I tried that and it did not work. I am still getting the same result. I tried it in different browsers but that did not make any difference.
Do you have any other ideas on how to resolve this?
Thanks.
Thank you Peter,
This was the problem. I just updated the project to jQuery 1.9 and everything works as expected.
Appreciate your help.
February 13, 2013 at 6:46 am in reply to: Empty MaskedInput display Empty MaskedInput display #15115Thank you Peter.
Hi Peter,
Thank you for your reply. As I mentioned in my post, everything was working fine until I replaced the 2.6 version with 2.7. Furthermore, If I remove the reference to the jqxDocking in my js file, the page loads correctly, but with the jqxDocking code, I get the “TypeError: e is not a function” error.
I am not doing anything different, all I did was replaced the content of the jqwidgets directory with the one I downloaded today (v.2.7). There must be a conflict somewhere otherwise the code should work, right? As you can see the code above is taken from your demo page. Here is my jqwidgets bundle:
bundles.Add(new ScriptBundle(“~/bundles/jqwidgets_controls”).Include(
“~/Plugins/jqwidgets/jqxcore.js”,
“~/Plugins/jqwidgets/jqxbuttons.js”,
“~/Plugins/jqwidgets/jqxdata.js”,
“~/Plugins/jqwidgets/jqxgrid.js”,
“~/Plugins/jqwidgets/jqxgrid.edit.js”,
“~/Plugins/jqwidgets/jqxgrid.selection.js”,
“~/Plugins/jqwidgets/jqxmenu.js”,
“~/Plugins/jqwidgets/jqxscrollbar.js”,
“~/Plugins/jqwidgets/jqxlistbox.js”,
“~/Plugins/jqwidgets/jqxdropdownlist.js”,
“~/Plugins/jqwidgets/jqxgrid.columnsresize.js”,
“~/Plugins/jqwidgets/jqxgrid.selection.js”,
“~/Plugins/jqwidgets/jqxgrid.edit.js”,
“~/Plugins/jqwidgets/jqxcheckbox.js”,
“~/Plugins/jqwidgets/jqxnumberinput.js”,
“~/Plugins/jqwidgets/jqxexpander.js”,
“~/Plugins/jqwidgets/jqxnavigationbar.js”,
“~/Plugins/jqwidgets/jqxmaskedinput.js”,
“~/Plugins/jqwidgets/jqxdatetimeinput.js”,
“~/Plugins/jqwidgets/jqxcalendar.js”,
“~/Plugins/jqwidgets/jqxtooltip.js”,
“~/Plugins/jqwidgets/jqxdocking.js”,
“~/Plugins/jqwidgets/jqxpanel.js”,
“~/Plugins/jqwidgets/jqxsplitter.js”,
“~/Plugins/jqwidgets/jqxwindow.js”,
“~/Plugins/jqwidgets/jqxtabs.js”,
“~/Plugins/jqwidgets/jqxvalidator.js”,
“~/Plugins/jqwidgets/globalization/jquery.global.js”));I am loading all the files like so:
@Styles.Render(“~/Content/css”)
@Scripts.Render(“~/bundles/modernizr”)
@Scripts.Render(“~/bundles/jquery”)
@Scripts.Render(“~/bundles/jqueryval”)
@Scripts.Render(“~/bundles/jqwidgets_controls”)
@Scripts.Render(“~/bundles/custom”)
@Scripts.Render(“~/bundles/blockui”)
@Scripts.Render(“~/bundles/plugins”)
@Styles.Render(“~/Plugins/jqwidgets/styles/jqx.base.css”)
@Styles.Render(“~/Plugins/jqwidgets/styles/jqx.shinyblack.css”)
@Styles.Render(“~/Plugins/jqwidgets/styles/jqx.ui-smoothness.css”)
@Styles.Render(“~/Plugins/jqwidgets/styles/jqx.ui-darkness.css”)As far as I can see, everything is loading correctly. I am not getting any network errors so all the files load properly. Here is my HTML:
calendarSunny
Mo: 23 °C
To 25 °C
We: 27 °CNewsWorld
Local
SportsMicrosoft is set to get a little more pushy ensuring
you have an up-to-date browser and will automatically update Internet Explorer…
(BBC)The High Court has dismissed a challenge to laws that
require immigrant spouses to be able to speak English in order to live in the UK…
(BBC)British number one Elena Baltacha says Judy Murray is
a “fantastic” appointment as Great Britain’s new Fed Cup captain… (BBC)ZodiacLeo
Individuals born under the zodiac sign of Leo are very
good looking and have a healthy physique, with a broad forehead. Leo are very intelligent,
extremely courageous, love their freedom and live by their own rules. Indulgence
and extravagance is like second nature to them and they love to…E-mailThis code was copied from your Demo page as well.
What am I missing? I spent all afternoon trying to figure this out and I am out of ideas.
Thank you.
I also wanted to add that I was looking at your demo at: http://www.jqwidgets.com/jquery-widgets-demo/demos/jqxgrid/index.htm#demos/jqxgrid/defaultfunctionality.htm and there the checkbox column works perfectly fine. However, if I try to use the same code in my project, it does not work.
The only difference between the demo and my project is that I am using Json data from the server while the demo is using xml data. Could that have anything to do with it?
Never mind, I found it using Firebug. Thanks for your help.
Thank you Peter,
How would you suggest to investigating this issue? Is there a method or tool that you guys use when you run across similar issues?
Peter,
As an alternative, I would like to display Yes and No when the field is true. I am trying to execute the following code, but I cannot make it to work:
// create the dataadapter
var dataAdapter = new $.jqx.dataAdapter(source, {
downloadComplete: function (data) {
for (var i = 0; i < dataAdapter.records.length; i++) {
if (data[i]["Active"]) {
data[i]["Active"] = "Yes";
} //if
} //for
return data;
} //downloadComplate
});What am I doing wrong? This is a very common scenario and there must be a better way of displaying boolean data than showing true and false to the user.
Thanks
Instead of loading text, can I inject a img tag? Maybe I display a check image when the value of the field is true.
Thank you Peter,
Do you have a workaround we can use in the meantime? Or maybe a suggestion on how to display a boolean column. I do not want our customers to see true and false in that column.
Thank you. Another observation: if I remove the type: ‘boolean’ attribute on the source field, the grid loads correctly, but the checkbox is always unchecked. What is strange is that adding the type of the field triggers this error.
-
AuthorPosts