Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

horzintal scroll bars in data grid

Status
Not open for further replies.

womblies

Programmer
Feb 28, 2003
62
IE
hi

i'm taking in info from a database by flash remoting and then dispalying it in a datagrid component(devnet one)

my problem is that i don't know how many columns that i have to display(could be from 1 to 50)but i have to limit the size of the grid on the movie. i can't seem to get horzintal scroll bar to work in the grid, so that my columns can be a certain width and the user can scroll over to see the rest of the info

cheers
 
never used the macromedia datagrid

however i can recommend this one which is free and comes with horizontal scroll buit in


ive used this myself. its quick, powerful, has lots of features you only discover with familiarity, and is easy to use.

you might want to consider changing components.
 
i have had a look at that component as well and i have a problem with that as well.

when i get in the info from flash remoting and try to load the component with the result it does nothing

function flash_Result(result){
List = result;
grid.setRecordSet(List);
}

to fill the grid i had to create a new recordset and polullate the grid that way

rc = new RecordSet(["User", "Firstname", "Surname", "Password", "Email"]);
i=0;
for (object in List){
rc.addItem({User:List.euscd, Firstname:List.eusfn, Surname:List.eussn, Password:List.euspw, Email:List.eusem});
i++;
}
grid.setRecordSet(rc);

this work work fine if the column names stayed the same but they will be changing depending on what remoting returns.

is there anyway that i can the grid filled without having to ceate a new record set with set column names
 
how is your data coming in...i mean how is it structured...cant you just use the headers to create the record set?....have a look in the debugger and see if headers are being passed
 
function flash_Result(result){
List = result;
}
is how i get result back from flash remoting

and in the debugger shows in this format
List
-(0)
-eusfn " "
-eusln " "
-(1)
-eusfn " "
-eusln " "
etc.
or to reference it
List(0).eusfn

eusfn, eusln is what i want to be the column header in the datagrid as that is the column header used in the database

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top