Refreshing....

  1. #1

    Refreshing....

    Hai Help me
    when i am trying to refresh the gridpanel using paging toolbar, it is continuously showing Loading Users..., but it is not comming to normal view of gridpanel, i have used below code but no use, anybody help me...
     GridCell.GetView().Refresh();
     GridCell.GetStore().Reload();
     <Plugins>
      <ext:CellEditing ID="CellEditing1" runat="server">
        <DirectEvents>
           <ValidateEdit OnEvent="validateEdit" Success="#{Strcell}.reload();">
            </ValidateEdit>
            </DirectEvents>
         </ext:CellEditing>
     </Plugins>
    see the below image

    Click image for larger version. 

Name:	loading.jpg 
Views:	81 
Size:	85.0 KB 
ID:	4536
    Last edited by nagesh; Jul 25, 2012 at 1:09 PM.
  2. #2
    Hi,

    Please demonstrate the Store configuration.
  3. #3

    Hai Daniil

    Hai @Daniil Thanks for reply,
    After Editing or Deleting using DirectEvents why it is not refreshing automatically in Desktop, i am using the source of Ext.Net v2.0 final.
    Here is my Gridpanel with Store see below
    <ext:GridPanel ID="GridCell" runat="server" Icon="Table" Height="300" Width="450">
                            <Store>
                                <ext:Store ID="Strcell" runat="server" PageSize="6">
                                    <Model>
                                        <ext:Model ID="Mdlcell" runat="server">
                                            <Fields>
                                                <ext:ModelField Name="id" Type="Int" Mapping="id">
                                                </ext:ModelField>
                                                <ext:ModelField Name="name" Type="String" Mapping="name">
                                                </ext:ModelField>
                                                <ext:ModelField Name="address" Type="String" Mapping="address">
                                                </ext:ModelField>
                                                <ext:ModelField Name="pin" Type="Int" Mapping="pin">
                                                </ext:ModelField>
                                            </Fields>
                                        </ext:Model>
                                    </Model>
                                    <Reader>
                                        <ext:JsonReader>
                                        </ext:JsonReader>
                                    </Reader>
                                </ext:Store>
                            </Store>
                            <ColumnModel ID="ColumnModel" runat="server">
                                <Columns>
                                    <ext:Column ID="colid" DataIndex="id" Text="ID" runat="server">
                                        <Editor>
                                            <ext:NumberField ID="cellid" runat="server" Selectable="false">
                                            </ext:NumberField>
                                        </Editor>
                                    </ext:Column>
                                    <ext:Column ID="colname" DataIndex="name" Text="Name" runat="server">
                                        <Editor>
                                        <ext:ComboBox ID="cmb2" runat="server" AllowBlank="false" Editable="true" ForceSelection="true"> 
                                            </ext:ComboBox>
                                        </Editor>
                                    </ext:Column>
                                    <ext:Column ID="coladdress" DataIndex="address" Text="Address" runat="server">
                                        <Editor>
                                            <ext:TextField ID="celladdress" runat="server">
                                            </ext:TextField>
                                        </Editor>
                                    </ext:Column>
                                    <ext:Column ID="colpin" DataIndex="pin" Text="PinCode" runat="server">
                                        <Editor>
                                            <ext:NumberField ID="cellpin" runat="server">
                                            </ext:NumberField>
                                        </Editor>
                                    </ext:Column>
                                </Columns>
                            </ColumnModel>
                            <TopBar>
                                <ext:Toolbar ID="celltool" runat="server">
                                    <Items>
                                        <ext:Button ID="btnDelete" runat="server" Text="Delete" Icon="Exclamation" Disabled="true">
                                            <DirectEvents>
                                                <Click OnEvent="Delete" Success="#{Strcell}.reload();">
                                                    <Confirmation ConfirmRequest="true" Title="Title" Message="Are You Sure You want to Delete the selected Item?"/>
                                                </Click>
                                            </DirectEvents>
                                           
                                        </ext:Button>
                                    </Items>
                                </ext:Toolbar>
                            </TopBar>
                            <BottomBar>
                                <ext:PagingToolbar ID="cellPaging" runat="server" DisplayInfo="true" DisplayMsg="Displaying plants {0} - {1} of {2}"
                                    EmptyMsg="No plants to display" />
                            </BottomBar>
                            <SelectionModel>
                                <ext:RowSelectionModel ID="RowslectionModel1" runat="server">
                                </ext:RowSelectionModel>
                            </SelectionModel>
                            <Plugins>
                                <ext:CellEditing ID="CellEditing1" runat="server">
                                    <DirectEvents>
                                        <ValidateEdit OnEvent="validateEdit">
                                            <ExtraParams>
                                                <ext:Parameter Name="id" Value="e.record.data.id" Mode="Raw">
                                                </ext:Parameter>
                                                <ext:Parameter Name="name" Value="e.record.data.name" Mode="Raw">
                                                </ext:Parameter>
                                                <ext:Parameter Name="address" Value="e.record.data.address" Mode="Raw">
                                                </ext:Parameter>
                                                <ext:Parameter Name="pin" Value="e.record.data.pin" Mode="Raw">
                                                </ext:Parameter>
                                            </ExtraParams>
                                        </ValidateEdit>
                                    </DirectEvents>
    
                                </ext:CellEditing>
                            </Plugins>
                            <Listeners>
                                <SelectionChange Handler="#{btnDelete}.setDisabled(!selected.length);" />
                            </Listeners>
                            <View>
                                <ext:GridView ID="GridView1" runat="server" LoadingText="Loading users ..." StripeRows="true"
                                    TrackOver="true" LoadMask="true" />
                            </View>
                         
                        </ext:GridPanel>
    Thank You.
    Last edited by nagesh; Aug 01, 2012 at 8:26 AM.
  4. #4
    Well, to get it
    #{Strcell}.reload();
    working you should define an OnRefreshData handler for the Store.

    As here:
    https://examples1.ext.net/#/GridPane...rayWithPaging/

    Though I am afraid I don't understand what you are trying to achieve here:
    Success="#{Strcell}.reload();"
    Please clarify the initial requirement.
  5. #5

    Hai Daniil

    Hai Daniik, it is not working
    #{Strcell}.reload();
    i have many windows in my Desktop, i am trying to refresh any one window first time it is continuously showing Loading Users..., but after opening all windows and then refreshing any one window, it is refreshing well.
    Below See my Desktop Image.
    Click image for larger version. 

Name:	loading.jpg 
Views:	61 
Size:	85.0 KB 
ID:	4563

    Thank You...
  6. #6
    Unfortunately, I can't say anything concrete without a sample to reproduce the problem.
  7. #7

    Hai Daniil

    Hai Daniil, what am telling is when am update/delete one row of gridpanel in window, it is not refreshing there, when i am Reload the browser then it is updated.
    How can i send my .rar file to you , it is very big size...
  8. #8
    Quote Originally Posted by nagesh View Post
    Hai Daniil, what am telling is when am update/delete one row of gridpanel in window, it is not refreshing there, when i am Reload the browser then it is updated.
    How can i send my .rar file to you , it is very big size...
    Please do not send us a large sample. Please simplify your sample down to just the basic .aspx code required to reproduce the problem. Please post your simplified code sample inside [CODE] tags.

    More information on creating code samples is available in the following forum posts:

    http://forums.ext.net/showthread.php...ation-Required

    http://forums.ext.net/showthread.php...ing-New-Topics

    If the version of Ext.NET is important, just inform us of the version # you're using.
    Geoffrey McGill
    Founder
  9. #9

    Hai @mcgill

    Hai mcgill , Thanks for information.

Similar Threads

  1. Refreshing data in GridPanels ?
    By Mohammad in forum 1.x Help
    Replies: 1
    Last Post: Nov 19, 2011, 8:19 AM
  2. Refreshing desktop control
    By AnilVelamuri in forum 1.x Help
    Replies: 1
    Last Post: May 27, 2010, 6:18 PM
  3. Refreshing a tab on activate
    By Lucasite in forum 1.x Help
    Replies: 0
    Last Post: May 10, 2010, 7:30 PM
  4. [CLOSED] GridPanel is not refreshing
    By Satyanarayana murthy in forum 1.x Legacy Premium Help
    Replies: 9
    Last Post: Apr 28, 2009, 8:45 AM
  5. Panel not Refreshing
    By EzaBlade in forum 1.x Help
    Replies: 8
    Last Post: Feb 04, 2009, 3:18 PM

Posting Permissions