Hi,
Is there a way to have cell edit template?
i need an edit template to enter extra info for a cell.
E.g: A "Quantity" field. When in edit mode, edit template prompt out for user to enter Quantity & Reason for change.
Hello,
Yes, you can set different types of editor while editing cell. The below links from our website will give more details on this:
<http://help.infragistics.com/NetAdvantage/ASPNET/2010.3/CLR4.0/?page=WebDataGrid_Using_Editor_Providers.html> <http://help.infragistics.com/NetAdvantage/ASPNET/2010.3/CLR4.0/?page=WebDropDown_Using_WebDropDown_as_an_editor_provider_for_WebDataGrid.html>
Hope this helps.
Thanks,
Bhadresh
Hi Bhadresh,
Thanks for reply. However i'm not referring to Editor Provider.
What i means is an Edit Template. A Pop-up edit template.
E.g I have a "Quantity" field in my grid. When user click on the "Quantity" cell, an edit template will popup for user to enter Quantity & Reason for change.
Note, is 2 input in the edit template.
thanks.
Thanks for details provided. The following approach can be taken in order to implement the functionality you described.
1) Use WebDialogWindow with couple of textboxes and buttons “Ok” and “cancel”2) Use EnteringEditMode client side event from CellEditing behavior of WebDataGrid.3) In EnteringEditMode set dialog window to visible and fill textboxes in it with values.4) Based on the Ok and Cancel button you may commit changes.
You may find value from the edited cell and show it in textbox using below lines of code:
var dialogwindow = $find("WebDialogWindow1");var value = eventArgs._cell.get_value();dialogwindow.set_visible(true);var txtbox1 = dialogwindow.findChild("TextBox1");var txtbox2 = dialogwindow.findChild("TextBox2");txtbox1.value = value;
You may fill values in textboxes based on your business requirement.
I am following up to see if you were able to implement the functionality you described using the information I have provided above.
Let me know if you need any further assistance.