0

I have an infragistics ultraWebGrid working as a selection list in a web form in asp.net. When user makes a row selection I want to make the grid disabled or lock the active row (to selection row) until the user ends up with a process flow

I found the code below as a solution

Client-Side

function DisableGrid()
{
   var grid = igtbl_getGridById("UltraWebGrid1");
   grid.Element.disabled=true;
}

Server-side:

UltraWebGrid1.DisplayLayout.AllowUpdateDefault = 
   Infragistics.WebUI.UltraWebGrid.AllowUpdate.No

The javascript function seems to do what exactly I want to but the grid is reseted after a postback.On the other side the server side code doesnt seem to do what I want. Any Ideas?

user1392203
  • 309
  • 3
  • 5
  • 13

1 Answers1

1

You can cancel the BeforeRowDeactivate client side event handler to prevent moving to another row. There is an example of this in the Infragistics forums here. You can find more information on the client side events in the documentation: WebGrid Client-Side Events.

alhalama
  • 3,218
  • 1
  • 15
  • 21