I have some problem using WDG and I found the same question follow link.
http://ko.infragistics.com/community/forums/p/56842/290747.aspx#290747
I want to handle CellValueChanged Event on SERVER-SIDE.
I used RowUpdated Event instead of CellValueChanged which is not exists.
but it doesn't fire when I changed cell value.
I attached the code.
<ig:WebDataGrid ID="uwgCrewList1" runat="server" Height="350px" Width="100%" DataKeyFields="CREWID" AutoGenerateColumns="False" EnableDataViewState="true" OnRowUpdated="CrewList_RowUpdated"> <.....></ig:WebDataGrid>
please reply how to handle this.
Thanks.
Hi Chloe Lee,
Thank you for posting in our forum.
There is no CellValueChanged server-side event. And if you want to fire RowUpdated every time you edit a cell, you could enable Activation behavior. So after you exit cell edit mode, the grid will be updated and RowUpdated event will be fired.
Let me know if this helps.
As your answer, I gave enable property on Activation tag. but it still doesn't fire.
Is there anything more I have to do? Please check my code.
<ig:WebDataGrid ID="uwgCrewList1" runat="server" Height="350px" Width="100%" DataKeyFields="CREWID" OnRowUpdated="uwgCrewList1_RowUpdated" AutoGenerateColumns="False" EnableDataViewState="true"> <Columns> <.....> </Columns> <Behaviors> <ig:Activation Enabled="true" > </ig:Activation> </Behaviors></ig:WebDataGrid>
Hi Chloe,
I tested this and the rows count is correct in RowUpdated event. Can you provide a small sample, reproducing the issue?
Udhaya,
You could create a column setting in the ValueChanged event handler of the DropDown provider like this:
protected void wdd_ValueChanged(object sender, DropDownValueChangedEventArgs e)
{
EditingColumnSetting ecs = new EditingColumnSetting(WebDataGrid1);
ecs.ColumnKey = "Column1";
ecs.ReadOnly = false;
WebDataGrid1.Behaviors.EditingCore.Behaviors.CellEditing.ColumnSettings.Add(ecs);
}
Do not hesitate to ask if you have any further questions.
Hi Nikolay.
when I use System.Web.UI.Page, It works well. I think it's about page life cycle thing.
You can only make a column read-only, but not a single cell. A possible workaround would be to cancel EnteringEditMode client-side event of the grid. This way you can prevent users from editing certain cells, based on some condition.
Hope this helps.
Hello,
You just have to make the column editable by default and cancel EnteringEditMode for the cells that should be read-only.