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 Udhaya,
It seems that it is not possible to change column settings on the client.
Chloe,
You could try setting the AutoPostBackFlags for ActiveCellChanged to true:
<ig:Activation>
<AutoPostBackFlags ActiveCellChanged="True" />
</ig:Activation>
Hello,
You just have to make the column editable by default and cancel EnteringEditMode for the cells that should be read-only.
Udhaya,
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.
Hi Nikolay.
when I use System.Web.UI.Page, It works well. I think it's about page life cycle thing.
Hi Nikolay,
This also does the same thing. It sets the columnsetting of that column for the entire grid.
I need it to be done only for the selected row.
foreach (GridRecord row in Wdg.Behaviors.Selection.SelectedRows){
EditingColumnSetting ecs = new EditingColumnSetting(Wdg);
ecs.ColumnKey ="Column2";
ecs.ReadOnly =false;
this.Wdg.Behaviors.EditingCore.Behaviors.CellEditing.ColumnSettings.Add(ecs);
}
This is how i tried, but it dint work.
Thanks,
Udhaya