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
20
Issue resetting the grid
posted
Issue# 1: There is a infragistics webdatagrid on my page. There is a Reset Button on the page. Below is my issue: 1. If user click on the grid cell and edits the value and click on the Reset Button. Current Behavior: Values are getting updated into DB and the grid become non editable. Expected Behavior: Old value to be populated. In short i want the cell value to be Reset to original values from DB. Issue # 2: Another issue is i want a cell in the grid to accept only alphabets .I have put a regular expression validator. But the validator allows the user to enter other characters. I want to prevent user from entering anything other than alphabets. Current Behavior : 1. The validator displays a message below the cell if user enters any other characters. 2. User can click on the Add Button of the page to add the row. 3. Currently the row does not get added to the grid but the grid becomes non editable. Expected Behavior: Grid should not become non editable and also cell should take only alphabets.
Parents
No Data
Reply
  • 2783
    posted

    Hi Rajeshwari,

    Issue #1: You can enable batch updating, and use undoBatchUpdate the javascript method to undo all the updates.

    Issue #2: It sounds like your regular expression for alpha characters may not be correct. If  you want to the user to not even be  able to type in a non-alpha character then you can listen to the key down event for the editor and prevent the character from being accepted

    Issue #3. To add a row in javascript on a click of a button you can use the following code: grid.get_rows().add(cellValues)  The cellValues should be an array of the new row values, i.e. ["ALFKI", "John", 30]

    Thank You,

    Olga

    ASP.NET Principal Software Engineer

    Infragistics, Inc.

Children
No Data