TIWGrid's Control

<< Click to Display Table of Contents >>

Navigation:  Forum >

TIWGrid's Control

Forum link

 

Pages: 1 2

 


 

11-30-2020, 10:19 PM:

 

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.

 


 

12-01-2020, 02:06 PM:

 

This would generally indicate that no items have been loaded into the combobox.

 


 

12-02-2020, 12:48 PM:

 

(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.

 


 

12-02-2020, 04:27 PM:

 

I must have a memory error

 


 

12-02-2020, 05:09 PM:

 

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.

 


 

12-09-2020, 09:59 PM:

 

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>

 


 

12-10-2020, 06:48 PM:

 

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.

 


 

12-10-2020, 09:51 PM:

 

yes, I have been doing that.

 

why would client side get blanks?

 


 

12-11-2020, 04:23 PM:

 

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.

 


 

12-11-2020, 06:54 PM:

 

I checked the TIWComboBox and it contains values