PHP Builder Forum IndexPHP Builder
free solutions for web developers
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in            Calendar



COMPUSORY UPGRADE!!! Request an upgrade NOW! 32+ Pre-installed Modifications! 3 Server Locations to choose from: USA, UK and JAPAN.

11th December 2012 - phpBB88: All servers are upgraded to run using SSD drive. Click Here to report problems!

readonly default value in dropdown list

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    PHP Builder Forum Index -> PHP DataGrid {bugs}
View previous topic :: View next topic  
Author Message
sriharan
Newbie
Newbie


Joined: 27 Mar 2008
Posts: 12
:


Items

PostPosted: Mon May 26, 2008 9:33 am    Post subject: readonly default value in dropdown list Reply with quote

Hi

Applying a condition only to select a particular person from a table and show the results in a dropdown list works fine. The dropdown list contains only the name of that particular person nothing else after applying this condition. Butt he dropdown list shows “select” in the first place and the person’s name in the second place. A user must then click the dropdown list and then select his or her name even if there is only a single value in it. I wonder whether there is any other workaround to avoid this extra unnecessary clicking in this case.

How can this particular person’ name be shown as a default value in this dropdown list instead of showing ‘select’ or

Is it possible to hide the default ‘select’ in dropdown list?
Back to top
View user's profile Send private message
rima
Junior
Junior


Joined: 16 Mar 2007
Posts: 27
:


Items

PostPosted: Wed Jul 09, 2008 9:54 pm    Post subject: Reply with quote

Hi,

-A quick solution is to put the result of your query in a variable $X and then set it as a default value : "default"=>$X
-In the datagrid.class.php =>function drawDropDownList the following line is responsible for showing the default 'select' in drop-down lists:

Code:
$text .= "<option>-- ".$this->lang['select']." --</option>";


Regards

Rima[/code]
Back to top
View user's profile Send private message
     
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    PHP Builder Forum Index -> PHP DataGrid {bugs} All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
PHP Builder topic RSS feed 


Powered by phpBB © 2001, 2005 phpBB Group

FREE FORUM HOSTING by AtFreeForum. Terms of Service - Privacy Policy
FASHION ACCESSORIES - BLING BLING - LADIES WATCHES - KOREAN CHILDREN CLOTHING - ONLINE BARGAIN STORE - FASHION JEWELLERIES