jQWidgets Forums
Forum Replies Created
-
Author
-
June 1, 2013 at 2:23 am in reply to: Binding to JSON demo – id Property for source Object Binding to JSON demo – id Property for source Object #22308
Bump
May 31, 2013 at 2:28 am in reply to: Binding to JSON demo – id Property for source Object Binding to JSON demo – id Property for source Object #22210Hello again Peter,
Whether or not the “id” Setting is included as a Property for the “source” Object, the Resulting Dataset Object has a Name/Value pair with a Name of “uid”.
When the “id” Setting is included and the Original Dataset has a matching Data Field, then, the data of the Original Dataset is used to populate the Value for the Name/Value pair with a Name of “uid” in the Resulting Dataset.
When the “id” Setting is included and the Original Dataset does NOT have a matching Data Field, then, the Value for the Name/Value pair with a Name of “uid”, in the Resulting Dataset, is populated incrementally starting with 0 in the order that the Original Dataset is read.
When the “id” Setting is NOT included, then, the Value for the Name/Value pair with a Name of “uid”, in the Resulting Dataset, is populated incrementally starting with 0 in the order that the Original Dataset is read.
Now, I would have expected that if the resulting dataset Object was to be searched based on the data of the ID field of the Original Dataset, then, you would have thought that the Original Name (e.g. “id” as in the beverages.txt file) would be used for the Key parameter.
So, for what reason has an “id” Property been specified in some of the demos when the Original Dataset does not have a matching Data Field?
Also, whether or not the “id” Property has been specified and whether or not there is a matching Data Field in the Original Dataset, why does the Resulting Dataset use the Name of “uid”?
Thank you, Michael.
May 30, 2013 at 4:18 am in reply to: Binding to JSON demo – id Property for source Object Binding to JSON demo – id Property for source Object #22086Hi Peter,
I had already read that page and it did not answer my question.
Please read my first post again.
Thank you, Michael.
Why can you only edit a Post once? Grrrrr!!!
How do you format an HTML Tag so it only uses the minimum space for the Tag?
My question again.
Why are so many nested divs used in the building of the Widgets?
May 26, 2013 at 11:30 pm in reply to: Offline Caching of Data Files not working Offline Caching of Data Files not working #21866Hi Peter,
If the Javascript files can be cached, then, why not the customers.txt file?
On the initial online access of a Mobile Web Application, can a text file (json, xml, csv, etc) be read and stored in Local Storage using the Web Storage API?
Thanks, Michael.
May 25, 2013 at 12:14 am in reply to: Addition of ComboBox is causing Drop-Down Menu to open Addition of ComboBox is causing Drop-Down Menu to open #21848P.S.
Were you able to test my page on an iPhone using iOS 6.1.3?
Thanks, Michael.
May 25, 2013 at 12:03 am in reply to: Addition of ComboBox is causing Drop-Down Menu to open Addition of ComboBox is causing Drop-Down Menu to open #21847Hi Peter,
I have determined that my Drop-Down Menu is being activated when the following line of Javascript code is activated.
$("#jqxWidget").jqxComboBox({ selectedIndex: 0, source: dataAdapter, displayMember: "ContactName", valueMember: "CompanyName", width: 200, height: 25, theme: theme });
Thanks, Michael.
May 24, 2013 at 5:17 am in reply to: Addition of ComboBox is causing Drop-Down Menu to open Addition of ComboBox is causing Drop-Down Menu to open #21820I forgot to mention that this is only happening on Mobile Safari on my iPhone 3GS.
It’s fine on Firefox 12.0 on my Desktop.
I commented out the line of code you referenced but the same problem still exists.
Also, I just noticed in the Error Console of Firefox 12.0 on my Desktop that there are syntax errors with the JSON file customers.txt.
Thanks, Michael.
May 23, 2013 at 6:32 am in reply to: Splitter prevents/hides Drop-Down Menu … Splitter prevents/hides Drop-Down Menu … #21716Can I only edit a reply once?
May 23, 2013 at 6:15 am in reply to: Splitter prevents/hides Drop-Down Menu … Splitter prevents/hides Drop-Down Menu … #21710Hi again Peter,
I couldn’t find any z-index attributes being set for the Splitter
<div>
s when inspecting with Firefox.
So, I first tried “z-index:100” for “nav ul” which worked and then I tried “z-index:1” which also worked which I think conforms that the z-index attribute is not being used in any of the Classes used for the Splitter
<div>
s.
It’s probably something to do with “position:absolute” being used but I’m not sufficiently skilled with CSS yet to determine where such changes would need to be made without requiring the use of “z-index”.
I have some other pages using the same menu without z-index being used.
Thanks, Michael.
May 23, 2013 at 4:47 am in reply to: API Documentation is incomplete for ComboBox addItem method … API Documentation is incomplete for ComboBox addItem method … #21701P.S.
Is the following line of code valid?
$(‘#cbbCustomers’).jqxComboBox(‘addItem’, { value: “Create”, label: ‘Create “‘ + searchString + ‘”‘ });
May 23, 2013 at 4:43 am in reply to: API Documentation is incomplete for ComboBox addItem method … API Documentation is incomplete for ComboBox addItem method … #21699Hi Peter,
I guess the only other option, then, is that when a User enters text in the ComboBox, for which there is No Match, is to add it to the Local Storage and then reload/refresh the ComboBox list.
Is that feasible?
Thanks, Michael.
May 22, 2013 at 6:45 pm in reply to: API Documentation is incomplete for ComboBox addItem method … API Documentation is incomplete for ComboBox addItem method … #21671Hi Peter,
If you look at the code of the examples (demos for jqxcombobox – bindingtojson.htm & bindingtoxml.htm), available in the download, you will see that when a ComboBox is being populated that both a Value and Label are being set for each row.
I also found the following post which is what prompted me to make my original post.
http://www.jqwidgets.com/community/topic/additem-problem/Where did dc4m get an example from for the following line of code?
$(‘#cbbCustomers’).jqxComboBox(‘addItem’, { value: “Create”, label: ‘Create “‘ + searchString + ‘”‘ });
Can the “item” Object, returned by using either the getItem or getItemByValue methods, be used to Set the values of the “label” or “value” as follows?
var objItem = $(“#jqxComboBox”).jqxComboBox(‘getItem’, 1 );
objItem.label = “Label Text”;Thank you, Michael
May 22, 2013 at 3:47 am in reply to: API Documentation is incomplete for ComboBox addItem method … API Documentation is incomplete for ComboBox addItem method … #21577Hi Peter,
The posted code does not show how a “label – display text” should be added when adding an item to a ComboBox.
The API Documentation does not show what the parameters are for this.
For example if the Value is “1” and the Label to be displayed is “First Item”, where is the documentation that describes how this should be done?
Thank you, Michael.
-
AuthorPosts