Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
265
NullText on UltraGridCell
posted

Hello-

This post, even though it's old, suggests what I'd like to do should be possible:
http://forums.infragistics.com/forums/p/5107/23272.aspx#23272

I've got an UltraGrid with two columns.

Column 0 is a UltraCombo loaded with a ValueList.
Column 1 is a TextBox.

What I'd like to do is set the NullText property of column 1 whenever the value of column 0 changes.

Using that post above as a model, I've attached a new editor to the cell in column 1 as follows:

UltraTextEditor editor = new UltraTextEditor();
((ISupportInitialize)editor).BeginInit();
editor.NullText = "This is NullText";
((ISupportInitialize)editor).EndInit();
cell.EditorComponent = editor;

Unfortunately, "This is NullText" never displays even though the underlying value in column 1 is in fact null.

NOTE: "This is NullText" is just a test for this post.  What I need to do eventually is assign editor.NullText a value that is associated with the value chosen from the dropdown in column 0.

First, although the above post SUGGESTS this is possible, is what I need to do possible?

If so, what have I done wrong with my code or how should this be handled differently?

Thank you.

Parents
  • 265
    Verified Answer
    posted

    For any followers of this thread here is what I found out and what I'll use to close this thread.

    What I originally wanted to do cannot be done - there just is no way to RELIABLY handle this.  The suggestions offered above only sort of work in a very small subset of variations.  If you use the suggestions offered, you'll get about 50% of the way there.  The remaining 50% is an exercise in frustration.

    I gave up and ultimately resorted to writing a popup window whenever Cell0 changes.  It is hardly ideal but the grid just doesn't work for this in any sort of clean and reliablle fashion.  Maybe it isn't supposed to; I have no way to know.

    The bug reported above appears to be dead and has been inactive in IG Development since it was logged so I'm guessing it's been abandoned.  In the unlikely event it actually gets addressed, I'll post the results here.

    Sorry for the bad news.

    Thanks and have a great day!!!

Reply Children
No Data