iSeller Commerce
iSeller POS Retail
iSeller POS F&B
iSeller POS Express
Crosslight
WebUI
ClientUI
What's New
Download Trial
Web Solution
Mobile Solution
Enterprise Solution
Custom Development
Blog
Community
Latest Development Blogs
ForumPostTopic
Browse By Tag
Hell all
I have a webgrid 4.0 and I am using ms Drobdownlist in the same page ,
this dropdownlist inside update panel
but when we change index selection in dropdownlis the whole page postback when it must not do that
I have remove the webgrid from the page , every thing work normally.
can you help me please.
I’m sorry to inform you that we’re no longer support and provide services for WebGrid.NET 4.0. Our latest version of WebGrid is WebGrid 7.0. The issue doesn’t happen on WebGrid 7.0.
If you are interesting to evaluate WebGrid 7.0, you can try to download the trial at here.
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... }
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.
Hi Tenika,
I noticed that you have created new thread for this issue. We will continue your issue in your new thread.
Best Regards,
Gordon Tumewu
I was unable to run your code on my end, so I decided to make my own sample based on your information.
I was unable to repro your issue on my end using the sample I enclose within this post as attachment. Could you please modify my sample so it replicates your issue and send back to us for further investigation?
Another tip that may useful for you is, you can use our WebFileUploader in our community to enclose your attachment rather than copy the code into the message box. This will make the message box easy to read. If you are about to enclose .aspx; or .aspx.cs; or .aspx.vb file type, please ensure that you have archive them into .zip or .rar file type.
or
Choose this if you're already a member of Intersoft Community Forum. You can link your OpenID account to your existing Intersoft Social ID.
Choose this if you don't have an Intersoft account yet. Your authenticated OpenID will be automatically linked to your new Intersoft account.
Enter your Wordpress Blogname