all groups > macromedia flash flash remoting > july 2004 >
You're in the

macromedia flash flash remoting

group:

Can't select first row in Datagrid


Can't select first row in Datagrid clem_c_rock
7/27/2004 4:28:43 PM
macromedia flash flash remoting:
Hello,

I have been very successfull in using datagrids to display mysql data.
Everything works great except, I can't ever select the first row of the
datagrid. All other rows's repond fine when clicked using the
data_grid.selectedIndex method.


Here's a code sample that shows how I'm populating the datagrid from a mysql
db using amfphp:


main_responder.add_update_segment_Result = function( add_update_result )
{
data_array = new Array();
clip_info_input.txt_selected_segment_id = add_update_result.id;
for( i=0; i < add_update_result.result_slct_segments.getLength(); i++)
{
var item_segments =
add_update_result.result_slct_segments.getItemAt(i);

data_array.push( { segment_id:item_segments.segment_id,
code_1:item_segments.code_value,
start_time:item_segments.start_time,
stop_time:item_segments.stop_time, length:item_segments.segment_length,
example:check_visible,

incomplete:item_segments.incomplete,start_seg:item_segments.start_seg,end_seg:it
em_segments.end_seg } );
}
list_grd.dataProvider = data_array;
}

Any Ideas?

Thanks a bunch,

Clem C
Re: Can't select first row in Datagrid database_monkey
8/5/2004 6:07:21 PM
What version of flash are you using? I had nothing but problems, particularly
with the datagrid component, in Flash MX. Once we moved to 2004, things started
to work like normal.

On a number of ocassions, I had to rebuild the app, adding one component at a
time and testing. Combo boxes and scroll bars almost always caused problems
with the data grid.

If you are using 2004, does the first row of data show up in the result set?
From the sounds of it, the data is there but you can't select it. Is that right?
Re: Can't select first row in Datagrid JamesCKH
8/25/2004 3:20:47 AM
AddThis Social Bookmark Button