Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
650
AutoPostback Problem on the Grid
posted

Good Morning All

For you to help me and understand my problem, i will have to explain everything in details.

I have a usercontrol with with a textbox, this texdtbox changes values so am trapping the values on textchange. so i have set it to "Autopostback="true"" in the usercontrol and whe this textbox changes its values i will to update the Ultrawebgrid in my hosting ASp.net 2.0 page that is not part of the Usercotrol. So i decided to expose the properties of the textbox and and the Postbackevent like this

in my Usercontrol

public bool

TextBoxAutoPostBack

{

 

get

{

 

 

return

txtbxActvs.AutoPostBack;

}

 

 

set

{

txtbxActvs.AutoPostBack =

value

;

and in my host page the usercontrol will have a property that i can turn autopostback to true or false , so i set it to true. Now Am not sure if the grid needs to have the same autopostback, because a normal Micorsoft gridview will not need to have that, as long as the textbox has the property autopostback is set to true automatically the grid will be updated.

Let me explain why is happening.

When the text changes in the usercontrol textbox , i want it to run a function that binds the Ultrawebgrid based on what is selected , i stepped through the function and it binds the grid, but now the Results does not show. i have other controls that are not related to this functionality, when i click one of them it now shows the results that was supposed to show earlier on the Grid. 

here is the Defination of my Ultragridweb

<igtbl:UltraWebGrid ID="Gridstaff" Autopostback="true" style="Auto_Scroll" runat="server" Height="111px" OnInitializeLayout

="Gridstaff_InitializeLayout"

OnSelectedCellsChange="Gridstaff_SelectedCellsChange" Width="337px" EnableAppStyling="True" StyleSetName

="RubberBlack">

 

 

>

 

 

>

 

 

="NotSet">

 

 

>

 

 

>

 

 

>

 

 

="OnClient"

 

 

="ctl11xGridstaff"

 

 

="No"

 

 

="Header"

 

 

="Yes">

 

 

="Solid"

 

 

BorderWidth="1px" Font-Names="Microsoft Sans Serif" Font-Size="8.25pt" Height

="111px"

Width

="337px">

 

 

</FrameStyle

>

 

 

<Pager MinimumPagesForDisplay

="2">

 

 

<PagerStyle BackColor="LightGray" BorderStyle="Solid" BorderWidth

="1px">

<BorderDetails ColorLeft="White" ColorTop="White" WidthLeft="1px" WidthTop="1px"

/>

</PagerStyle

>

 

 

</Pager

>

 

 

<EditCellStyleDefault BorderStyle="None" BorderWidth

="0px">

 

 

</EditCellStyleDefault

>

 

 

<FooterStyleDefault BackColor="LightGray" BorderStyle="Solid" BorderWidth

="1px">

 

 

<BorderDetails ColorLeft="White" ColorTop="White" WidthLeft="1px" WidthTop="1px"

/>

</FooterStyleDefault

>

 

 

<HeaderStyleDefault BackColor="LightGray" BorderStyle="Solid" HorizontalAlign

="Left">

 

 

<BorderDetails ColorLeft="White" ColorTop="White" WidthLeft="1px" WidthTop="1px"

/>

 

 

</HeaderStyleDefault

>

 

 

<RowStyleDefault BackColor="Window" BorderColor="Silver" BorderStyle="Solid" BorderWidth

="1px"

 

 

Font-Names="Microsoft Sans Serif" Font-Size

="8.25pt">

 

 

<Padding Left="3px"

/>

 

 

<BorderDetails ColorLeft="Window" ColorTop="Window"

/>

 

 

</RowStyleDefault

>

 

 

<GroupByRowStyleDefault BackColor="Control" BorderColor

="Window">

 

 

</GroupByRowStyleDefault

>

 

 

<GroupByBox

>

 

 

<BoxStyle BackColor="ActiveBorder" BorderColor

="Window">

 

 

</BoxStyle

>

 

 

</GroupByBox

>

 

 

<AddNewBox Hidden

="False">

 

 

<BoxStyle BackColor="Window" BorderColor="InactiveCaption" BorderStyle="Solid" BorderWidth

="1px">

 

 

<BorderDetails ColorLeft="White" ColorTop="White" WidthLeft="1px" WidthTop="1px"

/>

 

 

</BoxStyle

>

 

 

</AddNewBox

>

 

 

<ActivationObject BorderColor="" BorderWidth

="">

 

 

</ActivationObject

>

 

 

<FilterOptionsDefault

>

 

 

<FilterDropDownStyle BackColor="White" BorderColor="Silver" BorderStyle="Solid" BorderWidth

="1px"

 

 

CustomRules="overflow:auto;" Font-Names

="Verdana,Arial,Helvetica,sans-serif"

 

 

Font-Size="11px" Height="300px" Width

="200px">

 

 

<Padding Left="2px"

/>

 

 

</FilterDropDownStyle

>

 

 

<FilterHighlightRowStyle BackColor="#151C55" ForeColor

="White">

 

 

</FilterHighlightRowStyle

>

 

 

<FilterOperandDropDownStyle BackColor="White" BorderColor="Silver" BorderStyle

="Solid"

 

 

BorderWidth="1px" CustomRules="overflow:auto;" Font-Names

="Verdana,Arial,Helvetica,sans-serif"

 

 

Font-Size

="11px">

 

 

<Padding Left="2px"

/>

 

 

</FilterOperandDropDownStyle

>

 

 

</FilterOptionsDefault

>

 

 

<FixedCellStyleDefault VerticalAlign

="Top">

 

 

</FixedCellStyleDefault

>

 

 

</DisplayLayout

>

 

 

</igtbl:UltraWebGrid

>

<FrameStyle BackColor="Window" BorderColor="InactiveCaption" BorderStyle
StationaryMarginsOutlookGroupBy="True" TableLayout="Fixed" Version="4.00" ViewType="OutlookGroupBy" ScrollBarView="Vertical" AllowUpdateDefault
SelectTypeCellDefault="Extended" SelectTypeRowDefault="Extended" StationaryMargins
RowHeightDefault="20px" RowSelectorsDefault
BorderCollapseDefault="Separate" HeaderClickActionDefault="SortMulti" Name
<DisplayLayout AllowSortingDefault
</Bands
</igtbl:UltraGridBand
</AddNewRow
<AddNewRow View="NotSet" Visible
<igtbl:UltraGridBand
<Bands

Another thing that is Important to mention is that i have this Ultrawebgrid into a UpdatePanel and here are the property and values of the Update Panel

<

asp:UpdatePanel ID="UpdatePanel1" runat="server" UpdateMode="Conditional">

Thank you