User Profile & Activity

T Lusby Member
Page
of 7
Posted: February 2, 2010 10:31 AM

Is there a way we can manually refresh the grid programmically for the time being.  Telling the user to refresh is not an acceptable to our clients. 

 

Also,  I did try the FlyPostBackManager but the problem with it is when you click on the EmployeeID column to edit, it refreshes the grid and blanks the data. 

Posted: February 1, 2010 3:12 PM

Can you provide the sample of how to manually refresh the grid.  This is something I need asap.  Does manually refreshing the grid have any underlining problems? 

When will this issue be fixed?  What is the time line for this?

 

Also on a side note is using the WebFlyPostBackManager1 better then an update panel in this case?  Can you use a WebFlyPostBackManager in this situation?  If so you could provide an example?

Hi Julia,

 

Will the hotfix be available Monday Feb 1?  If not do you know the day?

 

Thanks,
Tenika

Posted: January 29, 2010 3:24 PM

This solved the problem with dropdowns and webcombos not showing.  However, it caused another problem that was worked before this change.  Now when I change values of the cells it only picks up the last value I've changed not all of the values (from different rows).  I click the "Review Pending Changes" and only 1 row shows modified as well it says "1 pending change(s)" on the grid.

 

Any ideas?

Posted: January 28, 2010 12:20 PM

I took your example and made some changes.  I have a dropdown of the list of customers.  Select a customer and the grid fills with a list of this customer's orders.  This grid has a dropdownlist (of customers) and webcombo (of employees). 

When I click on cell that is the dropdownlist or webcombonet it shows the value in a text box and not the dropdownlist or webcombonet.

I know this is something with the updatepanel because when I take this same code, and comment out asp:updatepanel and contenttemplate when I click on the cell I do see the dropdownlist and webcombonet.

 

Any ideas?

Posted: January 27, 2010 6:07 PM

So I have changed my code to now have a WebGrid1_InitializeDataSource and WebGrid1_PrepareDataBinding added to my code.  I have got it to use the AJAX updatepanel. 

However, the problem I'm facing now is that Dropdownlists and WebCombos that are not displaying the data correctly.  They are showing the values again versus the descriptions.  When I click on the fields they are all textboxes not dropdowns or webcombos.  I was using the WebGrid1_InitializeLayout section with WebValueLists.  I would use the Page_Load method to load the webcombos.

Is there another place I should do this?

Posted: January 22, 2010 3:56 PM

I've also tried it with one big panel around my entire page without the trigger and I get two errors (that I click continue through) and then I get data.

Posted: January 22, 2010 3:26 PM

Actually I have the same problem and I'm using WebGrid 7.0.

I have a dropdown on the page that will determine what data should be loaded in the page. 

I have included snippets of code so I could show my approach.  Not sure what I'm doing wrong.  When I remove the UpdatePanels it works fine.

I have a script manager on the page as well.

 

 aspx:
<table id="idx4" class="clsBgTable" width="100%" style="PADDING-left: 5px; PADDING-TOP: 5px;display:block;width:100%"  border="1" cellpadding="0" cellspacing="0" >                  
                    <tr>
                        <td style="vertical-align:top; text-align:left;" nowrap="nowrap">
                             <asp:UpdatePanel ID="UpdatePanel3" runat="server" UpdateMode="Conditional">
                                <ContentTemplate>
                                    <asp:DropDownList ID="ddlLoadedAccounts" runat="server"
                                        ToolTip="Loaded Accounts" AutoPostBack="True"
                                        onselectedindexchanged="ddlLoadedAccounts_SelectedIndexChanged"></asp:DropDownList>
                                    <asp:Button ID="btnDistribute" runat="server" CssClass="clsSmallButton"
                                        Text="DISTRIBUTE ACCOUNT" onclick="btnDistribute_Click" />
                                    <asp:Button id="btnDistSelected" runat="server" CssClass="clsSmallButton"
                                        Text="DISTRIBUTE SELECTED ASSETS" onclick="btnDistSelected_Click" />                                                                                                    
                                </ContentTemplate>
                                <Triggers>
                                    <asp:AsyncPostBackTrigger ControlID="ddlLoadedAccounts" />
                                </Triggers>
                            </asp:UpdatePanel>
                        </td>
                    </tr>
                                       <tr>                                   
                              <td>
                                  <ISWebGrid:WebGrid ID="WebGrid1" runat="server" UseDefaultStyle="false"
                                          Height="425px" Width="700px" onbatchupdate="WebGrid1_BatchUpdate"
                                          oninitializelayout="WebGrid1_InitializeLayout" onexport="WebGrid1_Export">
                                      <RootTable DataKeyField="AssetId">
                                          <Columns>
                                              .
                                              .
                                              .
                                          </Columns>
                                      </RootTable>
                                      <LayoutSettings AllowAddNew="No" AllowColumnSizing="Yes" AllowColumnMove="Yes" AllowDelete="No"
                                          AllowEdit="Yes" AllowExport="Yes" AllowFilter="Yes" AllowGrouping="No" AllowSelectColumns="Yes"
                                          AllowSorting="Yes" GridLineColor="#CCCCCC" GridLines="Both" GridLineStyle="Solid"
                                          PagingMode="ClassicPaging" PagingSize="500" AllowBatchUpdate="true" PagingStyleUI="FirstPrevNextLast"
                                          AllowMultipleSelection="No" GroupByBoxVisible="false" HeaderClickAction="SortMulti"
                                          VerboseEditingInformation="true" NewRowLostFocusAction="AlwaysUpdate" FocusNewRowOnLastCell="true"
                                          AllowColumnFreezing="Yes" ApplyFiltersKey="Enter" EditOnClick="True"  AutoHeight="false" AutoWidth="false"
                                          AutoFilterSuggestion="true" PagingExportMode="ExportAllData"  ShowFilterStatus="true"
                                          InProgressUIBehavior="ChangeCursorToHourGlass" ColumnFooters="Yes"
                                          HeaderWrapDefault="true" ColumnFooterAggregateMode="CalculateAllData"
                                          ShowColumnAction="true" PersistRowChecker="True">
                                              <FreezePaneSettings ShowInContextMenu="true" MaxFrozenColumns="6" />
                                              <BatchUpdateSettings AllowReviewChanges="True" HighlightChanges="true" PromptUnsavedChanges="true" />
                                              <ClientSideEvents OnAfterExitEditMode="WebGrid1_OnCellValidate" OnUndoChanges="WebGrid1_OnUndoChanges"
                                                  OnEnterEditMode="WebGrid1_OnEnterEditMode" />
                                              <EditFocusCellStyle CssClass="EditFocusCellStyle">
                                              </EditFocusCellStyle>
                                              <EditTextboxStyle CssClass="EditTextboxStyle">
                                              </EditTextboxStyle>
                                              <FrameStyle CssClass="FrameStyle">
                                              </FrameStyle>
                                              <GroupByBox>
                                                  <Style CssClass="GroupByBoxStyle">
                                                      </Style>
                                                  <LabelStyle CssClass="GroupByBoxLabelStyle" />
                                              </GroupByBox>
                                              <GroupRowInfoStyle CssClass="GroupRowInfoStyle">
                                              </GroupRowInfoStyle>
                                              <AlternatingRowStyle CssClass="AlternatingRowStyle"></AlternatingRowStyle>
                                              <RowStyle CssClass="RowStyle" Wrap="true"></RowStyle>
                                              <SelectedRowStyle CssClass="SelectedRowStyle" />
                                              <HeaderStyle CssClass="HeaderStyle" Wrap="true"></HeaderStyle>
                                              <NewRowStyle CssClass="NewRowStyle">
                                              </NewRowStyle>
                                              <FooterStyle CssClass="FooterStyle" />
                                              <StatusBarStyle CssClass="StatusBarStyle">
                                              </StatusBarStyle>
                                              <StatusBarCommandStyle>
                                                  <Normal CssClass="StatusBarCommandStyleNormal">
                                                  </Normal>
                                                  <Over CssClass="StatusBarCommandStyleOver">
                                                  </Over>
                                                  <Active CssClass="StatusBarCommandStyleOver">
                                                  </Active>
                                              </StatusBarCommandStyle>
                                              <HyperlinkStyle CssClass="HyperlinkStyle" />
                                              <DeletedRowStyle CssClass="DeletedRowStyle">
                                              </DeletedRowStyle>
                                              <AddedRowStyle CssClass="AddedRowStyle">
                                              </AddedRowStyle>
                                              <FilterRowStyle Wrap="false">
                                              </FilterRowStyle>
                                              <SelectedRowStyle BackColor="LightGoldenrodYellow" Font-Bold="true" />
                                      </LayoutSettings>
                                  </ISWebGrid:WebGrid>
                                  <ISWebCombo:WebCombo ID="WebCombo1" runat="server" UseDefaultStyle="true" DataTextField="ChildDesc"
                                      DataValueField="ChildValue">
                                          <IntegrationSettings ControlId="WebTreeView1" ControlType="WebTreeView" Enabled="true" />
                                  </ISWebCombo:WebCombo>
                                  <ISWebTreeView:WebTreeView ID="WebTreeView1" runat="server" Height="300px" Width="250px" Style="display:none" ExpandedDepth="-1" >
                                      <NodeSettings EnableAnimation="true" />
                                  </ISWebTreeView:WebTreeView>
                                  <ISWebCombo:WebCombo ID="wcOrigin" runat="server" UseDefaultStyle="true" DataTextField="description"
                                      DataValueField="value">
                                          <IntegrationSettings ControlId="WebTreeView3" ControlType="WebTreeView" Enabled="true" />
                                  </ISWebCombo:WebCombo>
                                  <ISWebTreeView:WebTreeView ID="WebTreeView3" runat="server" Height="400px" Width="250px"
                                      Style="display: none" DefaultImageHeight="48" DefaultImageWidth="48" ShowLines="False">
                                     <NodeSettings EnableAnimation="True" />
                                     <Nodes>
                                         <ISWebTreeView:WebTreeViewNode Name="nodeUSA" Text="USA" Selectable="False">
                                         </ISWebTreeView:WebTreeViewNode>
                                         <ISWebTreeView:WebTreeViewNode Name="nodeForeign" Text="Foreign" Selectable="False">
                                         </ISWebTreeView:WebTreeViewNode>
                                     </Nodes>
                                     <ImagesSettings PlusImage="./images/plus.gif" MinusImage="./images/minus.gif" />
                                      <NodeSettings EnableAnimation="true" />
                                  </ISWebTreeView:WebTreeView>
                              </td>
                    </tr>
                </table>
               
code behind:
protected void Page_Load(object sender, EventArgs e)
        {
            thisSession = (clsSession)Session[clsSession.SessionId];

            if (!IsPostBack)
            {
                GetActionAccounts();
                GetLoadedAccounts();
                lblFTAcctNo.Text = thisSession.Account;

                //WebGrid1.DataSource = LoadGrid();
                //WebGrid1.DataBind();
            }
            WebGrid1.DataSource = LoadGrid();
     WebGrid1.DataBind();
                
        }
       
        protected void ddlLoadedAccounts_SelectedIndexChanged(object sender, EventArgs e)
         {
             lblFTAcctNo.Text = ddlLoadedAccounts.SelectedValue;
             lblFTAcctNo.Text = thisSession.Account;
        }
       
        private DataSet LoadGrid()
         {
             returns a dataset to bind and we pass in the ddlLoadedAccounts.Selected selectedvalue to the method...
        }

Julia,

 

I was wondering when the hot fix will be ready for this fix?  I did try the above approach and had some issues, so I would rather get the hot fix.  Any idea when that will be?  You mentioned in January before.

Posted: January 6, 2010 11:50 AM

Ok, I've resolved my issue in my bin folder for every Intersoft control I have on the page I need to have the ISNet.WebUI.[CONTROL].Resources.dll and there were a couple that weren't on there.

 

Now I don't understand why they were removed from this existing project.  Like I said the only thing I did different was try to apply a hot fix.

All times are GMT -5. The time now is 4:40 AM.
Previous Next