jQWidgets Forums

jQuery UI Widgets Forums General Discussions Use of dataAdapter with Knockout

This topic contains 3 replies, has 2 voices, and was last updated by  Dimitar 12 years, 4 months ago.

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
  • Use of dataAdapter with Knockout #14125

    samng
    Member

    I am trying to use the dataadapter to handle my data in JSON format and have it presented on the view. However, I don’t seem to see an good examples of how I use data-bind on the view. I tried to set the dataadapter object in the view e.g.

    <div id="chart" style="float: left; width:800px; height: 400px" data-bind='
    jqxChart:
    {
    title: "",
    description: "",
    enableAnimations: false,
    showLegend: true,
    padding: { left: 30, top: 20, right: 30, bottom: 20 },
    titlePadding: { left: 90, top: 0, right: 0, bottom: 10 },
    source: dataAdapter,
    categoryAxis:
    {
    text: “Category Axis”,
    dataField: “name”,
    textRotationAngle: 90,
    showTickMarks: true,
    tickMarksInterval: 1,
    tickMarksColor: “#888888”,
    unitInterval: 1,
    showGridLines: false,
    gridLinesInterval: 1,
    gridLinesColor

    But no luck. Can anyone help ?

    Use of dataAdapter with Knockout #14142

    Dimitar
    Participant

    Hello samng,

    Please check out the Knockout demo Chart to see how to integrate jqxChart with Knockout.

    Best Regards,
    Dimitar

    jQWidgets team
    http://www.jqwidgets.com/

    Use of dataAdapter with Knockout #14145

    samng
    Member

    Hi Dimitar,

    So if I want to use a dataadapter object instead of the static sample data, how should I integrate that with knockout ?

    samng

    Use of dataAdapter with Knockout #14190

    Dimitar
    Participant

    Hi samng,

    The ListBox with DataAdapter demo and some others in the Knockout demo section show how to use jqxDataAdapter with Knockout.

    Best Regards,
    Dimitar

    jQWidgets team
    http://www.jqwidgets.com/

Viewing 4 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.