Hi,
We verified the following code works fine:
<form id="Form1" method="post" runat="server">
<asp:LinkButton ID="ImgTitleSearchl" CausesValidation="False" runat="server">Title</asp:LinkButton>
<asp:Button id="tstbtn" runat="server"></asp:Button>
<eo:CallbackPanel runat="server" id="CallbackPanel1" Triggers="{ControlID:Grid1;Parameter:},{ControlID:tstbtn;Parameter:}"
Width="100%" LoadingHTML="Processing data, this may take a while..." AutoDisableContents="True" Height="300px">
<eo:Grid id="Grid1" runat="server" Width="100%" Height="100%">
<Columns>
<eo:CheckBoxColumn HeaderText="<input type='checkbox' id='column1_checkbox'/>" Width="30"></eo:CheckBoxColumn>
<eo:TextBoxColumn AllowResize="True" AllowSort="True" HeaderText="Notes" Width="190" DataField="NAME"></eo:TextBoxColumn>
</Columns>
</eo:Grid>
<BR>
<BR>
<BR>
<BR>
<BR>
<BR>
<BR>
<BR>
<BR>
<BR>
<BR>
<BR>
<BR>
<BR>
<BR>
<BR>
<BR>
</eo:CallbackPanel>
</form>
Changes we made:
1. Added a fixed height to the CallbackPanel;
2. Added percentage width and height to the Grid (you can also use fixed height);
3. Moved the button to the top so that it's easier to click;
Our code behind is as follow:
Code: C#
private void Page_Load(object sender, System.EventArgs e)
{
if (!Page.IsPostBack)
{
Grid1.DataSource = new object[]{this};
Grid1.DataBind();
}
}
public string NAME
{
get
{
return "Test";
}
}
Instead of populating from a database, we populate from an array of object. The array contains only one item which is the page itself. We then define a property "NAME" on the page, which is somewhat similar to a field on a table record.
Please try the above code and see if it works for you.
Thanks