msaunders
12 years agoContributor
Embeddable Text boxes
I am running in to an issue with embeddable text boxes
i created a routine that sets the text of a text box in an infragistics ultragrid. It works fine when i run it by its self, always passes. But if i run it right after using a similar text box from a different grid, it fails saying it can't find the text box.
I set it so that the variables are not named the same but as you can see they call similar items
viewText = ultraGridViewpoint.ultraGrid1_EmbeddableTextBox;
textCLT = ultraGridCLT.ultraGrid1_EmbeddableTextBox;
They have very similar object spys:
MainForm.outer_splitContainer.SplitterPanel.sceneControlsPanel.innerPanel_left.activeControl.m_itemPanel.ViewGrid.panel1.ItemGrid.ultraGrid1
MainForm.outer_splitContainer.SplitterPanel.sceneControlsPanel.innerPanel_left.activeControl.m_itemPanel.CltGrid2.ItemGrid.ultraGrid1
I am not sure how to flush out between steps, they seem like hard paths that should work but yet it fails everytime. I found this true in the past and just worked around it, but i have to get it to work this time. The other times i noticed it was when i was trying to set text in other cells of the same ultragrids. Maybe i am going at it all wrong?
i created a routine that sets the text of a text box in an infragistics ultragrid. It works fine when i run it by its self, always passes. But if i run it right after using a similar text box from a different grid, it fails saying it can't find the text box.
I set it so that the variables are not named the same but as you can see they call similar items
viewText = ultraGridViewpoint.ultraGrid1_EmbeddableTextBox;
textCLT = ultraGridCLT.ultraGrid1_EmbeddableTextBox;
They have very similar object spys:
MainForm.outer_splitContainer.SplitterPanel.sceneControlsPanel.innerPanel_left.activeControl.m_itemPanel.ViewGrid.panel1.ItemGrid.ultraGrid1
MainForm.outer_splitContainer.SplitterPanel.sceneControlsPanel.innerPanel_left.activeControl.m_itemPanel.CltGrid2.ItemGrid.ultraGrid1
I am not sure how to flush out between steps, they seem like hard paths that should work but yet it fails everytime. I found this true in the past and just worked around it, but i have to get it to work this time. The other times i noticed it was when i was trying to set text in other cells of the same ultragrids. Maybe i am going at it all wrong?