SelectBox Icon with Condition

  1. #1

    SelectBox Icon with Condition

    Hi,

    is there a way to set icon for SelectBox based on value of database ?
    e.g: If the value 1 the icon will appear, otherwise the value 0 the icon disappear.

    Here's my aspx code :

    
        <asp:LinqDataSource 
            ID="LinqFileType" 
            runat="server" 
            ContextTypeName="UploadManagement.Layouts.UploadManagement.include.UploadManagementDataContext"
            TableName="quotationssssssssss" OnSelecting="linqDsFileType_Selecting"
        />
    
    <ext:SelectBox ID="ddlFileType" AllowBlank="false" runat="server" DisplayField="Type_Name" ValueField="Type_ID" 
    	EmptyText="Please Select" FieldLabel="Type" Width="350">
    	<Store>
    		<ext:Store ID="StoreFileType" runat="server" DataSourceID="LinqFileType">
    			<Reader>
    				<ext:JsonReader runat="server">
    					<Fields>
    						<ext:RecordField Name="Type_ID" />
    						<ext:RecordField Name="Type_Name" />
    						<ext:RecordField Name="Mandatory_Flag" />
    					</Fields>
    				</ext:JsonReader>
    			</Reader>            
    		</ext:Store>    
    	</Store>      
    </ext:SelectBox>
    My C# code behind:

    protected void linqDsFileType_Selecting(object sender, LinqDataSourceSelectEventArgs e)
    {
    	lib.UploadManagementDataContext context = lib.ClsLibrary.GetKoneksi();
    	e.Result = context.SelectFileType(GetPageRequestIDAPPS(), GetPageRequestIDSA());
    }
    This is the look I want :
    Click image for larger version. 

Name:	selectbox.jpg 
Views:	20 
Size:	20.5 KB 
ID:	13562

    Please Advise.
    Thank you for your kindly guide.

    Best Regards,
    Abiand
  2. #2
    Hi @Abiand,

    A SelectBox is a brother of ComboBox. Maybe, something like that is possible for a SelectBox as well. Though, I am not sure.
    https://examples1.ext.net/#/Form/ComboBox/IconCombo/

Similar Threads

  1. [CLOSED] SummaryColumn Condition
    By vzx in forum 2.x Legacy Premium Help
    Replies: 2
    Last Post: Jan 14, 2013, 7:00 AM
  2. Replies: 1
    Last Post: Sep 09, 2012, 5:12 PM
  3. Replies: 4
    Last Post: Oct 24, 2011, 3:34 AM
  4. [CLOSED] Setting IconCls property of a SelectBox does not show icon
    By jmcantrell in forum 1.x Legacy Premium Help
    Replies: 1
    Last Post: Jul 22, 2011, 11:47 PM
  5. Replies: 1
    Last Post: Jun 02, 2009, 12:23 PM

Tags for this Thread

Posting Permissions