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

RadAjaxManager (Problem About Knowing) ...

3 Answers 87 Views
Ajax
This is a migrated thread and some comments may be shown as answers.
Majid Darab
Top achievements
Rank 1
Majid Darab asked on 27 Apr 2010, 05:30 PM
hi my dear friends...
my RadAjaxManager Code Is Like This :
        <%--RAD AJAX MANAGER--%> 
        <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server" ClientEvents-OnRequestStart="RequestStartedOfRadAjaxManager1" 
            UpdatePanelsRenderMode="Inline"
            <ClientEvents OnRequestStart="RequestStartedOfRadAjaxManager1" /> 
            <AjaxSettings> 
                <telerik:AjaxSetting AjaxControlID="RadComboBox1"
                    <UpdatedControls> 
                        <telerik:AjaxUpdatedControl ControlID=" RadComboBox1" /> 
                        <telerik:AjaxUpdatedControl ControlID="ChechBox1" /> 
                    </UpdatedControls> 
                </telerik:AjaxSetting> 
                 
            </AjaxSettings> 
        </telerik:RadAjaxManager> 

i have some codes in SelectedIndexChange  of RadComboBox1...i am changing ChechBox1.Checked In It ...(AutoPostBack = True)
i have some codes in CheckChanged of ChechBox1...(AutoPostBack = True)
but i do not know why ChechBox1 Not Work...
when i click on it (for Making it to true or false), it disappears or Not Work...
==================================================================
there is this scenario about buttons ...
when they are in RadAjaxManager (Update) they do not work...
i know this is not about RadAjaxManager / but can u lead me to solve this?
thanks a lot


3 Answers, 1 is accepted

Sort by
0
Maria Ilieva
Telerik team
answered on 30 Apr 2010, 09:36 AM
Hi Majid,

Could you please elaborate a little bit more on your scenario? Does the application work correctly if the Ajax is disabled on the page? Also please try using regular asp Update Panel and verify if the same problem appears.


Greetings,
Maria Ilieva
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
0
Majid Darab
Top achievements
Rank 1
answered on 30 Apr 2010, 08:01 PM
hi my dear friend :
i put all of those codes here...
ASPX
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="AjaxManager.aspx.cs" Inherits="WebApplication1.AjaxManager" %> 
 
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %> 
 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 
 
<html xmlns="http://www.w3.org/1999/xhtml" > 
<head runat="server"
    <title></title
</head> 
<body> 
    <form id="form1" runat="server"
    <telerik:RadScriptManager ID="RadScriptManager1" runat="server"
    </telerik:RadScriptManager> 
    <div> 
        <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server"
            <AjaxSettings> 
                <telerik:AjaxSetting AjaxControlID="RadComboBox1"
                    <UpdatedControls> 
                        <telerik:AjaxUpdatedControl ControlID="RadComboBox1" /> 
                        <telerik:AjaxUpdatedControl ControlID="CheckBox1" /> 
                    </UpdatedControls> 
                </telerik:AjaxSetting> 
            </AjaxSettings> 
        </telerik:RadAjaxManager> 
        <telerik:RadComboBox ID="RadComboBox1" runat="server" AutoPostBack="True"  
            onselectedindexchanged="RadComboBox1_SelectedIndexChanged"
            <Items> 
                <telerik:RadComboBoxItem runat="server" Text="RadComboBoxItem1"  
                    Value="RadComboBoxItem1" /> 
                <telerik:RadComboBoxItem runat="server" Text="RadComboBoxItem2"  
                    Value="RadComboBoxItem2" /> 
                <telerik:RadComboBoxItem runat="server" Text="RadComboBoxItem3"  
                    Value="RadComboBoxItem3" /> 
            </Items> 
        </telerik:RadComboBox> 
        <asp:CheckBox ID="CheckBox1" runat="server" AutoPostBack="True"  
            oncheckedchanged="CheckBox1_CheckedChanged" /> 
    </div> 
    </form> 
</body> 
</html> 
 


C# - CODE BEHIND :
using System; 
using System.Collections.Generic; 
using System.Linq; 
using System.Web; 
using System.Web.UI; 
using System.Web.UI.WebControls; 
 
namespace WebApplication1 
    public partial class AjaxManager : System.Web.UI.Page 
    { 
        protected void Page_Load(object sender, EventArgs e) 
        { 
 
        } 
 
        protected void CheckBox1_CheckedChanged(object sender, EventArgs e) 
        { 
            if (CheckBox1.Checked == true
            { 
                Response.Write("Hello Teleik! - This Is True Of CheckBox"); 
            } 
            if (CheckBox1.Checked == false
            { 
                Response.Write("Hello Teleik! - This Is false Of CheckBox"); 
            } 
        } 
 
        protected void RadComboBox1_SelectedIndexChanged(object o, Telerik.Web.UI.RadComboBoxSelectedIndexChangedEventArgs e) 
        { 
            if (RadComboBox1.SelectedIndex == 0) 
            { 
                CheckBox1.Checked = true
            } 
            if (RadComboBox1.SelectedIndex == 1) 
            { 
                CheckBox1.Checked = false
            } 
            if (RadComboBox1.SelectedIndex == 2) 
            { 
                CheckBox1.Checked = true
            } 
        } 
    } 
 


at now my CheckBox1 CheckChanged Not work...
when i click on checkbox1 it disappears or nothing happens...
how can i Force CheckBox1 CheckChanged To Work?
thanks for attention








0
Maria Ilieva
Telerik team
answered on 04 May 2010, 01:12 PM
Hello Majid,

By default the CheckBox1_CheckedChanged event will fire when you directly click on the control. For the needs of your application you should set the alert on the RadComboBox1_SelectedIndexChanged event for the correspondence state of the CheckBox.

Sincerely yours,
Maria Ilieva
the Telerik team


Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
Tags
Ajax
Asked by
Majid Darab
Top achievements
Rank 1
Answers by
Maria Ilieva
Telerik team
Majid Darab
Top achievements
Rank 1
Share this question
or