Hello everyone,
This is a strange one. I've created created a simple web solution to try and debug this. I'm using UltraWebGrid Infragistics 10.2 (CLR 2.0).
I have placed a bog standard infragistics ultrawebgrid to a web page and in the Page_load, I've bound it to my custom business collection. in the aspx page, I've added a TemplateDataField in which there is a WebImageButton which when clicked will simply update a label showing the ID of record which was clicked (NOTE: the grid and the label are inside an Ajax UpdatePanel). I've also turned on the 'out of the box' paging behaviour on the grid. Everything works fine at first:- if I click the WebImageButton it updates the label however as soon as I click the paging, the WebImageButton no longer becomes 'clickable'. It is as if the WebImageButton is disabled (although the appearance is still enabled). I replaced the WebImageButton with the standard .NET's button and this problem does happen with Microsofts standard button - in this case the button is 'clickable' even after clicking a page number. Is this a bug with WebImageButton or do I need to do some additional steps? (My code is below):
aspx page:-
<form id="form1" runat="server"><ig:WebScriptManager ID="WebScriptManager1" runat="server"></ig:WebScriptManager><asp:UpdatePanel ID="UpdatePanel1" runat="server"><ContentTemplate>
<asp:Label ID="message" runat="server" Text=""></asp:Label>
<ig:WebDataGrid ID="grid" runat="server" Height="100%" Width="100%" onitemcommand="grid_ItemCommand" AutoGenerateColumns="true">
<Columns>
<ig:TemplateDataField Key="editButtonTemplate"><Header Text="editButtonTemplate" /><ItemTemplate>
<igtxt:WebImageButton ID="editButton" Enabled="true" Text="Edit" runat="server" EnableViewState="true" CommandName="Edit" CommandArgument='<%# Eval("GroupId") %>'></igtxt:WebImageButton>
</ItemTemplate></ig:TemplateDataField>
</Columns><Behaviors>
<ig:Sorting></ig:Sorting><ig:Paging PageSize="5"></ig:Paging>
</Behaviors>
</ig:WebDataGrid>
</ContentTemplate></asp:UpdatePanel></form>
code behind:-
public partial class DataGridExamplePage : System.Web.UI.Page{
protected void Page_Load(object sender, EventArgs e){
grid.DataSource = SecurityManager.GetGroups();grid.DataBind();
}
protected void grid_ItemCommand(object sender, Infragistics.Web.UI.GridControls.HandleCommandEventArgs e){
if (e.CommandName == "Edit"){
message.Text = "Selected Group ID: " + e.CommandArgument.ToString();
Any Help will be much appreciated.
Assad
Sorry, just to correct myself: "I replaced the WebImageButton with the standard .NET's button and this problem DOES NOT happen with Microsofts standard button..."
Thanks
I'm guessing no one knows or hasn't encountered this???
Any help will be much appreciated.