jQWidgets Forums
Forum Replies Created
-
Author
-
July 18, 2014 at 12:25 pm in reply to: Wrong datarow with updaterow Wrong datarow with updaterow #57413
The problem is that by inserting the new data to the first row, it unsorts or dis-organizes the way the data is stored. The uid’s go 0,1,2,3… but the new row on the top becomes 4, or whatever the next would be, possibly normally on the bottom of the list; hence 4,0,1,3… By using the args.rowindex under non-use of the addrow function would work because there is a 1:1 ratio between rowindex and the uid. Once you start add rows to the top, this is no longer valid. I found an alternate solution however:
data_row = e.args.rowindex; // gets the selected row index
data = $(“<mygrid>”).jqxGrid(‘getrowdata’, data_row); // gets the data for the row*NEW*
data_row = Number(data[“uid”]); // sets the proper row indexWhen this is called, it updates the correct row now:
$(“<mygrid>”).jqxGrid(‘updaterow’, data_row, d); // where d contains the object of the updated dataThanks for you input,
Regards.June 7, 2013 at 12:55 pm in reply to: Is it possible to source from object? Is it possible to source from object? #22779Jazz:
The code doesn’t seem to work, or maybe I missed something, but none the less I was looking for the same functionality which can be achieved this way:
yourdata = [
{ label: “apples”, value: 1},
{ label: “bananas”, value: 2},
{ label: “cherries”, value:3}
];source = { localdata: yourdata, datatype: “array” };
dataAdapter = new $.jqx.dataAdapter(source);
$(“#somelist”).jqxDropDownList({ source:dataAdapter, displayMember: “label”, valueMember: “value” });
You can generate yourlist any what your want — internally, or ajax, but as long as the structure is correct it should work.
Regards.
May 25, 2013 at 3:43 am in reply to: calendar shows behind popup window calendar shows behind popup window #21851RE: #21832
Hi,
Due to the fact we still widely have older XP machines with IE7, many of our webs are set for IE7 emulation. This occurred to me while trouble shooting the problem, so I disabled it (I work with windows7/IE9) so then it worked, I also then changed the emulation to IE8 which also works, this is all without using the popupZIndex.
So all seems fine now, thanks for the response.
Regards.
May 24, 2013 at 1:08 pm in reply to: calendar shows behind popup window calendar shows behind popup window #21832Hi,
I’ve run into this problem myself (IE9) — I have a custom panel div @ index 200, the calendar dialog appears under it. I’ve tried all the suggestions above as well as trying to change the zindex on all the child nodes to 10000 or higher, nothing has worked. when I get the value of popupZIndex it’s higher then the panel but still appears under it.
This is most dissapointing.
RE: (follow up)
Was using jquery 1.8.2, updated to 1.9.0 but no resolution.
-
AuthorPosts