Good Day
Am using Ul;trawebgrid on version 8.1 , when am using it with Internet Explorer 7 its works fine , but with 7 the grid does not get updated. here is the Defination of the Grid
<igtbl:UltraWebGrid ID="ultraGridStudentsMixTypes" runat="server" Style="left: -8px; top: 375px" OnInitializeLayout="ultraGridStudentsMixTypes_InitializeLayout" OnPageIndexChanged="ultraGridStudentsMixTypes_PageIndexChanged" OnDataBound="ultraGridStudentsMixTypes_DataBound"> <Bands> <igtbl:UltraGridBand> <RowEditTemplate> <br /> <p align="center"> <input id="igtbl_reOkBtn" onclick="igtbl_gRowEditButtonClick(event);" style="width: 50px" type="button" value="OK" /> <input id="igtbl_reCancelBtn" onclick="igtbl_gRowEditButtonClick(event);" style="width: 50px" type="button" value="Cancel" /></p> </RowEditTemplate> <RowTemplateStyle BackColor="Window" BorderColor="Window" BorderStyle="Ridge"> <BorderDetails WidthBottom="3px" WidthLeft="3px" WidthRight="3px" WidthTop="3px" /> </RowTemplateStyle> <AddNewRow View="NotSet" Visible="NotSet"> </AddNewRow> </igtbl:UltraGridBand> </Bands> <DisplayLayout Version="4.00" AllowSortingDefault="OnClient" StationaryMargins="Header" AllowColSizingDefault="Free" AllowUpdateDefault="Yes" StationaryMarginsOutlookGroupBy="True" HeaderClickActionDefault="SortSingle" Name="ultraGridStudentsMixTypes" BorderCollapseDefault="Separate" TableLayout="Fixed" RowHeightDefault="20px" SelectTypeRowDefault="Extended"> <FrameStyle BorderWidth="1px" BorderColor="InactiveCaption" BorderStyle="Solid" Font-Size="10pt" Font-Names="Verdana" BackColor="Window"> </FrameStyle> <Pager MinimumPagesForDisplay="2" PagerAppearance="Both" PageSize="50" StyleMode="ComboBox" AllowPaging="True"> <PagerStyle BorderWidth="1px" BorderStyle="Solid" BackColor="LightGray"> <BorderDetails ColorLeft="White" ColorTop="White" WidthLeft="1px" WidthTop="1px" /> </PagerStyle> </Pager> <EditCellStyleDefault BorderWidth="0px" BorderStyle="None" Font-Names="Verdana" Font-Size="8pt"> </EditCellStyleDefault> <FooterStyleDefault BorderWidth="1px" BorderStyle="Solid" BackColor="LightGray"> <BorderDetails ColorLeft="White" ColorTop="White" WidthLeft="1px" WidthTop="1px" /> </FooterStyleDefault> <HeaderStyleDefault HorizontalAlign="Left" BorderStyle="Solid" BackColor="LightGray" Font-Bold="True" Font-Names="Verdana" Font-Size="10pt"> <BorderDetails ColorLeft="White" ColorTop="White" WidthLeft="1px" WidthTop="1px" /> </HeaderStyleDefault> <RowStyleDefault BorderWidth="1px" BorderColor="Silver" BorderStyle="Solid" Font-Size="8pt" Font-Names="Verdana" BackColor="Window"> <Padding Left="3px" /> <BorderDetails ColorLeft="Window" ColorTop="Window" /> </RowStyleDefault> <GroupByRowStyleDefault BorderColor="Window" BackColor="Control"> </GroupByRowStyleDefault> <SelectedRowStyleDefault BackColor="Silver" Font-Names="Verdana" Font-Size="8pt"> </SelectedRowStyleDefault> <GroupByBox> <BoxStyle BorderColor="Window" BackColor="ActiveBorder"> </BoxStyle> </GroupByBox> <AddNewBox> <BoxStyle BorderWidth="1px" BorderColor="InactiveCaption" BorderStyle="Solid" BackColor="Window"> <BorderDetails ColorLeft="White" ColorTop="White" WidthLeft="1px" WidthTop="1px" /> </BoxStyle> </AddNewBox> <ActivationObject BorderWidth="" BorderColor=""> </ActivationObject> <FilterOptionsDefault> <FilterDropDownStyle BorderWidth="1px" BorderColor="Silver" BorderStyle="Solid" Font-Size="11px" Font-Names="Verdana,Arial,Helvetica,sans-serif" BackColor="White" Width="200px" Height="300px" CustomRules="overflow:auto;"> <Padding Left="2px" /> </FilterDropDownStyle> <FilterHighlightRowStyle ForeColor="White" BackColor="#151C55"> </FilterHighlightRowStyle> <FilterOperandDropDownStyle BorderWidth="1px" BorderColor="Silver" BorderStyle="Solid" Font-Size="11px" Font-Names="Verdana,Arial,Helvetica,sans-serif" BackColor="White" CustomRules="overflow:auto;"> <Padding Left="2px" /> </FilterOperandDropDownStyle> </FilterOptionsDefault> </DisplayLayout> </igtbl:UltraWebGrid> </ContentTemplate> </igtab:Tab> </Tabs> <BorderDetails ColorLeft="White" ColorTop="White" /> <DefaultTabStyle BackColor="#7F7F7F" Font-Names="Verdana" Font-Size="10pt" ForeColor="Black" Height="18px"> </DefaultTabStyle> <HoverTabStyle Font-Bold="True" Font-Names="Verdana" Font-Size="10pt"> </HoverTabStyle> <RoundedImage FillStyle="LeftMergedWithCenter" /> <SelectedTabStyle BackColor="Silver" Font-Bold="True" Font-Names="Verdana" Font-Size="10pt"> </SelectedTabStyle> <AsyncOptions EnableLoadOnDemand="True" /> </igtab:UltraWebTab>
Thanks
What operations do you perform?
After which operation you want the grid to be updated or refreshed?
Please provide steps.
Thanks for your reply
i have a Button that Add and Updates the Grid , it i have the Following coe in the button
string sql = string.Empty; int Mix = 0; if (txtStudentsMixtypes.Text != string.Empty) { Mix = Convert.ToInt32(txtStudentsMixtypes.Text); sql = "UPDATE TBL_ACTV SET Mix=" + Mix + " WHERE ID IN (" + getIdStringForSQL_FromUltraGrid(ultraGridStudentsMixTypes) + ")"; CommonFunctions.ExecuteSQL(sql); Bind_Mix_Types(); } else { imgwarning.Visible = true; lblMessage.Visible = true; lblMessage.Text = "Please Enter a Valid Mix Type"; }
The Bold Function with a name Bind_Mix_Types(); is used to bind the Grid and its Defined like this
private void Bind_Mix_Types() { BLL.BLL obj = new BLL.BLL(); DataSet ds = new DataSet(); String Activity_Container = Convert.ToString(Session["SelActvContainers"]); String FilterType = rdbtnlstActvFilter.SelectedValue.ToString(); String DB = Convert.ToString(Session["ActiveDatabase"]); try { if (Activity_Container != "" && FilterType != "") { ds = obj.FilterMixType(FilterType, Activity_Container, DB); ultraGridStudentsMixTypes.DataSource = ds; ultraGridStudentsMixTypes.DataBind(); } else { } } catch (SqlException ex) { lblMessage.Text = ex.Message; lblMessage.Visible = true; imgwarning.Visible = true; } finally { obj = null; }
This works Peferctly on IE 7 but my users on IE 6 dnt get the Data Refreshed.
Thanks again
Looking Forward for your reply