Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
73 views
HI,

I provided a textbox for user to find tree view nodes. The find functionality is working good, but I have couple of questions

1. After node.expand() and node.select(), how to make the tree view to load a page which is tied to that node. Each node on my tree view has NavigateURL set to a aspx page.

2. Is there a way to find the node based on partial value entered? For example if node text is 'Employee Engagements', I want to find the node if user enters 'Employee' or 'Engagements'.. I mean like text.contains..

Thanks
Plamen
Telerik team
 answered on 24 May 2012
1 answer
137 views
Hello Telerik,

Is there a way to make floating RadDocks self-adjust its' Top and Left properties when the size of the window changes? Maybe, programatically change these properties relative to an enclosing "box" or area in response to a window-size-changed event?

Thanks for any input.

Virgil
Slav
Telerik team
 answered on 24 May 2012
1 answer
91 views
In our RadSpell configuration, we have chosen NOT to ignore repeated words.  As a result, when the spell check runs, it identifies and highlights the repeated word.  However, there is no option to remove the word and clicking on the "Change" button only updates the word to the current suggestion which, assuming the word is spelled correctly, is the same word so the repeated word still exists.  The only way to remove the repeated word when the spell checker finds it is to manually delete the word.  Is there a way to configure the RadSpell that provides an option to remove the repeated word when one is found? 

Here is the RadSpell configuration we are using:

 <telerik:RadSpell
    runat
="server"
    ID
="radSpellChecker"
    AllowAddCustom
="false"
    ButtonType
="None"
    DialogsCssFile
="~/App_Themes/TelerikStyles/Spell/RadSpellDialog.css"

    DictionaryLanguage
="en-us"
    EnableEmbeddedBaseStylesheet
="false">

    EnableEmbeddedSkins="false"

    FragmentIgnoreOptions
="None"
    Skin
="XYZ"

    SpellCheckProvider
="PhoneticProvider"
    SupportedLanguages
="en-US,English"
        WordIgnoreOptions="UPPERCASE,WordsWithNumbers"
</
telerik:RadSpell>


Thanks,
Curtis
Rumen
Telerik team
 answered on 24 May 2012
3 answers
311 views
Hi

I am currently working on upgrading our application to your latest controls. We are moving from using Telerik.WebControls (Class controls) to the Telerik.Web.UI (Ajax controls)

I have got the application compiling and I am working through the errors the application is throwing.

I have come into a stumbling block when the pages load which contain the below syntax:

RadAjaxManager.AjaxSettings.AddAjaxSetting(RadAjaxManager, updatePanel, AjaxLoadingPanel);

Obviously the parameters that are passed are different between pages however i am constantly getting an Object reference not set to an instance of an object error message and have been unable to find any relevant help on this.

The AddAjaxSetting is varying between being defined in the Page_Load, On_Init and On_PreRender methods.

If you need any more information please let me know.

Regards,
Jonathan

Blop
Top achievements
Rank 1
 answered on 24 May 2012
1 answer
97 views
Hi all,
I am updating my grid data using update command. I use edit form template,I want the parent item of the edited item.How can I get this?
Please help.

Thanks in advance.
Shinu
Top achievements
Rank 2
 answered on 24 May 2012
1 answer
413 views

Hi Team,

We are using masked textbox in few important places in our system for different type of input validation.

Now, i am dead stuck with how to i validate the "Valid" Decimal value with masked text box.

"#" or "9" format must need the that many number of digits.

e.g. valid decimal numbers are:
111.124
11.12455
11111.12455

Making mask "######.######" like that, must require user to type in leading "0(zero)", which is real pain.

If you could be of any help solving this mystry will be great help.

Thanks,
J. Ramesh
Martin
Telerik team
 answered on 24 May 2012
3 answers
1.6K+ views
Hi, I’m updating an ASP.NET AJAX application so that the jQuery library loaded by the Telerik.Web.UI assembly can be re-used by other scripts. I have two questions which I’d appreciate some advice on:

I have a RadScriptManager on my master page and need to include a private javascript file that can be used by all content pages. Should I include the script as a reference within the RadScriptManager or should I use conventional script tags after the RadScriptManager? I’ve illustrated both methods below. Both seem to work but what is the recommended approach?

METHOD 1
<telerik:RadScriptManager ID="rsmMain" runat="server" >
<Scripts>
<asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.Core.js" />
<asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.jQuery.js" />
<asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.jQueryInclude.js" />
</Scripts>
</telerik:RadScriptManager>
<script type="text/javascript" src="../Scripts/Utility.js"></script>

METHOD 2
<telerik:RadScriptManager ID="rsmMain" runat="server" >
<Scripts>
<asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.Core.js" />
<asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.jQuery.js" />
<asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.jQueryInclude.js" />
<asp:ScriptReference Path="~/Scripts/Utility.js" />
</Scripts>
</telerik:RadScriptManager>

My second question relates to adding a client-side script from a page programmatically. Previously I used the RegisterStartupScript() method of ClientScriptManager to add a script from code behind but I note from some forum posts that it’s suggested you should use RadScriptManager.RegisterStartupScript() instead. What’s the difference and is there a recommended approach?

Regards, Ian
Genady Sergeev
Telerik team
 answered on 24 May 2012
6 answers
152 views
Hi!

I am using RadGrid. There is GridButtonColumn(CommandName = "DeleteCommand") for deleting a row.    
onCommand: function (sender, eventArgs) {
   var commandName = eventArgs.get_commandName();
   if (commandName == "DeleteCommand") {
      var dataItems = eventArgs.get_tableView().get_dataItems();
      var dataItem = dataItems[eventArgs.get_commandArgument()].get_dataItem();
      deleteRow(dataItem);
   }

It works, but after deleting grid is rebinded. How can I turn off auto rebind?
I've found "Commands that invoke Rebind() implicitly" topic and change the command name. But It doesn't work.
I tried to use eventArgs.set_cancel(true). But It doesn't work too.

Thanks for your help! 
Den
Top achievements
Rank 1
 answered on 24 May 2012
1 answer
462 views
Hello Team,

I am using Telerik Image Editor. I want to save and overwrite file on custom path using RadImageEditor_ImageSaving Server side event.

 when I modify image and try to save it on same path, I am getting error "A generic error occurred in GDI+"

 Please Note: I want to maintain only two versions of file 1) Original file 2) Updated file

  protected void RadImageEditor1_ImageSaving(object sender, ImageEditorSavingEventArgs args)
        {


           
            var context = new EBABBLEEntities();


            Account Lo_Account = (from acc in context.Accounts where acc.Id == cls_Session.User.Id select acc).FirstOrDefault();
            System.Drawing.Image newImage = args.Image.Image;


            string filename = Path.GetFileNameWithoutExtension(ImageURL);
            int indexer = filename.IndexOf("_Edited");


            if (indexer != -1)
            {
                newImage.Save(Server.MapPath("~" + Lo_Account.files_path + "/My_DigiGLUS/") + filename.Substring(0, (filename.Length) - 7) + "_Edited" + Path.GetExtension(ImageURL));


            }
            else
            {
                newImage.Save(Server.MapPath("~" + Lo_Account.files_path + "/My_DigiGLUS/") + Path.GetFileNameWithoutExtension(ImageURL) + "_Edited" + Path.GetExtension(ImageURL));
            }


          
            args.Cancel = true;
            DigiId = Convert.ToInt32(Request.QueryString["digigluId"].ToString());
            DigiGLUs Editdigiglu = (from digi in context.DigiGLUs where digi.Id == DigiId select digi).FirstOrDefault();


            if (indexer != -1)
            {
                Editdigiglu.NewImageName = filename.Substring(0, (filename.Length) -7) + "_Edited" + Path.GetExtension(ImageURL);




            }
            else
            {
                Editdigiglu.NewImageName = Path.GetFileNameWithoutExtension(ImageURL) + "_Edited" + Path.GetExtension(ImageURL);
            }




            context.SaveChanges();
}
Please review the code, help me to find where I am doing wrong. I really appreciate your help to solve this issue....
Rumen
Telerik team
 answered on 24 May 2012
1 answer
265 views

Hi there

Can anybody assist with this problem? I have a radEditor in an ASP.NET page using a MasterPage, which as you will know, uses ContentPlaceHolder controls to hold other controls, and which also prefixes the declared control id with that of the ContentPlaceHolder in question, e.g., from a server-side id of 'myRadEditor' the client-side id would end up being something along the lines of:

'ct100_myContentplaceholder_myRadEditor'

When it comes to using the client-side $find command, all of the examples I can find show the use of the following syntax:

<%= myServerSideID.ClientID %> 

but as far as I know, this is only valid for Javascript embedded within the <SCRIPT></SCRIPT> 'node' of the the .aspx file. However, I have a set of external Javascript script files added dynamically and programmatically, rather than specified declaratively in the aspx files in question.

So my question is, how would I go about using the $find command to get a reference to a radEditor control, or indeed any telerik control, using a wildcard search for the server-side id (e.g., 'myRadEditor') from within an 'external' Javascript file, given that the

<%= ... %> syntax is not available?

Thanks very much if you can advise!

Regards

Martin
Telerik team
 answered on 24 May 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
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?