Hello All,
I want to Edit a particular Cell in Webdatagrid from Server side.
I want to do this in "OnInitializeRow" event of the Webdatagrid
Is there any event to Capture a particular cell and Set the property to Editable or non editable in InitialiseRow?
Please note that I am using webdatagrid not a ultrawebgrid hence unable to use the following syntax
e.Row.Cells[i].AllowEditing = Infragistics.WebUI.UltraWebGrid.AllowEditing .Yes;
Atleast I want to make the Row Editable or non editable from server side.
Can you please help me in this?
I am using Version 9.2 of CLR 3.5
Thanks in Advance for your Help.
Regards,
Prashanth Gona
hi prashanthgona,
Can you tell me how u handle cell editing and locking on client side..
Thanks
Hi,
We can try to figure out what is up. First off, what version of the software are you using? 9.2, 10.1? And what build number- i.e. 9.2.20092.xxxx? What is the editor provider that you are using and what browser are you experiencing this problem with. If you can attach a sample page here, that would be extremely helpful.
thanks,Dave
Hello David,
Thanks a lot for your reply. I have implemented the cell edit and locking from the client side.
I have around 500 records in the webdatagrid with a scroll bar.
If I scroll a bit down and try to edit a particulat cell(which i made editable as suggested by you) The textbox appears way down ,I mean it does not take the relative position of the row.
It assumes the position of the cell at the time of binding and when we scroll still the position of textbox onclick of the cell does not change.
Can you please hel me in this?
Hi Prashanth,
If you would like to disable an entire column from being editable, you can set a column setting on a particular column for cell editing.
<ig:CellEditing>
<ColumnSettings> <ig:EditingColumnSetting ColumnKey="column1" ReadOnly="true" /> </ColumnSettings> </ig:CellEditing>
If you want an entire row to not be editable, you will want to handle the client side EnteringEditMode (it cannot be done on a row by row basis from the server). Here, the event args have access to the cell, and then you can get the row. You can determine if the row should not enter edit mode and then set_cancel(true) on the event args will stop entering of edit mode.
Let us know if you need further help.
regards,
David Young