Hi All,
Please help us, how to set AllowEdit atribute in cell by javascript in Ultrawebgrid.
Thank in advance.
I want to do if THROUGH JAVASCRIPT ONLYCheck this scenario:
Grid with 2 columns
Col1 = CheckBoxCol2 = AmountCol1.AllowUpdate = YesCol2.AllowUpdate = No When user ticks Col1 i.e. checked then Col2.<cell of that row, for which user has ticked col1> should become updatable and vice versa.
Please help me.
Hello,
1. If you want to have an editable cell, all you need to do is set the AllowUpdate field = "Yes" for that column.
2. If you want to edit cell in javascript on client side you can try
function EditCell(){
var grid = igtbl_getGridById("Ultrawebgrid1"); //ultrawebgrid1 is the name of your ultrawebgrid
igtbl_EnterEditMode("ultrawebgrid1");
return 0;
}
You need to call the EnterEditMode, if you have Infragistics install on your machine, you should be able to find the example above under:
Start->All Programs->Infragistics NetAdvantage 2006 Volume 3 CLR 2.0 (if you are using this version, if not yours should be something similar)->ASP.NET Samples Browser and under the Grid menu, you should look for Client Side Cell Edit and you should see that they have all kinds of editing scripts there.
I hope it helps.
HS2