Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: ASP.NET
hi,
This is Ramesh, While Binding editable combobox data(Item) not showing, but item count are there. i'm using 3.5 ajaxtoolkit dll i'm paste that over here anyone find anything wrong let me know.
 
<CC1:ComboBox ID="ComboBox1"  runat="server" DropDownStyle="DropDown" AutoCompleteMode="None"
CaseSensitive="false" RenderMode="Block" AutoPostBack="false" Font-Names="Comic Sans MS"
Font-Size="Large" ForeColor="DeepPink">
</CC1:ComboBox>
--Binding Code------------------------
ComboBox1.DataSource = dsOfficeLocation.Tables(0)
ComboBox1.DataValueField = "Office_Location"
ComboBox1.DataTextField = "Office_Location"
ComboBox1.DataBind()
ComboBox1.Items.Insert(0, "--Select--")
ComboBox1.SelectedIndex = 0 
 
Advance Wishes!
Ramesh M.
Posted 1-Feb-12 19:43pm
Edited 1-Feb-12 19:57pm
v2
Comments
manognya kota at 2-Feb-12 0:58am
   
Added <pre> tags.
manognya kota at 2-Feb-12 1:28am
   
Are you getting any error while binding?
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

try this one
 
ComboBox1.DataValueField = "Office_Location";
ComboBox1.DataTextField = "Office_Location";
ComboBox1.DataSource = dsOfficeLocation.Tables(0)
ComboBox1.DataBind();
ComboBox1.Items.Insert(0, "--Select--");
  Permalink  
v2
Comments
Rajesh Anuhya at 2-Feb-12 1:21am
   
Code tags added
--RA
ramesh_asm at 3-Feb-12 7:27am
   
Rajesh , after adding those codes even same issue.
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 2

Replace RenderMode="Block" with the RenderMode="Inline"
  Permalink  
v2
Comments
Rajesh Anuhya at 2-Feb-12 1:22am
   
Code Tags added
--RA
ramesh_asm at 3-Feb-12 7:27am
   
Rajesh , after adding those codes even same issue.
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 3

Rajesh , after adding those codes even same issue.
 

Advance Wishes!!!
  Permalink  

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
0 OriginalGriff 315
1 Jochen Arndt 190
2 DamithSL 125
3 PIEBALDconsult 110
4 Garth J Lancaster 90
0 OriginalGriff 5,790
1 DamithSL 4,601
2 Maciej Los 4,012
3 Kornfeld Eliyahu Peter 3,480
4 Sergey Alexandrovich Kryukov 3,195


Advertise | Privacy | Mobile
Web02 | 2.8.141220.1 | Last Updated 3 Feb 2012
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100