Hi,
I have a grid view with 3 fields, a numeric field, a date, and a text filed:
Number Date Text
-------- ------------ -----------------------------------------------
1 01-01-2013 bla bla bla
2 05-06-2013 ble ble ble :)
so, what i need is let the user to write directly in the gridview to change the values in grid or add new rows with new values.
(i already know how to add a new row and how to delete a selected row…so my need is: how to let the user edit/change values directly in the grid)
Can anyone help?
thanks.
Sure!
Just an FYI in 13.2 our next release which should come out in November the IGGridView will have a built in mechanism for editing cells.
However, b/c of the nature of how this grid was designed, you can pretty much do whatever you want. What I would do in this scenario is just simply create my own IGGridViewColumnDefinition and IGGridViewCell for editing.
http://help.infragistics.com/iOS/2013.1/?page=IGGridView_Configuring_Custom_Cell.html
http://help.infragistics.com/iOS/2013.1/?page=IGGridView_Column_Definitions.html
For your editing scenario, do you want to have your cell's always editable? Or would you prefer the user do something like DoubleTap on a cell to put the cell into edit mode?
If you let me know what you're looking for, we could put together a sample for you.
-SteveZ
Do you have any documentation that I can read on the built in mechanism for editing cells?
ah, no problems here. please ignore my question
hi Steve,
Do you have an idea why if i change in your example the keyboard type for editing it would not just display the keyboard as NumericPad?
public class DateColumn : BaseColumn { UITextField _editor; public DateColumn(string key):base(key) { _editor = new UITextField (); _editor.KeyboardType = UIKeyboardType.NumberPad; }
Thank you
Mark
Check out the following post:
http://es.infragistics.com/community/forums/p/85302/428167.aspx#428167
There is a sample attached that shows the implementation of a custom editing.
If you don't want the double click action, simply set AllowEditing on the DataSourceHelper to false. Then you can attach your own cell gestures. In those gestures you can invoke the BeginEditing and EndEditing methods on the DataSourceHelper to enter and exit edit mode on a particular cell.
Also looking to see if it's possible to remove the double click to edit feature.
Thanks, I've got the editable text field column going. I'm going to be building a fairly robust editable columns that would include "combo box" drop downs and "multi column combo box drop downs" Obviously, thru using a table view as my drop down. I'll also be building on some switches to my columns and date time pickers.
If you guys have some sample code on how to implement these custom editable column definitions, it should speed up my process.