Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    Problem with ListGrid and DataSource

    Hallo, i'm a new developer in SmartGWT. This framework is nice and my customer will develop one application intranet with SmartGWT.
    This architecture is two layer composed: backend in PHP and frontend in JAVA (GWT).

    I've resolved the SOP problem, because the PHP turn in door 88, and the JAVA turn in door 8888.

    My problem is another.

    I will make an databound ListGrid with dynamic DataSource, but there is many errors, when draw() the ListGrid.
    I've seen the example in Showcase #grid_databinding_json_datasource, but the data are in a path (/ds/test_data/countryData.json).
    Now this is the problem. I will load the data not so, but dynamically, using un callback with javascript, and use a datasource, but not is possible.
    Help me thank you.

    I'm sorry for my stupid english.

    #2
    See this post: http://forums.smartclient.com/showthread.php?t=4814

    Comment


      #3
      Originally posted by enguerran
      See this post: http://forums.smartclient.com/showthread.php?t=4814
      Thank you, but this solution don't resolve my problem. I don't call a Request from server , i make cross site with JavaScript using JSNI.
      I think that DataSource is not possible with JavaScriptObject because this is not properly a database as SQL, MySQl, Oracle...

      Comment


        #4
        I this video, you can see the use of TreeGrid using RestDataSource.
        The backend is PHP.

        http://www.youtube.com/watch?v=BMYxM9SrdS8

        Comment

        Working...
        X