protected
void
cbStatusFilter_SelectedIndexChanged(
object
o, RadComboBoxSelectedIndexChangedEventArgs e)
{
GridFilteringItem filterItem = (GridFilteringItem)grdRequests.MasterTableView.GetItems(GridItemType.FilteringItem)[0];
Status = e.Value;
(filterItem.FindControl(
"txtStatus"
)
as
TextBox).Text = e.Value;
if
(e.Value !=
""
)
{
filterItem.FireCommandEvent(
"Filter"
,
new
Pair(
"EqualTo"
,
"Status"
));
}
else
filterItem.FireCommandEvent(
"Filter"
,
new
Pair(
"NoFilter"
,
"Status"
));
}
private
string
Status
{
get
{
if
(ViewState[
"Status"
] ==
null
)
return
""
;
else
return
ViewState[
"Status"
].ToString();
}
set
{ ViewState[
"Status"
] = value; }
}
function
Repaint(sender, args)
{
//this function never fires
var
tabstrip = $find(
'<asp:Literal ID="litTabPages" runat="server" Mode="PassThrough" />'
);
tabstrip.repaint();
}
<
telerik:RadTabStrip
ID
=
"tabPages"
runat
=
"server"
Skin
=
"Default"
ScrollChildren
=
"True"
ScrollButtonsPosition
=
"Left"
Width
=
"300px"
OnClientLoad
=
"Repaint"
>
</
telerik:RadTabStrip
>
OnClientItemClicking () function in the panelbar is having some errors.
when i placed the panelbar outside the raddock it works correctly..
please help me..
thanks in advance.
When i click in ContexMenu of a RadTreeView i open a radwindow that receives some arguments from the RadTreeView .
On the radwindow i have two hiddenfields and a radajaxpanel that contains a formview.
I Get the args on the rad window with this javascript function
function pageLoad() {txtInputIdLinea = document.getElementById('hdfIdLinea');
var currentWindow = GetRadWindow();
txtInputIdLinea.value = currentWindow.argument.Idlinea;}
The datasource of the formview has hdfIdLinea as a parameter.
The problem is that when the radwindow finish "loading" the formview didn't see the value set in hdfIdLinea, so after setting the value i add an ajax Request like this
$find(
"<%= Panel.ClientID %>").ajaxRequest("Update panel");
And It works, but this code run in a loop and i have this exception
Microsoft JScript runtime error: Sys.WebForms.PageRequestManagerParserErrorException: The message received from the server could not be parsed.
May you help me?. I need to force a postback of the FormView once time after the radwindow is loaded.
thanks._