Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
75 views
Hi,

I am using RadControls for ASP.NET AJAX Q3 2010.
I my application scenario i want to create Sliding Panel Bar & and inside Sliding Panel Bar there is drag drop control.

Drag drop control using <ajaxToolkit:ToolkitScriptManager></ajaxToolkit:ToolkitScriptManager>

but Sliding Panel required <telerik:RadScriptManager></telerik:RadScriptManager>

I am using it like this

<telerik:RadScriptManager ID="ScriptManager" runat="server">
        <Scripts>
            <asp:ScriptReference Name="PreviewScript.debug.js" Assembly="Microsoft.Web.Preview" />
            <asp:ScriptReference Name="PreviewDragDrop.debug.js" Assembly="Microsoft.Web.Preview" />
            <asp:ScriptReference Path="~/Scripts/ItemDragDrop.js" />
        </Scripts>
</telerik:RadScriptManager>


but my application given an error:
Microsoft JScript runtime error: AjaxControlToolkit requires ASP.NET Ajax 4.0 scripts. Ensure the correct version of the scripts are referenced. If you are using an ASP.NET ScriptManager, switch to the ToolkitScriptManager in AjaxControlToolkit.dll.

If I use <ajaxToolkit:ToolkitScriptManager></ajaxToolkit:ToolkitScriptManager> there is no error with drag drop. But Slider Panel required <telerik:RadScriptManager></telerik:RadScriptManager>.

How to overcome this issue.
Please help me asap.
Regds.
Partha
Prangadj
Top achievements
Rank 1
 answered on 23 Feb 2011
1 answer
69 views
Hi,

I'm not sure where else to submit this so I figure I'd place it here.

There appears to be a minor omission in the JavaScript for the GridAttachmentColumn online example. Visit the example here.

Examine the conditionalPostback function: 

function conditionalPostback(sender, eventArgs)
{
    //The variable 'theRegexp' is never used
    var theRegexp = new RegExp("\.UpdateButton$|\.PerformInsertButton$", "ig");
    var eventArgument = eventArgs.get_eventArgument();
      
    if (eventArgument.indexOf("Update") > -1 || eventArgument.indexOf("PerformInsert") > -1)
    {
        if (upload && upload.getFileInputs()[0].value != "")
        {
            eventArgs.set_enableAjax(false);
        }
    }
}

Draw your attention to the variable named theRegexp which appears to be a Regular Expression container. The variable is defined, but it is never used. I suspect that it was supposed to have been used in the If block that follows, like this:

if (eventArgs.get_eventTarget().match(theRegexp)){
    //Disable AJAX functionality
}

...such that the final block actually reads like this:

function conditionalPostback(sender, eventArgs)
{
    //This is the corrected version 
    var theRegexp = new RegExp("\.UpdateButton$|\.PerformInsertButton$", "ig");
    var eventArgument = eventArgs.get_eventArgument(); //this variable may not be needed either
      
    if (eventArgument.match(theRegexp)) //or eventArgs.get_eventTarget().match(theRegexp)
    {
        if (upload && upload.getFileInputs()[0].value != "")
        {
            eventArgs.set_enableAjax(false);
        }
    }
}

While the code that was there before would work too, it can prove to be a little confusing for people who aren't terribly familiar with JavaScript who would include that variable definition for no good reason.

Cheers,
John
Veli
Telerik team
 answered on 23 Feb 2011
4 answers
240 views
hello,

i am just starting w/ the RadWindow. im using it to load a .ASPX page up, in which the user does some things and clicks a Save Button.

if the operation is successful, how do i close the RadWindow from its source .ASPX's code-behind?


thanks,
matt
Svetlina Anati
Telerik team
 answered on 23 Feb 2011
0 answers
76 views
Hi team,

I am using RadTreeView in my project.the hierarchy is as below.
  • In Master page on Left hand side i am having the treeview.on right hand side having contentpages displaying the information related to the seleted node.
  • In TreeNode from context menu will go and add the records dynamically.when want to add the newnode clicks add from the context menu then the node is added and related content page is displayed on right hand side will fill the details and click on save then the node gets saved in DB.
  • Maintaining the state of the treeview in session by using getXml(),and setXml() of the treeview.
  • As of now in our treeview there is drag and drop functionality the end user will drag and drop the nodes from one parent to another parent and so on......and when clicks on save then only need to update the relations in the DB.how can i maintain the changes done by the user by drag and droping until they clicks on save.what nodes has been changed what nodes to be updated in the database.

 

Naveen
Top achievements
Rank 1
 asked on 23 Feb 2011
1 answer
63 views
Hello.

I am curious if the RadSpell will work for our scenario. I have looked at the demos, but I didn't see anything to determine if it would.

Basically we have 3 html forms: a menu form, that houses buttons such as save, exit, clear controls. This is where I would like for the RadSpell button to be located. The second form is the html content form, which has all of the user controls. The third form has a frame which holds the other two pages. I'm wondering if it would be possible to spell check items on a completely different html page than where the RadSpell control is located, and if so, how hard would it be to set this up?

Thanks
Rumen
Telerik team
 answered on 23 Feb 2011
1 answer
13 views
I believe I've discovered a fairly severe error in the Rad Editor.  I discovered this while using DNN 5.6.1, but the Rad Editor demo on this website behaves the same way.  This bug appears in Firefox, but not in Internet Explorer.

Set the editor to use <p> paragraph tags instead of <br> break tags, by setting the following:
<property name="NewLineBr">false</property>

Within the editor, add an image to the blank content area.
The image should display correctly.  Press the Enter key to create a new paragraph after the image, and the image should "disappear."

If you inspect the source code, you should notice that the image tag has been replaced by the &nbsp;

Again, this bug seems to only be in Firefox.
Rumen
Telerik team
 answered on 23 Feb 2011
3 answers
493 views
Hello telerik team,
I want to implement such a function: When right click different element , add different contextmenu item to the bottom of original menu items and can fire some costomer method when clicking it.

For Example:
Now, I have two elements, the one is <input type='text'> , another is <input type='radio'> ,  when right click the first one, add a menu item called "Edit textbox" to the contextmenu, when click it, run the customer function "OpenTextEditWindow",  and the second one is similar with the first one. How should I do?

I am looking forward to your reply

                                                                                                                                                                            alexzchen
Rumen
Telerik team
 answered on 23 Feb 2011
3 answers
55 views
Is it possible to hide the filter controls depending on the item count of the RadGrid, or if the pager is shown?

Ideally I don't want to show the filter boxes if the results already fit on one page, has anyone done this before?

Cheers

Jon
Jonathan
Top achievements
Rank 1
 answered on 23 Feb 2011
22 answers
248 views
hi
I work with the AdvancedForm Excample. I extend it with a Dropdown, with autopostback. After the Postback all Data Fields (Start,end etc.) are empty.

What can be my mistake?

Regards Markus

 

Peter
Telerik team
 answered on 23 Feb 2011
1 answer
136 views
Hey all,

A common subject is how to validate that a RadListBox with CheckBoxes="true" have at least one item checked (not selected).

Here is a post that explains a good solution to make it work.
http://www.telerik.com/community/forums/aspnet-ajax/listbox/radlistbox-checkboxes-true-and-requiredfieldvalidator.aspx

The solution above says we need to remove the ControlToValidate from the CustomValidator attached to the RadListBox.

This would work great unless you happen to use validation callout extenders to show a tooltip over invalid fields.  In this case, in order to position the tooltip, the validator must have a _controlToValidate property.

So how do we get the RadListBox to work with validation callout extenders?  In our case we dynamically add our validators to the page with extension methods.  I suppose we could add a custom attribute to the validators that would be like ControlToValidate2="rlbStates" and the callout extender could check this property if ControlToValidate was null...

Any ideas that are more "built-in" and less "hacky"?

Thanks!
Thad
Dimitar Terziev
Telerik team
 answered on 23 Feb 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?