Hello Angel,
in my webdatagrid on page load how to set particular rows read only and based on dropdown values how to set that read only rows false.
i am trying to do this in cell entering edit mode client side event but it sets all rows read only.
please tell me how to do..
Thanks
Reshma
hey Reshma,
could you show me how you're trying to do that right now ?
the following forum post could be useful for you:
http://ko.infragistics.com/community/forums/t/59560.aspx
Angel
hey Angel,
if (sender.get_rows().get_row(rowIdx).get_cellByColumnKey("colservice").get_value() == "2")
{
eventArgs.set_cancel(true)
}
by this way i am setting rows read only but it by this all rows are read only
This code:
will make all cells read only in a row, where colservice is 2.
if you want the opposite (I mean to disallow editing for values 1-10, excluding 2) , I suggest doing something like this:
if (sender.get_rows().get_row(rowIdx).get_cellByColumnKey("colservice").get_value() != "2")
Hope it helps. Thanks,
hi Angel,
I tried ur code but it sets all rows read only by this.
Then i tried something like this on Cell_EnteringEditMode client event
if (sender.get_rows().get_row(rowIdx).get_cellByColumnKey("colservice").get_value() == "2") { sender._editorProviders._items[6]._input.disabled = false; sender._editorProviders._items[7]._input.disabled = false; sender._editorProviders._items[8]._input.disabled = false; sender._editorProviders._items[9]._input.disabled = false; }
Hi Reshma,
Are you saying this solves your scenario ? Thanks
Hi Angel,
this solves my issue in case of new mode.
hi Reshma,
Ok, great. do not hesitate to contact us in case you have any other questions.
Ok.