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
65
UltraWebGrid - UpdateRow / UpdateRowBatch and Paging
posted

Hi,

I'm using the UltraWebGrid, using LoadOnDemand="Xml" for async postbacks.  I have a datatable I keep in the codebehind that I populate when the user requests the grid be filled.  When generating the table, I add a boolean column directly to it as a "selected" indicator.  The reason for this is the UI layout desired is a check box for rows that we will ultimately perform actions on.

Now most of the grid is set with AllowUpdates=false, however this "Selected" column allows updates. Additionally, the grid is set up with Paging.

My desired functionality would be that the customer could click the check box on a few columns, each would get marked, allow the user to go to another page then come back and still see the same items selected.

To achieve this, I subscribe to the UpdateRow event on the grid, putting in the logic to find the row in the data table, update it, and then save it.  Unfortunately, this causes a postback on every click which also presents the user with a "Please Wait" image (set on grid initialize) which is less than desireable.

When I switch to subscribe to UpdateRowBatch, I found the grid doesn't fire this event for me when I change pages, ultimately meaning any selections are lost when switching from page to page.

I've tried catching the ClientSideEvents of afterCellUpdate or BeforeRowUpdate and calling igtbl_cancelPostback, while using UpdateRow, but this doesn't actually prevent a post back.  I've also tried igtbl_needPostback for UpdateRowBatch, but don't get one.

I've also tried using igtbl_doPostBack during BeforeXMLHttpRequest while subscribed to UpdateRowBatch, everything fires as expected, however this ultimately fires a full postback, so clicking from page 1 to page 2 results in a quick display of page 2, followed by a full page postback and back to page 1.

Any suggestions for how I can get the UpdateRowBatch functionality (of a single batch postback) to fire when changing pages?  Maybe there's some way I'm missing to request the grid invoke UpdateRowBatch on page OR postpone postbacks for UpdateRow if a specified column is all that changed?

 Thanks in advance for any help you can offer!

~Jeff 

Parents
No Data
Reply
  • 3732
    posted

    Hi Jeff,

    After going through the description, I think you should submit a request with our Developer Support Team to take a closure look at this issue. I was wondering if you are using Microsoft's update panel or Infragistics' WARP(WebAsyncRefreshPanel) in the application or not. You can test the application placing the grid inside one of the panels.

    Please submit you request @ https://ko.infragistics.com/support . If possible attach a sample to  demonstrate the issue.

    Thanks

Children