Infragistics Home

Infragistics Forums

Infragistics community online discussions.
Welcome to Infragistics Forums Sign in | FAQ
in Search

UltraWebGrid - Row Edit Template - Sending Post Bock...

Last post 01-03-2008 2:55 by BrianMerton. 3 replies.
Page 1 of 1 (4 items)
Sort Posts: Previous Next
  • 01-02-2008 1:51

    UltraWebGrid - Row Edit Template - Sending Post Bock...

    Hi There I am having an odd problem with the UltraWebGrid when using the RowEditTemplate functionality. When user attempts to edit the row in the grid (but clicking on the row selector), the row edit template is displayed. This works fine and the user can make changes to the row in the grid by using this mechanism. However, when I instantiate the row edit template when adding a new row (using the following javascript) igtbl_addNew(_clientGridID, 0, false, false).editRow(); the row edit template is displayed briefly for a second and then dissappears. The reason why it dissappears is that it's somehow posting back to the server (firing the addrow event). Note this is happening before the user has a chance to even select the save or close button or enter any data in the fields. This causes the row edit template to be hidden for any other edits until the page is refreshed... Is there anyway to turn the post back functionality off so that it doesn't post back until the user selects the save button Many Thanks Brian Merton
    • Post Points: 20
  • 01-02-2008 9:58 In reply to

    Re: UltraWebGrid - Row Edit Template - Sending Post Bock...

     The AddRow event is fired as the row is added to the grid, not when a newly filled out row is added to the grid.  You would probably need to wire up UpdateRow and remove AddRow.

    Darrell Kress
    Research and Development
    Infragistics

    Please remember that while Infragistics does monitor the forums, they remain a Peer to Peer support option. You can always contact Infragistics support directly via one of the options listed at http://www.infragistics.com/gethelp.


    Have a feature you would like to see? Or possibly a new component you would want in NetAdvantage? Submit a feature request to Infragistics through our Developer Support department.
    • Post Points: 20
  • 01-03-2008 2:01 In reply to

    Re: UltraWebGrid - Row Edit Template - Sending Post Bock...

    Thanks Darrell I have removed the AddRow event from the grid but the editRow() method is still causing a post back to the server... After some more digging I have found the following: When I use the following method it works but it's not what I want: If I add the row to the grid in Javascript using: var activeRow = igtbl_addNew(_clientGridID, 0, true, false); // Then get the grid var WebGrid = igtbl_getGridById(_clientGridID); // Then get begin editing the row... WebGrid.beginEditTemplate(); The user has to click on the row selector icon to bring up the Row Edit Template, and then everything works OK. - i.e. the Row Edit Template doesn't dissappear until the user has clicked on one of the buttons in the Row Edit Template. Is there a setting in grid that will stop the acitveRow.editRow() sending a post back to the server? Many thanks Brian
    • Post Points: 5
  • 01-03-2008 2:55 In reply to

    Re: UltraWebGrid - Row Edit Template - Sending Post Bock...

    Answer
    Hi There I have solved this. Basically the issue was related to the fact that the I was using an ASP:BUTTON to call the add new functionality. Even though there was no server event associated with the ASP:BUTTON and only the OnClientClick - somehow the caused a post back. Anyway - once I changed the button to a normal input control and called the javascript from the click event = everything worked fine. Thanks Brian
    • Post Points: 5
Page 1 of 1 (4 items)
Powered by Community Server (Commercial Edition), by Telligent Systems