I am developing a webdatagrid used by the users as a data entry form to enter order items. The grid has columns ItemName (drop down editor), which the user uses to select the item, and then UnitPrice column. I have programmed the grid's EditingClientEvents to fire the CellValueChanged event which I then handle in javascript to set the correct UnitPrice once the user has selected an item from the dropdown and has moved away from the ItemName cell. This works fine in editing mode of the existing rows.
I would like the same behaviour to exist when the user is adding a new row. By this I mean that the user should click on the "Add New Row" row (on top of the grid rows), select an item from the dropdown list and then have the unit price updated. However, while the dropdown list appears as normally for this "Add new row" row after selecting the item, the CellValueChanged event is not fired.
Is there a different set of events I should be using to handle the updating of cells in the "Add New Row" row?
Hello,
Thank you for contacting Infragistics!This is an initial update to let you know that I have received your support request and will be looking into this matter for you.I will follow-up with you regarding my findings.
Best regards,Yana DimitrovaDeveloper Support EngineerInfragistics, Inc.
Hey Chris,
As you said to me, there is already opened thread regarding this issue (http://www.infragistics.com/community/forums/p/91300/451292.aspx) so for better communication and history tracking is recommended to communicate through one forum thread per issue. It will be highly appreciated if we discuss the above scenario in the other thread that you've opened.
I am not sure which thread you prefer having this on, but I post the same reply here:
thanks for your reply and sample code. I tried to implement this in my code, but for some reason a posback is generated when the selection of the dropdownlist (DropDownProvider) changes. What I did is that I hooked your code up to the Providers client event SelectionChanged as follows:
<ClientEvents SelectionChanged="companySelectionChanged" />
I then copied/pasted your code and renamed the function "companySelectionChanged" as above. What causes the postback?
Hello, the thread that I am talking about is this one (http://www.infragistics.com/community/forums/p/91300/451319.aspx). We will continue to communicate there.