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
170
UltraWebGrid: Template Column checkbox autopostback problem
posted

Hello all,

In our UltrawebGrid, we have several columns with the first one being a checkbox. We need this checkbox to allow a user to select which row he/she wishes to print. Unfortunately, I needed to set "Autopostback" to true or else, upon clicking the "Print" button, it does not detect any checkboxes being checked.

Our UI allows a user to select up to 100 rows per page and when attempting to click multiple checkboxes, there is a pause and results with an "Type is not resolved for member" warning. Our users will not accept this.

What I really need is to capture the selected rows without the postback when a checkbox is checked/unchecked.

Thank you,

Peter

 

 

Parents
No Data
Reply
  • 49378
    Suggested Answer
    posted

    Hi Peter,

    It has been a while since your post but in case you still need help I would be glad to assist you.

    The state of an UltraWebGrid column of type checkbox is kept in the value property. For your implementation you could iterate through your rows on the client and keep the indeces of the checked boxes in some control's tag (so the values can be persisted and passed to the server) prior to initiating the postback. A similar approach would be to "build up" a list of indeces by using the CellClick event of the grid.

    To check the value of a cell client-side, you can use code similar to:

    igtbl_getGridById("UltraWebGrid1").Rows.getRow(0).getCell(2).getValue()

    Please contact me if you have any questions.

    Best Regards,

    Petar Ivanov
    Developer Support Engineer
    Infragistics, Inc.
    http://es.infragistics.com/support

     

Children