Threaded View

  1. #1
    Sencha User
    Join Date
    Dec 2012
    Posts
    13
    Vote Rating
    0
    noncom is on a distinguished road

      0  

    Default Answered: A modal window to edit a particular field in a Grid

    Answered: A modal window to edit a particular field in a Grid


    I have a grid which displays records. A record represents an object that has an attribute which is a list of strings. In the record, I want only the number of these strings (the list's length) to be on display. However, I also would like to make it so that if a user clicks on the field, a modal window opens which allows to edit all these strings, so that they be updated and sent via AJAX back to the server.

    For now I have a fully-working grid with records that are taken from the server and are sent back on editing, except for that particuar fields which is required to be treated in a special way.

    My best guess on how to make the field display a number of strings instead of the array that contains them - is to use a 'converter' for the value?

    How can I acheive all this with ExtJS?

  2. When you show the window use update() to update the html in the window.
    However, using that just updates the raw HTML in the window. If you were to add components like Ext form fields you'd use add() / remove() / removeAll().

    Not sure why listeners shows as null and I think the i's are just placeholders of some sort to indicate that the value is a complex object. Try in Firebug and it'll look a little different, but give the same information.

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