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
Hi,
It seems that the code is fine.
Could you check following in Bind_Mix_Types() function?
(1) Verify the value of Activity_container, DB and FilterType. Is it null or empty?
(2) Verify the values inside the data set ds for IE 6 after insert or update.
Further to point (1) it is important to check variable Activity_container and DB because they are getting values from Session. And if IE 6 has cookies disabled then that may become null or empty. I strongly recommend testing the same application on IE6 on other machine also to diagnose the issue.
Is there any java script error is displayed in IE6 status bar?
Also check the same in firefox too.
If you can upload the sample then it would be helpful to analyze.
Please let me know observation of above suggestions.
Greetings
Good Afternoon
Thanks for your help.
In My Development Machine i use Internet Explorer 7 and i have Chrome and FireFox. I have Menus in my Application that does not work on FireFox and Chrome. So with Firefox i cant test. If you can provide a way for my manu's to work on FireFox.
On My server i have internet Explorer 6 installed and it did not work until i do what you said by enabling Cookies only from
Tools-->Internet Options-->Privacy-->Advanced.
i have checked override Automatic Cookies , Accept Both types of Cookies and Allow Session Cookies.
and it worked, in my Boss machine , he is using IE6. i enabled it but still it does not work.
i have sent you a sample page to Help me.
I think the issue was because of Cookie setting on IE6 only because on one machine the issue got resolved by enabling cookies.
So it should solve the problem on second machine also. Try restarting IE on the other machine.
Do you mean Infragistics menu not working on some browser? I recommend you to start new thread for that.
I have Attached it. Please tell if you Find it.
Thanks again for your help