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
525
How to provide Pager for child bands in ultrawebgrid and Hoew to Access Edited rows at Child bands in aspx.cs file
posted

Hi,

I am using Infragistics v 8.2, I want to know Is there any chance to provide Pager for child bands like band2,band3.

In my grid i had three bands if i given pager in Display-Layout it is taking for Band1, I want to provide pager at band2 and band3?

and I want to give option to user to Edit rows at band2 and band3 for this i had given Template columns at Band2 and band3 and Given Edit button, My doubt is how to access this rows (at band2,band3) when user clicks on Edit button?

I Had given Edit option at Band1(All Parent rows) for this i had given Template column at Band1  which contains Linkbutton , The Edited row at Band1 I am Accessing like this

I had given CommandAargument for Linkbutton at Band1

protected void ultragrid_ItemCommand(object sender, Infragistics.WebUI.UltraWebGrid.UltraWebGridCommandEventArgs e)

{   

      LinkButton lnk = (LinkButton)e.CommandSource;

}

 

based on lnk.CommandArgument i am Querieng to database and getting Edited row data and Populating UI With edited data

But i want know how to Access Edited row at band2 (or) band3?

The Above Event is Firing when user clicks on Edit button at Band1 but when user clicks on Edit button at Band2 this Event is not Firing

I had given Auto-generatecolumns = false

Can u suggest me How to Access rows at Band2?

 

  • 45049
    posted

    WebGrid currently only provides paging for the root band.  You may want to submit a feature request so that we may add this to a future release of the product.  The more people who request a feature, the more priority we put to implementing it.

    For your second issue, it may take some research to determine why your ItemCommand event isn't being rased for child bands.  I don't know if this is a bug or a setup issue.  You should submit a support request and attach a sample project of what you have so far, so that a Developer Support Engineer can investigate this mroe in-depth.

    A related follow-up question is:  do you need an "edit" button?  WebGrid has an option to allow the user to edit cells in-place, without requiring a link or button to be pressed to "begin" an edit.