This is a migrated thread and some comments may be shown as answers.

PostBack Problem in AjaxmanagerProxy with RadPanelBar

0 Answers 42 Views
PanelBar
This is a migrated thread and some comments may be shown as answers.
Velkumar
Top achievements
Rank 2
Velkumar asked on 12 Mar 2012, 12:16 PM
Hi,

           In my sharepoint project page I have a panelbar, a label, a radbutton. In the button click and panelbar item click  i have to postback tha page. In server side, I have written a code for getting the event argument  and set it into the label. In my page I have used RadAjaxManagerProxy for ajax operation. I have placed the radajaxmanager  in MasterPage. In the button click the label is successfully updated. My problem is that  in PanelBar Item click the page is postbacked but the label is not updated.

I have attached the code below
<telerik:RadScriptBlock ID="DemoScriptBlock" runat="server">
        <script type="text/javascript" language="javascript">
 
            function OnClientItemExpand(sender, args) {
 
                $find("<%= RadAjaxManager.GetCurrent(Page).ClientID %>").ajaxRequest(args.get_item().get_value());
 
            }
 
 
            function OnButtonClick(sender, args) {
 
                $find("<%= RadAjaxManager.GetCurrent(Page).ClientID %>").ajaxRequest(sender.get_text());
 
            }
 
        </script>
    </telerik:RadScriptBlock>
    <telerik:RadAjaxManagerProxy ID="PanelbarDemoAjaxmanagerProxy" runat="server">
        <AjaxSettings>
            <telerik:AjaxSetting AjaxControlID="uxProfileList">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="uxProfileList" />
                </UpdatedControls>
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="DemoLabel" />
                </UpdatedControls>
            </telerik:AjaxSetting>
            <telerik:AjaxSetting AjaxControlID="DemoButton">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="DemoButton" />
                </UpdatedControls>
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="DemoLabel" />
                </UpdatedControls>
            </telerik:AjaxSetting>
        </AjaxSettings>
    </telerik:RadAjaxManagerProxy>
  
    <telerik:RadPanelBar ID="uxProfileList" OnClientItemClicked="OnClientItemExpand"
        OnClientItemExpand="OnClientItemExpand" ExpandMode="FullExpandedItem" Width="100%"
        runat="server">
        <Items>
            <telerik:RadPanelItem runat="server" Text="Personal Info" Value="PersonalInfo" Font-Bold="true">
            </telerik:RadPanelItem>
            <telerik:RadPanelItem runat="server" Text="Profile Info" Value="ProfileInfo" Font-Bold="true">
            </telerik:RadPanelItem>
            <telerik:RadPanelItem runat="server" Text="Education" Value="Education" Font-Bold="true">
            </telerik:RadPanelItem>
            <telerik:RadPanelItem runat="server" Text="WorkExperience" Value="WorkExperience"
                Font-Bold="true">
            </telerik:RadPanelItem>
        </Items>
    </telerik:RadPanelBar>
 
    <asp:Label ID="DemoLabel" Text="Demo Label" runat="server"></asp:Label>
 
    
 
    <telerik:RadButton ID="DemoButton" Text="Demo Button" OnClientClicked="OnButtonClick" runat="server">
    </telerik:RadButton>

C#:
protected void Page_Load(object sender, EventArgs e)
        {
            if (IsPostBack)
                DemoLabel.Text = Request["__EVENTARGUMENT"].ToString();
 
        }


Thanks,
Velkumar

No answers yet. Maybe you can help?

Tags
PanelBar
Asked by
Velkumar
Top achievements
Rank 2
Share this question
or