Jul 15, 2014, 4:07 AM
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 :
Please Advise.
Thank you for your kindly guide.
Best Regards,
Abiand
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 :Please Advise.
Thank you for your kindly guide.
Best Regards,
Abiand