Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
128 views
Hello everyone,

I created a web user control called MultiSelectDropDown using RadComboBox based on the example Telerik.com provided.
When I drag and drop this control into a web page, It works perfect, My problem is , when the page has 2 or more MultiSelectDropDown ,
Only the one works, for the rest of them, when I click check box items, the text in combo box always empty. I hope some one can help me out.I appreciate it in advanced. Below is code:
ASCX code:

<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="MultiSelectDropDown.ascx.cs" Inherits="G2WebFramework.RebillRejectedData.Controls.MultiSelectDropDown" %>
<%@ Register assembly="Telerik.Web.UI" namespace="Telerik.Web.UI" tagprefix="telerik" %>



 <style type="text/css">
     .example-panel
{
    width:352px;
    height: 30px;
    margin: 91px 0 0 68px;
    background: transparent url("Img/background.png") no-repeat 0 0;
}

.example-panel ul.combobox-panel
{
    list-style:none;
    margin:156px 0 0 75px;
    padding:0;
    float:left;
}

.example-panel ul.status-panel
{
    list-style:none;
    padding:0;
    margin:40px 0 0 117px;
    float:left;
}

.example-panel ul.status-panel label
{
    font: 14px 'Segoe UI', Arial, sans-serif;
    color: #fff;
    padding-right: 9px;
}

.example-panel ul.status-panel li
{
    float:left;
    font: 14px 'Segoe UI', Arial, sans-serif;
    color: #ffb400;
    padding-right: 15px;
}

* html ul.combobox-panel
{
    display:inline; /*double margin bug*/
}

.example-panel ul.combobox-panel li
{
    float:left;
}

.example-panel ul.combobox-panel li label
{
    font: 12px 'Segoe UI', Arial;
    color: #fff;
    margin-right: 5px;
    margin-left: 40px;
}

.combo-item-template input,
.combo-item-template label
{
    vertical-align:top;
}

.combo-item-template img
{
    vertical-align:top;
}

.example-panel .rent-button
{
    float:right;
    width: 73px;
    height:21px;
    background: transparent url('Img/button.png') no-repeat 0 0;
    text-decoration:none;
    color: #000;
    text-align:center;
    line-height:21px;
    margin: 18px 30px 0 auto;
}
</style>

<script type="text/javascript">
//        <![CDATA[
            var cancelDropDownClosing = false;
            
            function StopPropagation(e)
            {
                //cancel bubbling
                e.cancelBubble = true;
                if (e.stopPropagation)
                {
                    e.stopPropagation();
                }
            }

            function onDropDownClosing()
            {
                cancelDropDownClosing = false;
            }

            function onCheckBoxClick(chk)
            {
                var combo = $find("<%= RadComboBox1.ClientID %>");
                
                //prevent second combo from closing
                cancelDropDownClosing = true;
                //holds the text of all checked items
                var text = "";
                //holds the values of all checked items
                var values = "";
                //get the collection of all items
                var items = combo.get_items();
                //enumerate all items
                for (var i = 0; i < items.get_count(); i++)
                {
                    var item = items.getItem(i);
                    //get the checkbox element of the current item
                    var chk1 = $get(combo.get_id() + "_i" + i + "_chk1");
                    if (chk1.checked)
                    {
                        text += item.get_text() + "," ;
                        values += item.get_value() + ",";
                    }
                }
                //remove the last comma from the string
                text = removeLastComma(text);
                values = removeLastComma(values);
            
                if (text.length > 0)
                {
                    //set the text of the combobox
                    combo.set_text(text);
                    combo.set_value(text);
                }
                else
                {
                    //all checkboxes are unchecked
                    //so reset the controls
                    combo.set_text("");
                   
                }
            }

            //this method hides the nodes of the treeeview depending on
            //the checked items in the first combobox
           

            //this method removes the ending comma from a string
            function removeLastComma(str)
            {
                return str.replace(/,$/,"");
            }

           

            function OnClientDropDownClosingHandler(sender, e)
            {
                //do not close the second combo if
                //a checkbox from the first is clicked
                e.set_cancel(cancelDropDownClosing);
            }
//         ]]>
        </script>
        
        <%-- <telerik:RadFormDecorator ID="FormDecorator1" runat="server" DecoratedControls="all" ControlsToSkip="Scrollbars"></telerik:RadFormDecorator>--%>
                    <telerik:RadComboBox ID="RadComboBox1" runat="server" HighlightTemplatedItems="true"
                                AllowCustomText="true" Width="131px"    
    OnClientDropDownClosed="onDropDownClosing"  ForeColor="Navy"    
    BorderColor="Navy" AutoPostBack="True"  >
    
   
                                <ItemTemplate>
                                   <div id="ListDiv" onclick="StopPropagation(event)" class="combo-item-template" runat="server" >
                                        <asp:CheckBox runat="server" ID="chk1" Checked="false" onclick="onCheckBoxClick(this)" BorderColor="Navy"/>
                                        <asp:Label runat="server" ID="Label1" AssociatedControlID="chk1" ForeColor="Navy">

                                           <%# Eval(RadComboBox1.DataTextField) %>

                                        </asp:Label>
                                   </div>
                                </ItemTemplate>
                      </telerik:RadComboBox>
         
          ____________________________________
C# code:

using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace G2WebFramework.RebillRejectedData.Controls
{
    public partial class MultiSelectDropDown : System.Web.UI.UserControl
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {

                RadComboBox1.DataBind();
            }
               
        }
        

        //selected checkbox text
        public string sText
        {
            get { return RadComboBox1.Text; }
        }

        public Object DataSource
        {
            get { return RadComboBox1.DataSource; }
            set { RadComboBox1.DataSource = value; }
        }

        public string DataTextField
        {
            get { return RadComboBox1.DataTextField; }
            set { RadComboBox1.DataTextField = value; }
        }
        public string DataValueField
        {
            get { return RadComboBox1.DataValueField; }
            set { RadComboBox1.DataValueField = value; }
        }

      
       
    }
}             
   

Testing code:

using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using G2WebBL.DataMappers.RebillRejectedData;

namespace G2WebFramework.RebillRejectedData
{
    public partial class Test : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {

                BindData_Company();
                BindData_LEC();
            }
                
        }

        internal void BindData_Company()
        {

            var DBObj = new RebillRejectedDataAccess("BOSS_SB");
            var DT = DBObj.SelectCompany();
            MultiSelectDropDown1.DataSource = DT;
            MultiSelectDropDown1.DataTextField = "Company";
            MultiSelectDropDown1.DataValueField = "Company";

        }
        internal void BindData_LEC()
        {
            var DBObj = new RebillRejectedDataAccess("BOSS_SB");
            var DT = DBObj.SelectLEC();
            MultiSelectDropDown2.DataSource = null;
            MultiSelectDropDown2.DataSource = DT;
            MultiSelectDropDown2.DataTextField = "LEC";
            MultiSelectDropDown2.DataValueField = "LEC";

        }
        
    }
}          
         
Dimitar Terziev
Telerik team
 answered on 01 Mar 2011
3 answers
65 views
Hi!  I have a RadGrid with a MasterTable and a DetailsTable.  The MasterTable has a column in it with the 'expand' button.  However when I click on the 'expand' button nothing happens. 

I've checked to ensure the 'GridRelationFields' have the correct values for the 'DetailKeyField' and the 'MasterKeyField'.  The MasterTable and the DetailsTable both have columns for these values.

Could someone provide suggestions for troubleshooting?  I have this same logic working on another page in our web application, but must be missing something for this particular page.

Thanks!
Amy
Top achievements
Rank 1
 answered on 01 Mar 2011
2 answers
111 views
Hello,

I have a radiobuttonlist and when I select a certain choice it enables a RadDatePicker and a RequiredFieldValidator. So in my code behind I enable and disable my RequiredFieldValidator. I've found that when my RequiredFieldValidator is updated by my RadAjaxManagerProxy it doesn't validate anymore.

Thanks

Keven
Maria Ilieva
Telerik team
 answered on 01 Mar 2011
3 answers
127 views
I've been trying to dynamically bind a list to the data source of a GridDropDownColumn in a detail table. I have manage to get it to mostly work, but it isn't binding the first row's cell. I've been using the code below in various radGrid1 subs, and I keep getting the same results. I believe that I'm binding the data source after the first row is created and bound, but where do i put it so I can bind the data source before the first one.

Thanks for any help.

If (e.Item.OwnerTableView.Name = "DetailTable") Then
 
    If _list Is Nothing Then
        _list = Managers.DataManager.LoadAll
    End If
 
    'set the data sourse
    If TypeOf e.Item Is GridDataItem Then
 
        If Not _IsBound Then
            Dim item As GridDropDownColumn = TryCast(e.Item.OwnerTableView.GetColumnSafe("ddcCondition"), GridDropDownColumn)
            Dim itemManager As GridDropDownColumnEditor = TryCast(item.ColumnEditor, GridDropDownColumnEditor)
            itemManager.DataSource = _list
            itemManager.DataBind()
            _IsBound = True
        End If
    End If
End If
Vasil
Telerik team
 answered on 01 Mar 2011
4 answers
232 views
Hi,

I have been using Menu ASP .NET RadControl from RadMenu.Net2.dll.
That worked fine.

Now, I'm trying to update this control with latest ASP .NET AJAX RadMenu control from Telerik.Web.UI.dll.

The requirements and exceptions came up to me as it will require ScriptManager before RadControl is used in the code and ScriptManager in turn requires Form Tag with RunAt server.

I have done that which lands me with this kind of exception.
System.ArgumentException: Script control 'xnaMenu' is not a registered script control. Script controls must be registered using RegisterScriptControl() before calling RegisterScriptDescriptors().
Parameter name: scriptControl


Anybody has faced this similar problem? I do see similar exception reported on RadDock control and Telerik team provided another new dll as temporary solution. So, what was changed in the DLL? I would like to know if I can overcome same thing in my code, or I need new temporary DLL from telerik :)

Thanks,
Chirag
Helen
Telerik team
 answered on 01 Mar 2011
18 answers
519 views
I have seen several posts on this topic, but have not seen a solution that will work yet.  I want to add a linkbutton to my group header that will use data from the group header in the postback.

I have something like the following:

LinkButton lnk = new LinkButton();
lnk.ID = "lnkReservations";
lnk.Text = "View All";
lnk.CommandArgument = (DataRowView)item.DataItem["employer_id"].ToString();
lnk.Command += new CommandEventHandler(lnkReservations_Command);
item.DataCell.Controls.Add(lnk);

I have tried adding to the event handlers for PreRender, ItemCreated, ItemDataBound but have not been successful in any of those attempts in getting the linkbutton to behave correctly.

Is there a simple solution to add a linkbutton to a groupheader that will execute a function based on the data/header where the control sits?  Is there any kind of special column that I can add to turn a header into a linkbutton?
Kavya
Top achievements
Rank 2
 answered on 01 Mar 2011
6 answers
70 views
hi,

i created a grid for my project. But now i faced a GridDropDownColumn problem. What i done is i put a DataSourceID="SqlDataSource2"  in a GridDropDownColumn. when page load, i cant get first row data unless i refresh it through refresh button on MasterTableView. then for other record can display normally.

any helps is appreaciated. Thank you.

Best regards,
Nasri
Arteta Sam
Top achievements
Rank 1
 answered on 01 Mar 2011
10 answers
277 views
Hi Telerik Team,

I've implemented the MOSSRadEditor Placeholder for a client who is complaining about the slowness loading the page due to the RadEditor in Edit mode.  There can be as many as 10 placeholders on the page at once and the page loads really slowly as a result.

We want to try ContentAreaMode = 'Div' to see if it offers a speed improvement but we cannot find where to apply this setting.  With the RadEditor it is a simple attribute, but because we are using the MOSSRadEditor placeholder, we cannot set the "ContentAreaMode" property.

I also tried adding: <property name="ContentAreaMode">Div</property> to the config.xml file but this has no effect.

Is this attribute supported with the MOSSRadEditor?  If not, can you suggest things we might be able to do to speed up the loading of the RadEditor in Edit mode?  The client is nearly ready to pull the Editor altogether due to the speed issue.

Thanks
Obaid Ullah
Top achievements
Rank 1
 answered on 01 Mar 2011
1 answer
188 views
Hi,

In my application i wanted to use tabstrip with ten tabs. Once i appplied ScrollChildern="True".

1.Tab Scrolling is not working in Firefox/Google Crome
2. In Internet explorer i can see scrolling buttons but if i reach at 5th tab and if i hit button(Basically when page post back) Scrolling reverse button get disable.

I am attaching screenshots and code block. Let me know what i m doing wrong.

Thanks,
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="TabStripScrollTest.aspx.cs" Inherits="RadControlsWebApp1.TabStripScrollTrest" %>
 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
 
<head runat="server">
    <title>TabStrip Scroll Test</title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
    <telerik:RadScriptManager runat="server" ID="RadGridScriptManager">
                </telerik:RadScriptManager>
    <table width="100%" cellpadding="0px" border="1">
        <tr>
            <!-- Left Content Start-->
            <td valign="top" align="center" style="width:20%;border:1px solid #EEE;color:#666;">
                <div id="leftdiv" class="leftdivtitle">
                 
                </div>
                Left Contents goes here
            </td>
            <!-- Left Content End -->
            <!-- Right Content Start -->
            <td valign="top" style="width:20%;color:#EEE;">
                <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
                    <AjaxSettings>
                        <telerik:AjaxSetting AjaxControlID="pnlTab">
                            <UpdatedControls>
                                <telerik:AjaxUpdatedControl ControlID="radBtnBack" LoadingPanelID="RadAjaxLoadingPanel1" />
                                <telerik:AjaxUpdatedControl ControlID="radBtnSkip" LoadingPanelID="RadAjaxLoadingPanel1" />
                                <telerik:AjaxUpdatedControl ControlID="radBtnNext" LoadingPanelID="RadAjaxLoadingPanel1" />
                                <telerik:AjaxUpdatedControl ControlID="radBtnFinish" LoadingPanelID="RadAjaxLoadingPanel1" />
                            </UpdatedControls>
                        </telerik:AjaxSetting>
                        <telerik:AjaxSetting AjaxControlID="radBtnBack">
                            <UpdatedControls>
                                <telerik:AjaxUpdatedControl ControlID="pnlTab" LoadingPanelID="RadAjaxLoadingPanel1" />
                            </UpdatedControls>
                        </telerik:AjaxSetting>
                        <telerik:AjaxSetting AjaxControlID="radBtnSkip">
                            <UpdatedControls>
                                <telerik:AjaxUpdatedControl ControlID="pnlTab" LoadingPanelID="RadAjaxLoadingPanel1" />
                                <telerik:AjaxUpdatedControl ControlID="radBtnBack" LoadingPanelID="RadAjaxLoadingPanel1" />
                            </UpdatedControls>
                        </telerik:AjaxSetting>
                        <telerik:AjaxSetting AjaxControlID="radBtnSave">
                            <UpdatedControls>
                                <telerik:AjaxUpdatedControl ControlID="pnlTab" LoadingPanelID="RadAjaxLoadingPanel1" />
                                <telerik:AjaxUpdatedControl ControlID="pnlViewAgreement" LoadingPanelID="RadAjaxLoadingPanel1" />
                            </UpdatedControls>
                        </telerik:AjaxSetting>
                        <telerik:AjaxSetting AjaxControlID="radBtnNext">
                            <UpdatedControls>
                                <telerik:AjaxUpdatedControl ControlID="pnlTab" LoadingPanelID="RadAjaxLoadingPanel1" />
                            </UpdatedControls>
                        </telerik:AjaxSetting>
                    </AjaxSettings>
                </telerik:RadAjaxManager>
                <asp:Panel runat="server" ID="pnlRightContent" Height="600px" ScrollBars="Auto" Style="position: relative;">
                    <asp:Panel runat="server" ID="pnlTab">
                        <asp:HiddenField ID="previousTabHidden" runat="Server" />
 
                         
 
                        <telerik:RadTabStrip ID="radTabStripCompanyRegistration" runat="server" MultiPageID="radMultiPageCompanyRegistration"
                            AutoPostBack="true" SelectedIndex="0" ScrollChildren="True"
                            Skin="WebBlue">
                            <Tabs>
                                <telerik:RadTab runat="server" Text="Company Info" PageViewID="radPageViewCompanyInfo"
                                    Font-Bold="True" Selected="True">
                                </telerik:RadTab>
                                <telerik:RadTab runat="server" Text="Addresses" PageViewID="radPageViewAddresses"
                                    Font-Bold="True">
                                </telerik:RadTab>
                                <telerik:RadTab runat="server" Text="Contacts" PageViewID="radPageViewContacts" Font-Bold="True">
                                </telerik:RadTab>
                                <telerik:RadTab runat="server" Text="Company Details" PageViewID="radPageViewCompanyDetails"
                                    Font-Bold="True">
                                </telerik:RadTab>
                                <telerik:RadTab runat="server" Text="Operating Areas" PageViewID="radPageViewOperatingAreas"
                                    Font-Bold="True">
                                </telerik:RadTab>
                                <telerik:RadTab runat="server" Text="Credit Details" PageViewID="radPageViewCreditDetails"
                                    Font-Bold="True">
                                </telerik:RadTab>
                                <telerik:RadTab runat="server" Text="Agreement" PageViewID="radPageViewAgreement"
                                    Font-Bold="True">
                                </telerik:RadTab>
                                <telerik:RadTab runat="server" Text="Insurance" PageViewID="radPageViewInsurance"
                                    Font-Bold="True">
                                </telerik:RadTab>
                                <telerik:RadTab runat="server" Text="Summary" PageViewID="radPageViewSummary" Font-Bold="True">
                                </telerik:RadTab>
                            </Tabs>
                        </telerik:RadTabStrip>
                        <telerik:RadMultiPage runat="server" ID="radMultiPageCompanyRegistration" SelectedIndex="0"
                            Width="100%">
                            <!-- Company Info Tab Start-->
                            <telerik:RadPageView runat="server" ID="radPageViewCompanyInfo" BorderColor="#666666"
                                BorderWidth="1px" Height="500px" Selected="true">
                                <asp:Panel runat="server" ID="pnlCompanyInfo" CssClass="companyregpanel">
                                    <%--  <uc1:CompanyInfo ID="CompanyInfo" runat="server" />--%>
                                </asp:Panel>
                            </telerik:RadPageView>
                            <!-- Company Info Tab End-->
                            <!-- Addresses Tab Start -->
                            <telerik:RadPageView runat="server" ID="radPageViewAddresses" BorderColor="#666666"
                                BorderWidth="1px" Height="500px">
                                <asp:Panel runat="server" ID="pnlAddresses" CssClass="companyregpanel">
                                    <%--<uc2:addresses id="Addresses" runat="server" />--%>
                                </asp:Panel>
                            </telerik:RadPageView>
                            <!-- Addresses Tab End -->
                            <!-- Contact Tab Start -->
                            <telerik:RadPageView runat="server" ID="radPageViewContacts" BorderColor="#666666"
                                BorderWidth="1px" Height="500px">
                                <asp:Panel runat="server" ID="pnlContacts" CssClass="companyregpanel">
                                    <%--<uc3:contacts id="Contacts1" runat="server" />--%>
                                </asp:Panel>
                            </telerik:RadPageView>
                            <!-- Contact Tab End -->
                            <!-- Company Details Tab Start -->
                            <telerik:RadPageView runat="server" ID="radPageViewCompanyDetails" BorderColor="#666666"
                                BorderWidth="1px" Height="500px">
                                <asp:Panel runat="server" ID="pnlCompanyDetails" CssClass="companyregpanel">
                               <%--     <uc4:companydetails id="CompanyDetails1" runat="server" />--%>
                                </asp:Panel>
                            </telerik:RadPageView>
                            <!-- Company Details Tab End -->
                            <!-- Operating Ares Tab Start -->
                            <telerik:RadPageView runat="server" ID="radPageViewOperatingAreas" BorderColor="#666666"
                                BorderWidth="1px" Height="500px">
                                <asp:Panel runat="server" ID="pnlOperatingAreas" CssClass="companyregpanel">
                                  <%--  <uc5:operatingareas id="OperatingAreas1" runat="server" />--%>
                                </asp:Panel>
                            </telerik:RadPageView>
                            <!-- Operating Ares Tab End -->
                            <!-- Credit Details Tab Start -->
                            <telerik:RadPageView runat="server" ID="radPageViewCreditDetails" BorderColor="#666666"
                                BorderWidth="1px" Height="500px">
                                <asp:Panel runat="server" ID="pnlCreditDetails" CssClass="companyregpanel">
                                   <%-- <uc6:creditdetails id="CreditDetails1" runat="server" />--%>
                                </asp:Panel>
                            </telerik:RadPageView>
                            <!-- Credit Details Tab End -->
                            <!-- Agreement Tab Start -->
                            <telerik:RadPageView runat="server" ID="radPageViewAgreement" BorderColor="#666666"
                                BorderWidth="1px" Height="500px">
                                <asp:Panel runat="server" ID="pnlViewAgreement" CssClass="companyregpanel">
                             <%--       <uc7:agreement id="Agreement1" runat="server"></uc7:agreement>--%>
                                </asp:Panel>
                            </telerik:RadPageView>
                            <!-- Agreement Tab End -->
                            <!-- Insurance Tab Start -->
                            <telerik:RadPageView runat="server" ID="radPageViewInsurance" BorderColor="#666666"
                                BorderWidth="1px" Height="500px">
                                <asp:Panel runat="server" ID="pnlInsurance" CssClass="companyregpanel">
                                  <%--  <uc8:insurance id="Insurance1" runat="server"></uc8:insurance>--%>
                                </asp:Panel>
                            </telerik:RadPageView>
                            <!-- Insurance Tab End -->
                            <!-- View Summary Tab Start -->
                            <telerik:RadPageView runat="server" ID="radPageViewSummary" BorderColor="#666666"
                                BorderWidth="1px" Height="500px">
                                <asp:Panel runat="server" ID="pnlSummary" CssClass="companyregpanel" Height="460px"
                                    ScrollBars="Vertical">
                                   <%-- <uc9:summary id="Summary1" runat="server"></uc9:summary>--%>
                                </asp:Panel>
                            </telerik:RadPageView>
                            <!-- View Summary Tab End -->
                        </telerik:RadMultiPage>
                    </asp:Panel>
                    <hr style="color: #333; clear: both;" />
                    <table>
                        <tr>
                            <td align="center">
                                <telerik:RadButton ID="radBtnComment" runat="server" Text="View/Add Comments" ButtonType="LinkButton"
                                    AutoPostBack="False" BackColor="White" BorderColor="White" UseSubmitBehavior="false"
                                    ForeColor="#5b7993">
                                </telerik:RadButton>
                            </td>
                            <td>
                                 </td>
                            <td>
                                <telerik:RadButton ID="radBtnBack" runat="server" Text="Back" Width="50px" Visible="false"
                                   >
                                </telerik:RadButton>
                            </td>
                            <td>
                                 </td>
                            <td>
                                <telerik:RadButton ID="radBtnSkip" runat="server" Text="Skip" Width="50px" >
                                </telerik:RadButton>
                            </td>
                            <td>
                                 </td>
                            <td>
                                <telerik:RadButton ID="radBtnSave" runat="server" Text="Validate" Width="50px" >
                                </telerik:RadButton>
                            </td>
                            <td>
                                 </td>
                            <td>
                                <telerik:RadButton ID="radBtnNext" runat="server" Text="Next" Width="50px"
                                    UseSubmitBehavior="False">
                                </telerik:RadButton>
                            </td>
                            <td>
                                 </td>
                            <td>
                                <telerik:RadButton ID="radBtnFinish" runat="server" Text="Finish" Width="50px" UseSubmitBehavior="False"
                                    Visible="False">
                                </telerik:RadButton>
                            </td>
                            <td>
                                <asp:HiddenField ID="hdnCompanyId" runat="server" Value="0" />
                            </td>
                        </tr>
                    </table>
                    <div id="CompRegDiv" class="bigModule" visible="false" runat="server">
                        <table id="tblError" runat="server" visible="true">
                            <tr>
                                <td colspan="5">
                                    <div class="bigModuleBottom">
                                        <asp:Label ID="lblWarning" runat="server" Text="" CssClass="requiredsign"></asp:Label>
                                    </div>
                                </td>
                            </tr>
                        </table>
                    </div>
                </asp:Panel>
                <telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server">
                </telerik:RadAjaxLoadingPanel>
                <telerik:RadWindowManager ID="RadWindowManager1" runat="server" EnableShadow="true">
                    <Windows>
                        <telerik:RadWindow ID="CompanyCommentWindow" runat="server" Title="Company Comments"
                            Width="765" Height="500" Behaviors="close" />
                    </Windows>
                </telerik:RadWindowManager>
            </td>
            <!-- Right Content End -->
        </tr>
    </table>
    </div>
    </form>
</body>
</html>

Kamen Bundev
Telerik team
 answered on 01 Mar 2011
4 answers
103 views
I'm playing with your automaticspell example (see http://www.telerik.com/community/forums/aspnet-ajax/spell/outlook-like-functionality.aspx), and it works just great!  I've modified the example slightly so it's invoked from an ASP ImageButton click instead of the onblur event of a textbox.  So far, so good.

Now what I'd like to do is have multiple buttons invoke the spellCheck script, and the results of the callback depend on which button was clicked.  One way I was thinking of doing this would be to have different callbacks for each of the buttons, and change to the appropriate one for the spellService.add_complete.  Is there a way to remove a callback from the get_spellCheckService?
Henry
Top achievements
Rank 1
 answered on 01 Mar 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Bohdan
Top achievements
Rank 3
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Elliot
Top achievements
Rank 1
Iron
Iron
Iron
Sunil
Top achievements
Rank 1
Cynthia
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Bohdan
Top achievements
Rank 3
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Elliot
Top achievements
Rank 1
Iron
Iron
Iron
Sunil
Top achievements
Rank 1
Cynthia
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?