1. #1
    Sencha User
    Join Date
    Dec 2011
    Location
    India
    Posts
    5
    Answers
    1
    Vote Rating
    0
    Namrata_lumiplan is on a distinguished road

      0  

    Question Answered: How to render tree with check box where dataUrl is XML ?

    Answered: How to render tree with check box where dataUrl is XML ?


    Hello All,

    I m newbie to Ext JS.
    Ï am able to set up JSON as dataUrl for tree with checkbox.
    I need help to render tree with check box where dataUrl is XML.


    Thanks in Advance,
    Namrata

  2. Thanks tvanzoelen

    I got solution.
    I have added 'attribute.checked = true' while loading XML by 'XmlTreeLoader'

  3. #2
    Ext JS Premium Member tvanzoelen's Avatar
    Join Date
    Apr 2008
    Location
    Groningen - Netherlands
    Posts
    1,114
    Answers
    83
    Vote Rating
    30
    tvanzoelen has a spectacular aura about tvanzoelen has a spectacular aura about tvanzoelen has a spectacular aura about

      0  

    Default


    See this example http://docs.sencha.com/ext-js/4-0/#!.../xml-tree.html how to read xml in the tree.

    The code for the checkbox remains the same

  4. #3
    Sencha User
    Join Date
    Dec 2011
    Location
    India
    Posts
    5
    Answers
    1
    Vote Rating
    0
    Namrata_lumiplan is on a distinguished road

      0  

    Question Thanks a lot for ur reply, but still not getting tree with CheckBox renderer.

    Thanks a lot for ur reply, but still not getting tree with CheckBox renderer.


    tvanzoelen

    Thanks a lot for ur reply.

    I am working with Ext JS 3.3.
    I have tried adding attribute 'checked = true' for each node in the XML, but still not getting tree with CheckBox renderer.

    Please let me know right way to achieve this.

  5. #4
    Ext JS Premium Member tvanzoelen's Avatar
    Join Date
    Apr 2008
    Location
    Groningen - Netherlands
    Posts
    1,114
    Answers
    83
    Vote Rating
    30
    tvanzoelen has a spectacular aura about tvanzoelen has a spectacular aura about tvanzoelen has a spectacular aura about

      0  

    Default


    Then you must ask this question to the ExtJs 3 forum.
    But... by sure you set the record property in the reader. In json it is root.

    Code:
    var myReader = new Ext.data.XmlReader({
       record: "row",           // The repeated element which contains row information
       idProperty: "id"         // The element within the row that provides an ID for the record (optional)
     (optional)
    }, Employee);

  6. #5
    Sencha User
    Join Date
    Dec 2011
    Location
    India
    Posts
    5
    Answers
    1
    Vote Rating
    0
    Namrata_lumiplan is on a distinguished road

      0  

    Smile Solution

    Solution


    Thanks tvanzoelen

    I got solution.
    I have added 'attribute.checked = true' while loading XML by 'XmlTreeLoader'

Thread Participants: 1

Tags for this Thread

Turkiyenin en sevilen filmlerinin yer aldigi xnxx internet sitemiz olan ve porn sex tarzi bir site olan mobil porno izle sitemiz gercekten dillere destan bir durumda herkesin sevdigi bir site olarak tarihe gececege benziyor. Sitenin en belirgin ozelliklerinden birisi de Turkiyede gercekten kaliteli ve muntazam, duzenli porno izle siteleri olmamasidir. Bu yuzden iste. Ayrica en net goruntu kalitesine sahip adresinde yayinlanmaktadir. Mesela diğer sitelerimizden bahsedecek olursak, en iyi hd porno video arşivine sahip bir siteyiz. "The Best anal porn videos and slut anus, big asses movies set..." hd porno faketaxi