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

Asp.Net ajax Panel

7 Answers 95 Views
Dock
This is a migrated thread and some comments may be shown as answers.
VEDA VIDVA NARAYANAN SATTANATHAN
Top achievements
Rank 1
VEDA VIDVA NARAYANAN SATTANATHAN asked on 17 Nov 2008, 09:36 AM
Hi ,

 I have created a Custom control with telerik comboboxes and textboxes. I am using a ajax loading panel to avoid postback for the cutom control.
I have a scennario in which  I have to pass some values from this custom control to another radEditor(Custom control). When i try to pass the values the postback is said to happen.  so the values are not saved in the radEditor(Custom control). . This Happens due to the postback of the controls. please give me a solution to send values from one control to another even after the postback  is done.

Thx
Veda

7 Answers, 1 is accepted

Sort by
0
Vyrban
Top achievements
Rank 1
answered on 17 Nov 2008, 04:37 PM
Hi,

Try to save the values in the Hidden Field and when the post back occurs the information will be saved. So on the server side, in the handler of the event, that triggered the postback, you can set these values from Hidden Field to RadEditor.
 Hope this approach helps you.
0
VEDA VIDVA NARAYANAN SATTANATHAN
Top achievements
Rank 1
answered on 18 Nov 2008, 03:32 PM
hi ,

I have Created a custom control 1 with Comboboxes inside a Ajax loading Panel. I have another Custom control 2 with RadEditor / Textbox inside an Ajax Panel.Two Custom controls are in different Ajax Panels. In the postback of the custom control 1 i have to Pass the Data from to custom control 2 and display in the Radeditor. Does telerik provide provision to Pass the data after the postback event (for custom control 1) is happening, without the whole page being post back.

Thanks
Veda.S
0
Obi-Wan Kenobi
Top achievements
Rank 1
answered on 19 Nov 2008, 09:19 AM

If the problem is that after ajax call the content in the second update panel is not refreshed, You can invoke the UpdatePanel2.Update() method. If you have something else in mind, please paste a code which illustrates what you want to achieve and I will try to help you.
ASPX:

  <form id="form1" runat="server">  
    <asp:ScriptManager ID="ScriptManager1" runat="server" ></asp:ScriptManager> 
    <div> 
    <asp:Button ID="Button3" runat="server" OnClick="Button3_Click" Text="CheckTime"/>  
    <div style="border:1px solid red">  
    <asp:UpdatePanel ID="UpdatePanel1" runat="server" UpdateMode="Conditional">  
        <ContentTemplate> 
            <asp:Button ID="Button1" runat="server" Text="CheckTime" OnClick="Button1_Click"/>  
            <asp:TextBox ID="TextBox1" runat="server"></asp:TextBox> 
        </ContentTemplate> 
    </asp:UpdatePanel> 
    </div> 
    <div style="border:1px solid green">  
    <asp:UpdatePanel ID="UpdatePanel2" runat="server" UpdateMode="Conditional">  
        <ContentTemplate> 
            <asp:Button ID="Button2" runat="server" Text="CheckTime and update the first text box too" OnClick="Button2_Click"/>  
            <asp:TextBox ID="TextBox2" runat="server"></asp:TextBox> 
        </ContentTemplate> 
    </asp:UpdatePanel> 
    </div> 
    </div> 
    </form> 

Codebehind:

 protected void Page_Load(object sender, EventArgs e)  
    {  
        ScriptManager1.RegisterAsyncPostBackControl(Button3);     
        TextBox1.Text = TextBox2.Text = System.DateTime.Now.ToString();  
    }  
    protected void Button1_Click(object sender, EventArgs e)  
    {  
 
    }  
    protected void Button2_Click(object sender, EventArgs e)  
    {  
        UpdatePanel1.Update();  
    }  
    protected void Button3_Click(object sender, EventArgs e)  
    {  
        UpdatePanel2.Update();  
    } 

0
VEDA VIDVA NARAYANAN SATTANATHAN
Top achievements
Rank 1
answered on 23 Dec 2008, 05:40 AM
Hi,
 As per your suggestion we have used the Update panel to update the data from one(Custom control1) Custom control to another(Custom control2),
 We are using the Telerik controls throughout the appication and we feel that it be consistent if we use the Radjax panel rather than update panel.  
please provide us a suggestion to proceed.
Advance Thanks

Veda 
0
Nikolay Raykov
Telerik team
answered on 23 Dec 2008, 03:02 PM
Hi Veda,

RadControls for ASP.NET AJAX are built on top of the .Net Framework and MS AJAX and they can interact with standard ASP.NET server controls. That said, our controls could be placed inside an Update Panel or a RadAjaxPanel. It is up to you to decide what is the best option for your specific scenario.


Best wishes,
Nikolay Raykov
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
VEDA VIDVA NARAYANAN SATTANATHAN
Top achievements
Rank 1
answered on 23 Dec 2008, 03:09 PM
Hi,
We faced a problem in updating the values from one custom control to another  using Rad ajax panel.(it does not have .update method) as in update panel . Can you specify any other approach or  method in rad ajax panel so that we can use that instead of update panel.


Thanks
Veda.S
0
Daniel
Telerik team
answered on 29 Dec 2008, 12:23 PM
Hello Veda,

I suggest you examine the following article.
Achieve interaction between AJAX Panels

I hope this helps.

Regards,
Daniel
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
Dock
Asked by
VEDA VIDVA NARAYANAN SATTANATHAN
Top achievements
Rank 1
Answers by
Vyrban
Top achievements
Rank 1
VEDA VIDVA NARAYANAN SATTANATHAN
Top achievements
Rank 1
Obi-Wan Kenobi
Top achievements
Rank 1
Nikolay Raykov
Telerik team
Daniel
Telerik team
Share this question
or