Telerik Forums
UI for ASP.NET AJAX Forum
0 answers
43 views
Here is the below code, which i used. 

private string GetNextWrongWord() {
//SpellChecker spell = new SpellChecker(Server.MapPath("~/App_Data/RadSpell"));
spellCheck.Text = Session["Spell"].ToString();
if(ddlLanguage.SelectedValue.ToString() == "1") {
spellCheck.DictionaryLanguage = "en-US";
} else if(ddlLanguage.SelectedValue.ToString() == "2") {
spellCheck.DictionaryLanguage = "fr-FR";
} else if(ddlLanguage.SelectedValue.ToString() == "3") {
spellCheck.DictionaryLanguage = "de-DE";
} else if(ddlLanguage.SelectedValue.ToString() == "4") {
spellCheck.DictionaryLanguage = "es-ES";
} else if(ddlLanguage.SelectedValue.ToString() == "5") {
spellCheck.DictionaryLanguage = "en-AU";
} else {
spellCheck.DictionaryLanguage = "en-GB";
}
string sWrongWord = "";
spellCheck.CheckText();
if(Flagignore == 2) {
int k = 0;
SpellCheckErrors errors = spellCheck.Errors;
foreach(SpellCheckError error in errors) {
sWrongWord = error.MistakenWord.ToString();
try {
if(sWrongWord == strIgnoreAllWords[k].ToString()) {
sWrongWord = "";
} else {
bool a = Array.Exists(strIgnoreAllWords, element => element == sWrongWord);
if(a == true) {
sWrongWord = "";
} else {
return sWrongWord;
}
}
} catch(Exception) {
break;
}
k++;
}
} else {
int k = 0;
SpellCheckErrors errors = spellCheck.Errors;
foreach(SpellCheckError error in errors) {
sWrongWord = error.MistakenWord.ToString();
try {
strIgnoreNewWords = Session["IgnoreWord"].ToString().Split(',');
if(strIgnoreNewWords != null) {
bool a = Array.Exists(strIgnoreNewWords, element => element == sWrongWord);
if(a == true) {
sWrongWord = "";
} else {
return sWrongWord;
}
} else {
if(sWrongWord == strIgnoreWords[k].ToString()) {
sWrongWord = "";
} else {
break;
}
}
} catch(Exception) {
break;
}
k++;
}
}


return sWrongWord;
}

So please help me.
Venky
Top achievements
Rank 2
 asked on 20 Sep 2012
8 answers
496 views
how to find out the version of telerik rad editor which we are using in the project, through code ?
Venky
Top achievements
Rank 2
 answered on 20 Sep 2012
4 answers
120 views
Hello,

I have telerik grid on my web page , which get created dynamically.
i have vertical scrollbar for th same , which is working fine on Internet Explorer but that is not working on Chrome and Mozilla.

ANy solution?

i have added some part of my code below. Not all but some part.

objGridView.ClientSettings.Scrolling.FrozenColumnsCount = 1;
  
objGridView.ClientSettings.Scrolling.AllowScroll =  true
   
objGridView.ClientSettings.Scrolling.UseStaticHeaders = true
   
objGridView.ClientSettings.Scrolling.SaveScrollPosition =  true;
  
Panel objPanel = ((Panel)this.Parent.FindControl("MasterPlaceHolder").FindControl("ucModel1").FindControl("pnlModel"));
  
objPanel.Controls.Clear();
  
objPanel.Controls.Add(objGridView);
Vargis
Top achievements
Rank 1
 answered on 20 Sep 2012
3 answers
97 views

Hi,

I have a user control that is loaded dynamically from another page using a placeholder. I want to show a modal RadDock (defined in the .ascx page) when the user clicks a button that is contained in the user control. I have tried with the modal extender and the RadDock is showed, but all the page and the user control gets disabled including the RadDock itself (this not happens if I show a modal RadDock from a single .aspx page without user controls).

Is it possible to use modal RadDock from a user control, without the RadDock getting disabled after showing?
Slav
Telerik team
 answered on 20 Sep 2012
1 answer
79 views
Hello.
I have a problem with radcombobox client event.

When I change the combobox item by keyboard up/down arrow key,
selectIndexchanged event was not fired.
but It worked When I hit the Enter key or TAB key.

I found update combobox value when radcombobox lost focus.
Is it correct work?

I would like to fire selectIndexchanged client event by keyboard.

Please let me know how to solve this issue. thank you.
Nencho
Telerik team
 answered on 20 Sep 2012
3 answers
119 views
I am wondering how I can accomplish something like what is in the picture
Marin Bratanov
Telerik team
 answered on 20 Sep 2012
1 answer
116 views
I just upgraded my development system (Win8, VS2012, SQL Server 2008 R2) to RadControlsForAspNetAjax 2012_2_912.  The installation went fine.

I opened an existing project that uses this product and, when I did, I was notified that there was an upgrade to your controls available and asked if I wanted to upgrade the project.  I said 'yes' and the upgrade ran fine.

I went ahead and loaded the project (a .net web site) and ran it.  The default page wouldn't even display and I received the .net yellow screen of death with the message "Telerik.Web.UI.RadCOmboBox with ID='LanguageSelectorComboBox' was unable to find an embedded skin with the name 'Metro'. Please make sure that the skin name is spelled correctly and.....you may refer to the attached screen capture for the details.

If you folks provide a mechanism to upgrade a specific project to the newly installed version, why does it never work correctly after the upgrade?

Can you tell me what to do to resolve this specific problem and how to avoid it in the future when installing your upgrades?  This also happened the last time I went through this.

If your upgrade procedures are not going to work why do you even provide them?

Lynn
Kate
Telerik team
 answered on 20 Sep 2012
1 answer
194 views

if (newgene == "0")
       {
           MainPlaceHolder.Controls.Add(holder);
       }
       else
       {
           MainPlaceHolder.Controls.Add(new LiteralControl("<br>"));
       }
See The Image ,
i want to space between the dropdown .
Thanks Advance,
Mohamed.
mohamed
Top achievements
Rank 1
 answered on 20 Sep 2012
2 answers
196 views
Hello,
I'm trying to develop a web part for SharePoint 2010 that use the Telerik controls.
I would like to deplay all the Telerik assembly in GAC, but I have a problem. When I run my application I receive this error (in the SharePoint 2010 logs):

System.InvalidOperationException: Telerik.Web.UI.RadFormDecorator with ID='RadFormDecorator1' was unable to find an embedded skin with the name 'Simple'. Please, make sure that the skin name is spelled correctly and that you have added a reference to the Telerik.Web.UI.Skins.dll assembly in your project. If you want to use a custom skin, set EnableEmbeddedSkins=false. 

I don't use custom skins, but only default skins. If I put the assembly Telerik.Web.UI.Skins.dll in the SharePoint 80\bin directory, the web part works fine. Anyway I don't want to put the skin assembly on the bin folder because I can't support multiple version of the Telerik components and I don't know if the the destination SharePoint have already a Telerik version installed.

How can I fix this problem? Can I load the skin assembly from GAC?

Thanks
Giovanni
Top achievements
Rank 1
Iron
Iron
Iron
 answered on 20 Sep 2012
3 answers
92 views

 

I have one problem will explain it

I have two rad grid
The first grid hierarchy contain classes and class_id is primary key ,when expand one class
will show all the student in this class
The second gride has students the primary key student_id
I want drag and drop student from second grid to students in one class in first grid
Note: the students in first grid expanded from classes
also I want when I dragdrop the student
I want to get in which class_id

  The code below to retrieve student_id from second radgrid

 

Protected Sub RadGrid_Students_RowDrop(sender As Object, e As Telerik.Web.UI.GridDragDropEventArgs) Handles RadGrid_Students.RowDrop
        If e.DraggedItems.Count > 0 Then
            Dim a As String = e.DraggedItems(0).GetDataKeyValue("Client_id")
 
        End If
    End Sub


How retrieve in which class_id from destination radgrid

Tsvetina
Telerik team
 answered on 20 Sep 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?