Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
TIWGrid's Control
#1
I have a grid containing a Control set to a TIWComboBox. The combo list sometimes shows as blanks. What am I doing wrong? See attached png.


Attached Files Thumbnail(s)
   
Reply
#2
This would generally indicate that no items have been loaded into the combobox.
Reply
#3
(12-01-2020, 02:06 PM)kudzu Wrote: This would generally indicate that no items have been loaded into the combobox.

Grid.Cell[1, 14].Control := TIWComboBox(old_vals[detsubap].Objects[11]);

Grid.Cell[1, 15].Control := TIWComboBox(old_vals[detsubap].Objects[12]);

This shows blank lists. It works okay if I change rows to 2.
Reply
#4
I must have a memory error
Reply
#5
I would suggest setting some breakpoints and using some watches to verify that your code is referencing the objects you expect and that they have the properties expected.
Reply
#6
Tried that. the resulting java code is blank

<option VALUE=""></option>
<option SELECTED="" VALUE=""></option>
<option VALUE=""></option>
<option VALUE=""></option></select></td><td align="left" style="white-space: nowrap; background-color: #D3D3D3; position: static; " valign="middle"><select class="TIWCOMBOBOX2CSS" id="TIWCOMBOBOX2" NAME="TIWCOMBOBOX2" SIZE="1">
<option SELECTED="" VALUE=""></option>
<option VALUE=""></option>
<option VALUE=""></option>
<option VALUE=""></option>
<option VALUE=""></option>
<option VALUE=""></option>
<option VALUE=""></option>
<option VALUE=""></option>
<option VALUE=""></option>
<option VALUE=""></option>
<option VALUE=""></option>
<option VALUE=""></option>
<option VALUE=""></option>
Reply
#7
I meant on the server side where the data comes from. The control fills it with whatever data you supply and it seems there is a mix up. Setting breakpoints and using watches will help you locate that.
Reply
#8
yes, I have been doing that.

why would client side get blanks?
Reply
#9
Because the data you are providing to it contains the same.

Set a breakpoint in an event on the server and check the value of the TIWComboBox instance you are having issues with.
Reply
#10
I checked the TIWComboBox and it contains values
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)