1. #1
    Ext User
    Join Date
    Mar 2007
    Posts
    176
    Vote Rating
    0
    zquirm is on a distinguished road

      0  

    Default View question...

    View question...


    If I only want to display the most recent RSS posting with YAHOO.ext.View, is that something I set in View's config or do I take care of that with the data model?

    I suppose I'm also interested in being able to control the number of items per feed.

    I didn't want to bother you with this, but I've been poking around for a few hours and thought I should ask the man who would know...

    thanks much.

  2. #2
    Sencha User jack.slocum's Avatar
    Join Date
    Mar 2007
    Location
    Tampa, FL
    Posts
    6,955
    Vote Rating
    16
    jack.slocum will become famous soon enough

      0  

    Default


    Showing only the first one when there's more than one loaded is tricky since the view is "bound" the data model. You might want to unplug the data model, manually grab the first row row and render it into the view using the view's template. After you are done set the data model again. There are some methods for doing this on the view.

    If the feed you are loading supports parameters, you can pass them via the load() method. Otherwise you run into the same problem where all that are loaded are displayed.

    If you are using a proxy on the server (and I would assume you are) you can parse and limit the xml on the server where you would have greater flexibility.

  3. #3
    Ext User
    Join Date
    Mar 2007
    Posts
    176
    Vote Rating
    0
    zquirm is on a distinguished road

      0  

    Default


    I thought about that for the server side, but if I'm reading a feed that I don't control, I guess that's where I see the problem...

Similar Threads

  1. ext.View and ext.JSONView
    By jon.whitcraft in forum Community Discussion
    Replies: 18
    Last Post: 19 Feb 2009, 1:58 AM
  2. Possible bug in Ext.View
    By xsokev in forum Ext 2.x: Help & Discussion
    Replies: 1
    Last Post: 19 Feb 2007, 8:42 PM
  3. View and JsonView UML
    By BernardChhun in forum Community Discussion
    Replies: 3
    Last Post: 10 Feb 2007, 9:13 AM
  4. Advice using View
    By ncubeait in forum Ext 1.x: Help & Discussion
    Replies: 10
    Last Post: 9 Feb 2007, 4:35 AM
  5. IE View problem
    By zquirm in forum Ext 1.x: Help & Discussion
    Replies: 2
    Last Post: 20 Dec 2006, 10:01 PM

Thread Participants: 1