I have some problem using WDG and I found the same question follow link.
http://es.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,
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 and Udhaya. Thank you for your help.
it works well, but I wonder why WDG.Rows.Count returns -1 OnRowUpdated Event.
Hi Nikolay,
Do you mean that it cannot be done using the client-side code?
I tried server side methods too using
EditorControl_SelectionChanged and ValueChanged. Still, i was able to change the columnsetting for the entire grid only.
Is there any other way?
Thanks in Advance.
This can be done like AutoPostBackFlags = "true" on the editorprovider as well.
eg : <editorcontrol AutoPostBackFlags-ValueChanged="On"></editorcontrol>
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>
Let me know if this helps.