What is the property in VB.Net similar to Store.Data in JavaScript?

  1. #1

    What is the property in VB.Net similar to Store.Data in JavaScript?

    What is the property of the object Store in VB.Net similar to Store.Data in JavaScript?

    I create a listview, bind with a webservice through an object store. But, the listview don´t has a Hidden column... then I would get directly from the object store the field 'Details' for the selected row in Listview. In a VB.Net, not JavaScript.

    <ext:ListView 
                                                            ID="lstAgendasSalasSGE" 
                                                            runat="server"
                                                            SingleSelect="true"
                                                            EmptyText="Sem agendas disponíveis"
                                                            HideHeaders="true"
                                                            AutoScroll="true"
                                                            AnchorVertical="100%"
                                                            AnchorHorizontal="80%" >
                                                            <Store>
                                                                <ext:Store ID="Store1" runat="server">
                                                                    <Proxy>
    										                            <ext:HttpProxy Json="true" Method="POST" Url="~/App/JSonDataPaging.asmx/AgendasSalasSGE_List" />
    									                            </Proxy>
    									                            <Reader>
    										                            <ext:JsonReader Root="d" IDProperty="IDAgendaSala">
                                                                            <Fields>
                                                                                <ext:RecordField Name="Descricao" />
                                                                                <ext:RecordField Name="Detalhes" />
                                                                            </Fields>
                                                                        </ext:JsonReader>
                                                                    </Reader>
                                                                </ext:Store>
                                                            </Store>
                                                            <Columns>
                                                                <ext:ListViewColumn 
                                                                    Header="" 
                                                                    Width="0.11" 
                                                                    Template='<img src="/resources/images/icons/agenda-sala.png" />' 
                                                                    />
                                                                <ext:ListViewColumn 
                                                                    Header="Descrição" 
                                                                    Width="0.8" 
                                                                    DataIndex="Descricao" 
                                                                    />
                                                            </Columns>
                                                            <DirectEvents>
                                                                <SelectionChange OnEvent="SelectionChanged" />
                                                            </DirectEvents>
                                                            <%--<Listeners>
                                                                <SelectionChange Fn="selectionChaged" /> 
                                                            </Listeners>--%> 
                                                        </ext:ListView>
    Thanks for any help.
  2. #2
    Hi,

    A client store's data is not mirrored to a server, it would be too costly.

    More details:
    http://forums.ext.net/showthread.php?10705
  3. #3
    Hi Daniil... tanks a lot for your answer...

    I´m trying follow the exemple of link you sent... it´s working fine... but I don´t want all records... I want a SELECTED records... follow a exemple of Ext.net 'Two Grids' https://examples1.ext.net/#/GridPane...ous/Two_Grids/, I´m rewrite a ExtraParams...

    <CellDblClick
    	OnEvent = "EditSlot" Failure="Ext.MessageBox.alert('Load failed', 'Error during ajax event!');">
    	<EventMask ShowMask="true" Target="CustomTarget" CustomTarget="={#{grdAgendamentosSalasSGE}.body}" />
        <ExtraParams>                    
            <ext:Parameter Name="values" Value="grdAgendamentosSalasSGE.selModel.getSelections()" Mode="Raw" Encode="true" />
        </ExtraParams>
    </CellDblClick>
    if I set grdAgendamentosSalasSGE.selModel.getSelections(), my direct event EditSlot don´t fired...
    f I set grdAgendamentosSalasSGE.selModel.getSelections (without parentheses at the end), EditSlot is fired, but e.ExtraParams("values") return "{}" (empty)...

    The SelectionModel of my gridPanel is set as below

    <SelectionModel>
    	<ext:RowSelectionModel ID="RowSelectionModel1" runat="server" SingleSelect="true"  />
    </SelectionModel>
    I do not know what I'm doing wrong...
    Can you help me, Daniil?
  4. #4
    Please see the "Submit" and "Submit with values" buttons.
    https://examples1.ext.net/#/GridPane...Row_Selection/
  5. #5
    Hi Daniil...

    Following a exemple where you sent me, I just replaced simply needed the following line

    This
    <ExtraParams>                    
         <ext:Parameter Name="values" Value="grdAgendamentosSalasSGE.selModel.getSelections()" Mode="Raw" Encode="true" />
    </ExtraParams>
    For this
    <ExtraParams>                    
          <ext:Parameter Name="values" Value="Ext.encode(#{grdAgendamentosSalasSGE}.getRowsValues({selectedOnly:true}))" Mode="Raw" Encode="true" />
    </ExtraParams>
    Working fine
    Thanks a lot
    Best regards

Similar Threads

  1. Replies: 12
    Last Post: May 20, 2011, 12:35 PM
  2. [CLOSED] Assigning store data from javascript not working
    By SymSure in forum 1.x Legacy Premium Help
    Replies: 3
    Last Post: May 05, 2011, 2:07 PM
  3. [CLOSED] Loading data from server to store by javascript
    By leon_tang in forum 1.x Legacy Premium Help
    Replies: 4
    Last Post: Apr 21, 2011, 4:44 PM
  4. Replies: 4
    Last Post: Jun 25, 2010, 4:19 PM
  5. Replies: 10
    Last Post: Nov 20, 2008, 3:17 PM

Posting Permissions