Hi all! I'm having issues trying to edit on CardView mode.
I found this on the documentation: http://help.infragistics.com/Help/NetAdvantage/NET/2008.1/CLR2.0/html/WinGrid_Card_View.html
"Another limitation is that it is possible to set up card view in such a way that you cannot add data to empty fields, although this is not the default setting."
Does anybody knows WHAT set up disables the user to add data to empty fields?
Thanks!
Hi,
That's sort've an oddly-phrased quote.
In any case, cards are editable by default, just like regular rows in the grid. If you cannot edit the data, then either the data source itself is read-only, or you are setting some property in the grid that is making it read-only. This KB article describes how to make things in the grid read-only, so it should point you to the properties you need to look for:
HOWTO:How can I make a grid or a column, row, or cell in the UltraWinGrid disabled or read-only?
Hi Mike!
Thanks for the answer, but I don't think that's my problem... I tried that already and I'm not setting as read-only any cell.
I'm working on v7.3, I saw there's a 8.1 version out there, do you know if they made changes on the CardView on it?
Mariano Abdala.
Hi Mariano,
I'm sure cards have always been editable by default. This has not changed in v8.1 or any other version. That would be a major, breaking change, and we would never change something that on purpose. :)
If your cells are no editable, then either the data source is read-only or something in your code is making the grid read-only.
Is your grid editable if you do NOT set CardView to true?
Are you setting CellClickAction, maybe?
What exactly happens when you click a cell? Do you get a caret? Or does the whole cell just highlight? Or maybe the whole card is highlighted?
Hi, thanks for the replay!
Cells are fully editable on normal view, and when I switch to CardView they seem to be ReadOnly... and all I do to switch is call this code from a menu:
if (indexLastBand != -1)
Mike Saltzman"]What exactly happens when you click a cell? Do you get a caret? Or does the whole cell just highlight? Or maybe the whole card is highlighted?
The cell gets highlighted normally...
The funny thing is that if I run the same code but for the first band, it works and lets me edit. (I'm sorry I didn't mention this earlier, the issue I'm having is happening when settnig the second band to CardView = true).
Mariano
Hm. I don't see why the second band would be any different than the first. Unless you are setting different properties on that band.
The fact that the cell is highlighted instead of entering edit mode suggests that you are setting the CellClickAction property somewhere.
If that's not the case, the best suggestion I can offer you at this point is to Submit an incident to Infragistics Developer Support and send them a small sample project demonstrating the issue so they can check it out.