Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
182 views
This all works fine on the first click, it fixes all the typos for all available texboxes.

When I click spellcheck a second time an error in the ScriptResource.axd where this.get_element() is null.  Any ideas what I can do to fix this problem. It seems to be my only hangup

Web.Config:

      <add name="Telerik_Web_UI_DialogHandler_aspx" verb="*" preCondition="integratedMode" path="Telerik.Web.UI.DialogHandler.aspx" type="Telerik.Web.UI.DialogHandler" /> 
      <add name="Telerik_Web_UI_SpellCheckHandler_axd" verb="*" preCondition="integratedMode" path="Telerik.Web.UI.SpellCheckHandler.axd" type="Telerik.Web.UI.SpellCheckHandler" /> 
 

MasterPage:

<telerik:RadSpell ID="RadSpellControl" runat="server" ButtonType="None" SupportedLanguages="en-US,English" /> 
<asp:Button ID="Button1" runat="server" Text="SpellCheck" OnClientClick="return StartSpellCheck();" 

Javascript:

    <script type="text/javascript"> 
        function MultipleTextboxSource(sources) { 
            this._sources = sources; 
            this.get_text = function() { 
                var texts = []; 
                for (var i = 0; i < this._sources.length; i++) { 
                    texts[texts.length] = this._sources[i].get_text(); 
                } 
                return texts.join("<controlSeparator><br/></controlSeparator>"); 
            } 
            this.set_text = function(text) { 
                var texttexts = text.split("<controlSeparator><br/></controlSeparator>"); 
                for (var i = 0; i < this._sources.length; i++) { 
                    this._sources[i].set_text(texts[i]); 
                } 
            } 
        } 
        function StartSpellCheck() { 
         
            var radSpell = $find('ctl00_ctl00_RadSpellControl'); 
            var textboxes = $(':text'); 
            var HtmlElementSources = []; 
            for (var i = 0; i < textboxes.length; i++) { 
                HtmlElementSources[i] = new Telerik.Web.UI.Spell.HtmlElementTextSource($get(textboxes[i].id)); 
            } 
            radSpell.set_textSource(new MultipleTextboxSource(HtmlElementSources)); 
            radSpell.startSpellCheck(); 
            return false; 
        } 
        function SetLanguage(e) { 
            ee = e || window.event; 
            var target = e.target || e.srcElement; 
            var radSpell = GetRadSpell('ctl00_ctl00_RadSpell1'); 
            radSpell.DictionaryLanguage = target.value; 
        } 
    </script> 

Error (on line 93, this.get_element() is null)

87 this.set_element({value:""}) 
88 }else{if(b.nodeName=="IFRAME"&&b.contentWindow!=null {this.set_element(b.contentWindow.document.body) 
89 }}b=null 
90 },dispose:function(){this._element=null; 
91 Telerik.Web.UI.Spell.HtmlElementTextSource.callBaseMethod(this,"dispose") 
92 },get_text:function(){var d=""; this.get_element() is null 
93 if(this.get_element().value!=null){try{d=this.get_element().value 
94 }catch(c){alert("Error getting text from control.\n"+c.message) 
95 }}else{if(this.get_element().innerHTML!=null {try{d=this.get_element().innerHTML 
96 }catch(c){alert("Error getting HTML from the control.\n"+c.message) 
97 }}else{alert("No value or innerHTML attribute. Cannot access text.") 
98 }}return d  



Rumen
Telerik team
 answered on 08 Jan 2010
2 answers
594 views
I have a web page where I display the versions of dlls which are deployed in our different environments -- how do I get the version/build # in c# for the telerik web.ui dll.

Thanks,
Todd.
Todd A
Top achievements
Rank 1
 answered on 08 Jan 2010
4 answers
395 views

I seem to be having a problem when I have a RadAjaxPanel that contains a submit button. Whenever that submit button is click, Page_load gets fired twice. First time around IsPostBack is false, then it gets call the second time around where IsPostBack is true. When I took that button outside of the RadAjaxPanel, then IsPostBack is working properly.

In otherwords, i need to have a way of differentiating if it's a Ajax Request.
Please advice.

In my aspx page, i have the following sample:-

<telerik:RadAjaxPanel runat="server" ID="RadTestPanel" Width="100%">  
<asp:Button ID="btnTest" runat="server" Text="Add" Font-Names="Calibri" 
                                                            Width="60px" OnClick="btnTest_Click" /> 
</telerik:RadAjaxPanel> 

Now in my code behind i have the following...
protected override void Page_Load(object sender, EventArgs e)  
{  
  if (!this.IsPostBack) //Problem lies here such that it's always false when click within the RadAjaxPanel and get's called twice. Why is that?  
  {  
    DoSomeFirstTimeInitialization();  
  }  
} 


Stanley
Top achievements
Rank 1
 answered on 08 Jan 2010
1 answer
150 views
2 ComboBoxes in a Form:

                        <telerik:RadComboBox ID="ClientCB" DataSourceID="ClientList" DataTextField="Client"

                            DataValueField="ClientKey" AppendDataBoundItems="true" runat="server" Skin="Outlook"

                            Width="250px" AutoPostBack="true"

                            onselectedindexchanged="ClientCB_SelectedIndexChanged">

                        </telerik:RadComboBox>


                        <telerik:RadComboBox ID="UsrCB" DataSourceID="TrainUserList" DataTextField="FullName"

                            DataValueField="ID" AppendDataBoundItems="true" runat="server" Skin="Outlook"

                            Width="250px" AutoPostBack="true" onselectedindexchanged="UsrCB_SelectedIndexChanged">

                        </telerik:RadComboBox>


I want a selection in the ClientCB to force the UsrCB to reload with new data. Here are the DataSources:

    <asp:SqlDataSource ID="ClientList" runat="server" ConnectionString=""

        SelectCommand="Generic_ClientList" SelectCommandType="StoredProcedure">

    </asp:SqlDataSource>

    <asp:SqlDataSource ID="TrainUserList" runat="server" ConnectionString=""

        SelectCommand="Train_TrainUserList" SelectCommandType="StoredProcedure">

        <SelectParameters>

            <asp:Parameter DefaultValue="0" Name="ClientKey" Type="Int32" />

        </SelectParameters>

    </asp:SqlDataSource>


This is my server side code:

    protected void ClientCB_SelectedIndexChanged(object o, Telerik.Web.UI.RadComboBoxSelectedIndexChangedEventArgs e)

    {

        TrainUserList.SelectParameters["ClientKey"].DefaultValue = e.Value;

        

        RadComboBox ThisCB = o as RadComboBox;

        RadComboBox TUsrCB = ThisCB.Parent.FindControl("UsrCB") as RadComboBox;

        TUsrCB.DataBind();

    }


Everything looks to be right but the data in the UsrCB never changes. I KNOW the proc works because I have an initial set of data in it. But it never changes.

?????????

Joe B





Genady Sergeev
Telerik team
 answered on 08 Jan 2010
1 answer
193 views
Hey there

There is a bug that seems to affect deleting appointments
When I bind teletik appointment objects to the scheduler, I use Guids for both the ID and Parent Recurrence Id (when appropriate) Properties.

In the delete appointment method when I am deleting an exception occurrence that has a parent recurrence Id, as it stands I need to do this in order for the web service appointment framework to successfully locate the parent appointment:

            if (appointmentData.RecurrenceParentID != null) 
            { 
                appointmentData.RecurrenceParentID = new Guid?(new Guid(appointmentData.RecurrenceParentID.ToString())); 
            } 

Otherwise the parent Id is a string and a match is not found and an error thrown.
The ID property, which I bind as a Guid, comes back as a Guid as expected in the AppointmentData object.

Also as a side note, when does the RemoveRecurrenceExceptions get called in my web service?
What do I have to do to Remove a Recurrence Exception?
I just made the code to create  recurrence exceptions but when I delete that appointment it just deletes it as a normal appointment which is fine. I just need to make sure I have the case when I remove recurrence exceptions handled as well.


Regards.
Dimitar Milushev
Telerik team
 answered on 08 Jan 2010
1 answer
125 views
There are quite a few issues with the layout in IE8.  I attached a screen shot from the telerik examples page viewed from IE8.  I see the same issues when using it in projects on my machine.

Are there any fixes coming soon?
Rumen
Telerik team
 answered on 08 Jan 2010
3 answers
75 views
Hello Everyone, I have a grid with different columns like community name, agent name, member name, community type, homes available, etc,.....I am getting all the requred information in one grid.
INSTEAD I WANT INFORMATION FOR EACH COMMUNITY NAME SPERATELY.  for example I want one gridview for community A and another gridview for community B. I want to repeat complete gridview not just rows and columns.
Zia
Top achievements
Rank 1
 answered on 08 Jan 2010
1 answer
169 views
I'm wondering if anyone can shed a little light on some issues i' m having with using an AdvancedForm control as the insert and edit templates in conjunction with AdvancedForm.js

I'm comparing the behaviour with my app and the demos online.

The problem I'm seeing is with regards to whether or not i'm editing the master or child occurrence.

In the telerik demos
  • when i edit a series on any appointment the appointment state is 1 Master, recurrecne rule intact, no parent Id, ID is int
  • when i edit only an occurrence the state is 3 Exception, no rule, parent Id is original int ID, Id is originalInt_#

Should the appointment type when editing for a single occurrence be an Exception before the exception appointment has been created?

In my app right now:
  • when i edit a series on only the first appointment: state is 1 (Master), recurrence rule intact, no parent Id, ID is Guid (seems fine)
  • when i edit series on a child occurrence: state is 2 (Occurrence), no recurrence rule, parent Id is parent Guid_IndexInt
  • when i edit the single occurrence on a child again state is 2 (Occurrence), no recurrence rule, parent Id is parent Guid_IndexInt 

The recurrence form is not populated properly when editing a series of a child occurrence.
Although my app is not working proeprly it seems correct for a child occurrecne to be type 2 when editing a single occurrecne to create a tyep 3 exception...

Why is there a difference from what i see in my app and the online demos?
I am using the AdvancedForm.ascx control and the AdvancedForm.js and the code is the same from what you show online since I got it from telerik site.

What is the meaning of a recurrecen Starte 2?

Which flow of events that i present is correct?
I would think the demos are correct?


Please help.
Dimitar Milushev
Telerik team
 answered on 08 Jan 2010
4 answers
276 views
Is there a way to open the context menu of the tree view using the keyboard (in order to make it 508 compliant)? Even if it does not open next to the  node it's fine.

Thanks for your help,
Som

Kai
Top achievements
Rank 1
 answered on 08 Jan 2010
3 answers
340 views
Im using the FileExplorer / First Look from the TELERIK RAD CONTROLS. I have enabled all thedefault features for the RADFILEEXPLORER to true as a reslut of which Im able to MOVE, DELETE, RENAME , UPLOAD & CREATE NEW FOLDER with in the directory structure.

But , I want to store the absolute path for the newly created folder on to the SQL SERVER DATABASE using the stored procedures. Im not able to do so.

Please help how to save the folder path with in the database whenever I created a new folder.

Ajay
Fiko
Telerik team
 answered on 08 Jan 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?