We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

UltraWebGrid doesn't restore its state after postback

Hi, I don’t know why after post back UltraWebGrid doesn’t restore data from viewstate.
Grid appeares empty.

1. I bind data like that:
protected void reportDisplayDD_SelectedIndexChanged(object sender, EventArgs e)
{
BusinessFacade busFacade = new BusinessFacade();
UltraWebGridSurveys.DataSource = busFacade.GetSurveyListForReportWriter(Convert.ToInt32(reportDisplayDD.SelectedValue));
UltraWebGridSurveys.DataBind();
}


Please, have a look at attached pictures.

Here markup of UltraWebGrid.


<igtbl:UltraWebGrid ID=“UltraWebGridSurveys” runat=“server” Height=“500px”
Width=“500px” oninitializelayout=“UltraWebGridSurveys_InitializeLayout”
onclick=“UltraWebGridSurveys_Click”
onitemcommand=“UltraWebGridSurveys_ItemCommand” ViewStateMode=“Enabled”>
<DisplayLayout AllowColSizingDefault=“Free” AllowColumnMovingDefault=“OnServer”
AllowDeleteDefault=“Yes” AllowSortingDefault=“OnClient”
AllowUpdateDefault=“Yes” BorderCollapseDefault=“Separate”
HeaderClickActionDefault=“SortMulti” Name=“UltraWebGrid1”
RowHeightDefault=“20px” SelectTypeRowDefault=“Extended”
StationaryMargins=“Header” StationaryMarginsOutlookGroupBy=“True”
TableLayout=“Fixed” Version=“4.00”
SelectedRowStyleDefault-BackColor="#FFD3A1"
CellClickActionDefault=“CellSelect” AutoGenerateColumns=“False”

>

<FrameStyle BackColor=“Window” BorderColor="#999999" BorderStyle=“None”
BorderWidth=“3px” Cursor=“Default” Font-Names=“Microsoft Sans Serif”
Font-Size=“8.25pt” Height=“500px” Width=“500px”>






<BorderDetails ColorLeft=“White” ColorTop=“White” WidthLeft=“1px”
WidthTop=“1px” />





<BorderDetails ColorLeft=“White” ColorTop=“White” WidthLeft=“1px”
WidthTop=“1px” />

<HeaderStyleDefault BackColor="#2B64A7" BorderColor=“Black” BorderStyle=“Solid”
ForeColor=“White” HorizontalAlign=“Left”>
<BorderDetails ColorLeft=“White” ColorTop=“White” WidthLeft=“1px”
WidthTop=“1px” />

<RowStyleDefault BackColor="#C7D5E8" BorderColor=“Gray” BorderStyle=“Solid”
BorderWidth=“1px” Font-Names=“Microsoft Sans Serif” Font-Size=“8.25pt”>












<BoxStyle BackColor=“Window” BorderColor=“InactiveCaption” BorderStyle=“Solid”
BorderWidth=“1px”>
<BorderDetails ColorLeft=“White” ColorTop=“White” WidthLeft=“1px”
WidthTop=“1px” />





<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”>




<FilterOperandDropDownStyle BackColor=“White” BorderColor=“Silver”
BorderStyle=“Solid” BorderWidth=“1px” CustomRules=“overflow:auto;”
Font-Names=“Verdana,Arial,Helvetica,sans-serif” Font-Size=“11px”>





igtbl:UltraGridBand

<igtbl:TemplatedColumn BaseColumnName=“name” Key=“name”
Width=“250px”>



</igtbl:TemplatedColumn>
<igtbl:TemplatedColumn AllowGroupBy=“No” BaseColumnName=“surveyID” Hidden=“True”
Key=“surveyID”>







</igtbl:TemplatedColumn>
<igtbl:TemplatedColumn BaseColumnName=“sequenceNo”
Key=“sequenceNo” Width=“120px”>







</igtbl:TemplatedColumn>
<igtbl:TemplatedColumn AllowGroupBy=“No” BaseColumnName=“groupID” Hidden=“True”
Key=“groupID”>








</igtbl:TemplatedColumn>




</igtbl:UltraGridBand>


</igtbl:UltraWebGrid>

Please, disregard/close this case.
I sorted out that problem.

Thanks.

Hi Alex,

<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />

I am not sure how this problem is related to Aspose.Words, but it is perfect that you managed to resolve it. Please feel free to ask if you need more assistance, We will be glad to help you.

Best regards,