Hi,
Here is the situation: I have a RadComboBox (not LoadOnDeman) which is filled with values when I load the page:
CodeBehind:
The problem is that if I don't make a Postback that refreshes the table element in which the RadComboBox is contained (using RadAjaxManager) within aproximately 2 minutes after loading the page, then the RadComboBox loses all of its items and this problem extends aswell to the asp:DropDownList controls which are contained within the same table element.
So, what's the problem here? What can I do to solve this problem?
Here is the situation: I have a RadComboBox (not LoadOnDeman) which is filled with values when I load the page:
<
telerik:RadComboBox
ID
=
"drpCollectingScript"
runat
=
"server"
Height
=
"150px"
Width
=
"225px"
DropDownWidth
=
"360px"
HighlightTemplatedItems
=
"true"
Filter
=
"Contains"
AutoPostBack
=
"False"
MarkFirstMatch
=
"true"
OnClientKeyPressing
=
"setHighlightedItem"
OnClientBlur
=
"setId"
OnClientFocus
=
"toggleRadCombo"
ViewStateMode
=
"Enabled"
>
<
HeaderTemplate
>
<
table
style
=
"width: 340px"
cellspacing
=
"0"
cellpadding
=
"0"
>
<
tr
>
<
td
style
=
"width: 340px;"
>
<
asp:Label
ID
=
"lblCSCode"
runat
=
"server"
>Code</
asp:Label
>
</
td
>
</
tr
>
</
table
>
</
HeaderTemplate
>
<
ItemTemplate
>
<
table
style
=
"width: 340px"
cellspacing
=
"0"
cellpadding
=
"0"
>
<
tr
>
<
td
style
=
"width: 340px;"
>
<%# DataBinder.Eval(Container, "Attributes['Code']")%>
</
td
>
</
tr
>
</
table
>
</
ItemTemplate
>
</
telerik:RadComboBox
>
CodeBehind:
If
Me
.IsPostBack =
False
Then
Dim
scripts =
New
CatalogService().GetAllScriptTips()
For
i
As
Integer
= 0
To
scripts.Count - 1
Dim
item
As
New
RadComboBoxItem()
item.Text = scripts(i).Code
item.Value = scripts(i).ScriptTipId
item.Attributes.Add(
"Code"
, scripts(i).Code)
item.Attributes.Add(
"Script"
, scripts(i).ContentDesign)
drpCollectingScript.Items.Add(item)
item.DataBind()
Next
End
If
The problem is that if I don't make a Postback that refreshes the table element in which the RadComboBox is contained (using RadAjaxManager) within aproximately 2 minutes after loading the page, then the RadComboBox loses all of its items and this problem extends aswell to the asp:DropDownList controls which are contained within the same table element.
So, what's the problem here? What can I do to solve this problem?