Hi, I have a very annoying problem with my app and cant find any similar topic. I have a Page with a RadAjaxPanel containing 2 RadPanes (1 for Menu and 1 for Page content). The Page also have a second RadAjaxPanel containing some RadComboBoxes. On some predefined conditions, selecting an item in the mentionned RadComboBoxes should trigger a postback refresh on the Page content pane mentioned. Everything works but approx 10% of the time, the postback seems not be firing. When it happens I simply select something else in my RadComboBoxes and then it works. Cant find any pattern to replicate as it seems totally random.
Panel with comboboxes
Panel with 2 panes
The function doing the magic is this one:
Everytime I check my log file (when refresh seemed to not occur), RaisePostBackEvent was called and ContentUrl of rpPane has the right value.
Is there a better way to do this, or any other property of rpPane/rapPanel I can check to find what could be wrong? Please help, this is killing me.
UPDATE: Can it be because im running the demo of the control (and sometimes get the "Thank you for using the Trial Version of RadControls for ASP.NET AJAX ..." message) and affect the post backs?
TIA
Panel with comboboxes
<telerik:RadAjaxPanel ID=
"RadAjaxPanel2"
runat=
"server"
>
<div
class
=
"EnterpriseNodes1"
>
<telerik:RadComboBox ID=
"RadComboBox1"
runat=
"server"
Skin=
"WebBlue"
MarkFirstMatch=
"true"
Visible=
"false"
AllowCustomText=
"true"
Filter=
"StartsWith"
CssClass=
"combo1"
NoWrap=
"True"
OnItemDataBound=
"RadComboBox1_ItemDataBound"
AutoPostBack=
"True"
OnSelectedIndexChanged=
"RadComboBox1_OnSelectedIndexChanged"
OnClientDropDownOpened=
"ShowEmptyMessage"
OnClientDropDownClosed=
"HideEmptyMessage"
>
</telerik:RadComboBox>
<br />
<telerik:RadComboBox ID=
"RadComboBox2"
runat=
"server"
Skin=
"WebBlue"
MarkFirstMatch=
"true"
Visible=
"false"
AllowCustomText=
"true"
Filter=
"StartsWith"
CssClass=
"combo2"
NoWrap=
"True"
OnItemDataBound=
"RadComboBox2_ItemDataBound"
AutoPostBack=
"True"
OnSelectedIndexChanged=
"RadComboBox2_OnSelectedIndexChanged"
OnClientDropDownOpened=
"ShowEmptyMessage"
OnClientDropDownClosed=
"HideEmptyMessage"
>
</telerik:RadComboBox>
<br />
<telerik:RadComboBox ID=
"RadComboBox3"
runat=
"server"
Skin=
"WebBlue"
MarkFirstMatch=
"true"
Visible=
"false"
AllowCustomText=
"true"
Filter=
"StartsWith"
CssClass=
"combo3"
NoWrap=
"True"
OnItemDataBound=
"RadComboBox3_ItemDataBound"
AutoPostBack=
"True"
OnSelectedIndexChanged=
"RadComboBox3_OnSelectedIndexChanged"
OnClientDropDownOpened=
"ShowEmptyMessage"
OnClientDropDownClosed=
"HideEmptyMessage"
>
</telerik:RadComboBox>
</div>
</telerik:RadAjaxPanel>
Panel with 2 panes
<
telerik:RadAjaxPanel
ID
=
"RadAjaxPanel1"
runat
=
"server"
Height
=
"100%"
Width
=
"100%"
>
<
telerik:RadSplitter
ID
=
"RadSplitter1"
PanesBorderSize
=
"0"
BorderSize
=
"0"
runat
=
"server"
Orientation
=
"Vertical"
Width
=
"99%"
Height
=
"109%"
>
<
telerik:RadPane
ID
=
"RadPane1"
runat
=
"server"
CssClass
=
"MenuPane"
MinWidth
=
"220"
Width
=
"220px"
Height
=
"100%"
>
<
telerik:RadSplitter
ID
=
"RadSplitter2"
PanesBorderSize
=
"0"
BorderSize
=
"0"
runat
=
"server"
ResizeWithParentPane
=
"false"
Orientation
=
"Horizontal"
Width
=
"100%"
Height
=
"100%"
>
<
telerik:RadPane
ID
=
"RadPane3"
runat
=
"server"
CssClass
=
"MenuPane2"
Width
=
"100%"
Height
=
"50%"
>
<
telerik:RadMenu
ID
=
"RadMenu2"
runat
=
"server"
Visible
=
"false"
CssClass
=
"menu3"
OnItemClick
=
"RadMenu_ItemClick"
EnableImageSprites
=
"true"
BorderStyle
=
"None"
Flow
=
"Vertical"
>
</
telerik:RadMenu
>
</
telerik:RadPane
>
<
telerik:RadPane
ID
=
"RadPane4"
runat
=
"server"
CssClass
=
"MenuPane2"
Width
=
"100%"
Height
=
"50%"
>
<
telerik:RadMenu
ID
=
"RadMenu3"
runat
=
"server"
Visible
=
"false"
CssClass
=
"menu3"
OnItemClick
=
"RadMenu_ItemClick"
EnableImageSprites
=
"true"
BorderStyle
=
"None"
Flow
=
"Vertical"
>
</
telerik:RadMenu
>
</
telerik:RadPane
>
</
telerik:RadSplitter
>
</
telerik:RadPane
>
<
telerik:RadPane
ID
=
"RadPane2"
runat
=
"server"
CssClass
=
"ContentPane"
ContentUrl
=
"Test.aspx"
>
</
telerik:RadPane
>
</
telerik:RadSplitter
>
</
telerik:RadAjaxPanel
>
The function doing the magic is this one:
public
void
RefreshPanel(
ref
RadAjaxPanel rapPanel,
ref
RadPane rpPane,
string
strUrl,
string
strQuerystring)
{
rpPane.ContentUrl = strUrl + strQuerystring;
WriteLog(rpPane.ContentUrl);
//logging to check if code is called with right parameters
rapPanel.RaisePostBackEvent(
null
);
}
Everytime I check my log file (when refresh seemed to not occur), RaisePostBackEvent was called and ContentUrl of rpPane has the right value.
Is there a better way to do this, or any other property of rpPane/rapPanel I can check to find what could be wrong? Please help, this is killing me.
UPDATE: Can it be because im running the demo of the control (and sometimes get the "Thank you for using the Trial Version of RadControls for ASP.NET AJAX ..." message) and affect the post backs?
TIA