Sigma Php Ajax framework, Ajax Components, GUI Builder
May 23, 2012, 10:23:16 PM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News:
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: How to set Items in ButtonViews  (Read 539 times)
gikotim
Sr. Member
****
Posts: 49


View Profile
« on: February 03, 2010, 06:34:11 AM »

Hi!
I try to set the items in a ButtonViews from a database.
I use the onLayout event for setting the items. I get the wait-cursor for a minute (timeout ?) and then the items are displayed.
It can not be a problem of the db, as the same happens when I remove all db-related code and just put in single code line for setting the items.
If I use the before/after-Append event the elements are shown immediate, but the same timeout happens when clicking on a button.

and, sorry to ask this for this element also: how to I set the id & caption from the rsp.data?
My data look like: [["1", "Menu A"], ["2", "Menu B"], ["3", "Menu C"]]



Thank you very much for all your support!
« Last Edit: February 03, 2010, 06:39:45 AM by gikotim » Logged
linb
Administrator
Hero Member
*****
Posts: 435


View Profile
« Reply #1 on: February 03, 2010, 04:38:13 PM »

Why use onLayout event? It's UI layout event, not suitable for adding new items.
You should use Com's onReady or onRender to load data and set them to controls.

Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.7 | SMF © 2006-2008, Simple Machines LLC Valid XHTML 1.0! Valid CSS!