or
I have multiple radgrids on a single page. I have roughly 15 columns in one. Only 3 of the columns are set to display, however when running on my local machine only 2 of them display. In the developer tools of IE9 it shows it is being set as inline display: none. I have not set this and Have set it to display = true in my code with no luck. this is also happening on a two column grid where it is only displaying a single column in the grid. I am unsure of the issue and what is creating this. I have tried running IE in compatibility mode and have also tried different versions of IE.
I have to use IE 9 for this project.
RadGrid Code
dtpicker.DateInput.DisplayDateFormat = "MMM dd,yyyy" ;
<telerik:RadComboBox ID="ddlStudents" |
EnableViewState="false" |
runat="server" |
EnableVirtualScrolling="true" |
ShowMoreResultsBox="true" |
EnableLoadOnDemand="true" |
OnClientFocus="OnClientFocus" |
EnableItemCaching="true" |
HighlightTemplatedItems="true" |
EmptyMessage="Select a student or start typing their name" |
ExpandAnimation-Duration="150" |
IsCaseSensitive="false" |
CollapseAnimation-Duration="9" |
Skin="Default" |
DataValueField="StudentId" |
DataTextField="CombinedName" |
ToolTip="Select a student from the drop down list or start typing their name/ID to return only those students matching your criteria." |
MaxHeight="250px" |
Width="100%"> |
<HeaderTemplate> |
<ul class="RadComboBoxDefault"> |
<li class="RadComboBoxColumn1">Year</li> |
<li class="RadComboBoxColumn2">Student</li> |
<li class="RadComboBoxColumn3">Status</li> |
</ul> |
<br style="clear: left" /> |
</HeaderTemplate> |
<ItemTemplate> |
<ul class="RadComboBoxDefault"> |
<li class="RadComboBoxColumn1"> |
<%# DataBinder.Eval(Container, "Attributes[\"Year\"]")%></li> |
<li class="RadComboBoxColumn2"> |
<%# DataBinder.Eval(Container, "Attributes[\"CombinedName\"]")%> |
</li> |
<li class="RadComboBoxColumn3"> |
<%#DataBinder.Eval(Container, "Attributes[\"StudentStatus\"]") %> |
</li> |
</ul> |
<br style="clear: left" /> |
</ItemTemplate> |
<WebServiceSettings Method="GetStudents" Path="TestingPageMethods.aspx" /> |
</telerik:RadComboBox> |
[WebMethod] |
public static RadComboBoxData GetStudents(RadComboBoxContext context) |
{ |
VList<StudentDTO> data = GetStudents(); |
if (context.Text != "") |
{ |
data.ApplyFilter(delegate(StudentDTO s) |
{ |
return s.CombinedName.ToLower().Contains(context.Text.ToLower()); |
} |
); |
} |
RadComboBoxData comboData = new RadComboBoxData(); |
int itemOffset = context.NumberOfItems; |
int endOffset = Math.Min(itemOffset + 100, data.Count); |
comboData.EndOfItems = endOffset == data.Count; |
List<RadComboBoxItemData> result = new List<RadComboBoxItemData>(endOffset - itemOffset); |
for (int i = itemOffset; i < endOffset; i++) |
{ |
RadComboBoxItemData itemData = new RadComboBoxItemData(); |
itemData.Text = data[i].CombinedName; |
itemData.Attributes.Add("CombinedName", data[i].CombinedName); |
itemData.Value = data[i].StudentId; |
itemData.Attributes.Add("StudentStatus", data[i].StudentStatus); |
itemData.Attributes.Add("Year", data[i].StudentYear); |
result.Add(itemData); |
} |
comboData.Message = GetStatusMessage(endOffset, data.Count); |
comboData.Items = result.ToArray(); |
return comboData; |
} |