Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsGeneralPHPASPPerlColdFusionFlashHTML, CSS, ScriptsBrowsers

Webmaster Forum / Flash / Flash Remoting / August 2004



Tip: Looking for answers? Try searching our database.

Can't select first row in Datagrid

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
clem_c_rock - 27 Jul 2004 17:28 GMT
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
database_monkey - 05 Aug 2004 19:07 GMT
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?
JamesCKH - 25 Aug 2004 04:20 GMT
I manage to select any rows of the datagrid but it is not defaulted to first row when the movie first launched. How to solve it?
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.