Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
142 views
I am having a problem with the AfterClientCallBackError. I expect my function to get executed after a callback error was raised but my function was not called, and a default javascript error message was shown instead. (I am seeing something like "UnAuthorized[]_$$_") in the javascript alert. Are there any other event(s) that I can subscribe to to handle the callback error?

I am using Telerik.Web.UI (2008.1.619.20). The AfterClientCallBackError function was defined like this:

function AfterClientCallBackError(node) 
{ 
   alert("The error occured when you tried to expand the " + node.Text + " node"); 
} 

The nodes' ExpandMode were set to ServerSideCallBack and I already tried putting the function before and after the treeview markup but both had the same problem.

<telerik:RadTreeView ID="_uscRadTrvtAuthority" runat="server" AfterClientCallBackError ="AfterClientCallBackError" OnClientContextMenuShowing="ClientContextMenuShowing" EnableDragAndDrop="true" AllowNodeEditing="true" OnNodeEdit="_uscRadTrvtAuthority_NodeEdit" Skin="Web20" ShowLineImages="False" CssClass="RadTreeView" OnClientNodeEditing="OnClientNodeEditing_uscRadTrvtAuthority" OnClientContextMenuItemClicking='OnClientContextMenuItemClicking'> 
                            <ContextMenus> 
                                <telerik:RadTreeViewContextMenu ID="ContextMenu1"> 
                                    <Items/> 
                                </telerik:RadTreeViewContextMenu> 
                            </ContextMenus> 
                            <CollapseAnimation Type="OutQuint" Duration="100"></CollapseAnimation> 
                            <ExpandAnimation Duration="100"></ExpandAnimation> 
                        </telerik:RadTreeView> 

Please help.
randz
Top achievements
Rank 1
 answered on 21 Oct 2009
0 answers
76 views
In times past I've successfully implemented drag & drop capability with the RadTreeView.  But now I have a specialized situation for which I don't know if there's a solution:

Imagine you have a tree with 4 distinct types of nodes:

A
  B
    C
      D

In this tree there are 4 levels of nodes.  A B-node can only be a child of an A-node, a C-node can only be a child of a B-node, and a D-node can only be a child of a C-node.

What I'd like to be able to do is once a drag operation has been commenced by the user, restrict which nodes the dragged one can be dropped on.  Thus for example if the user starts dragging a D-node then it can only be dropped on a C-node.

If this is possible, how would one accomplish it?

Robert
Robert
Top achievements
Rank 1
 asked on 20 Oct 2009
1 answer
99 views

Hi! how you doing?

I gonna lost my mind with this error:

(Follow the link to image)

Error image

What am I doing wrong??

Schlurk
Top achievements
Rank 2
 answered on 20 Oct 2009
2 answers
187 views
I'm having the same issue described in this thread:  http://www.telerik.com/community/forums/aspnet-ajax/spell/no-line-break-after-spell-button.aspx

I'm using RadControls for ASP.NET AJAX Q2 2009 SP1.  I followed the instructions in the documentation under Controls > RadSpell > Getting Started to put a simple Spell Check button on my web page.  The issue I have is that I have other buttons on my web site (Save, Cancel, etc.) that I want to be inline with the Spell Check button.  However, there is a line break after the Spell Check button.

My code is below.  The "Spell Check" button appears on its own line.  My "Save" and "Cancel" buttons appear next to each other on the next line.

<telerik:RadSpell ID="RadSpell1" runat="server" SupportedLanguages="en-US,English" 
ControlsToCheck="tbHCMLanguage,tbConsumerLanguage,tbCustomRecommendationComments" AllowAddCustom="false" /> 
&nbsp;  
<asp:Button ID="btnSaveCustomRecommendation" runat="server" Text="Save" OnClick="btnSaveCustomRecommendation_Click" /> 
&nbsp;  
<asp:Button ID="btnCancelAddCustomRecommendation" runat="server" Text="Cancel" CausesValidation="false" OnClick="btnCancelAddCustomRecommendation_Click" /> 
 


How can I remove this line break after the "Spell Check" button?

Thanks for your help!
Kevin
Top achievements
Rank 1
 answered on 20 Oct 2009
3 answers
317 views
To reproduce:

1. Go to html view in editor.
2. Enter one or more "&nbsp;"
3. Switch to edit view.
4. Switch back to html view.

Any explicitly entered "&nbsp;" will have been converted to spaces.

Worse, these do not appear to be normal spaces (#32). They seem to be some funky unicode character that, when written to an html file on disk and viewed in a browser, appears as a "?".

This is VERY ANNOYING. The editor should NEVER change explicitly entered html entities!!!

And it should handle spaces properly (whether entered via the spacebar in edit view or as an entity in html view).
apb
Top achievements
Rank 1
 answered on 20 Oct 2009
4 answers
228 views
How do I prevent disabled items from being transfered if the user chooses to "transfer all" items from one listbox to another. By the way, shouldn't this be the default behavior? Since disabled items cannot be selected and transferred individually, why should they be transferred if a user chooses to transfer all?
Albert Shenker
Top achievements
Rank 1
Veteran
Iron
 answered on 20 Oct 2009
1 answer
99 views
I assume you are familiar with Google Docs.  It's pretty nice, but I would like to see a but more, and you guys are just the geniuses to pull it off.

I've been considering some sort of document collaboration capability, and while users can download and edit files, I would like to see a document editor like a light version of Word that could be embedded in a web page, where users could then create a Doc or PDF file from that editor.

Is this something you all would consider?
Ivo
Telerik team
 answered on 20 Oct 2009
1 answer
80 views
Is it possible to simply load a usercontrol in a tooltip without using tooltipmanager? ie:
<rad:RadToolTip ID="radPreviousViewMainTT" runat="server" TargetControlID="lnkPreviousViewMain" 
                IsClientID="true" Sticky="true" Animation="none" Position="BottomCenter" RelativeTo="Element" 
                OffsetY="2" Height="400px" Width="300px" Skin="Default" Title="Previously Viewed Items" 
                ContentScrolling="Y" Style="z-index: -1;" AutoCloseDelay="10000" ManualClose="true"> 
                    <ucPviDdl:ucPreviousItems runat="server" ID="ucPVI" /> 
            </rad:RadToolTip> 
 
It seems the tooltip stops even appearing on hover once I did this.
Svetlina Anati
Telerik team
 answered on 20 Oct 2009
1 answer
190 views
I am having a radgrid with first column having "select" hyperlink. when I select a row, the corresponding details are displayed in a panel below which is hidden by default. The panel has whole lot of controls in it.

when I ajaxify the radgrid, and select a record, the panel is not getting displayed. I was able to raise a postback event and the debugger goes to the radgrid1_SelectedIndexChanged method where I display the panel. Everything is executed fine, but I dont see the panel and the controls. It must definetly because of ajaxpostback.

How can I solve this? below is the code I am using.

protected override void RaisePostBackEvent(IPostBackEventHandler source, string eventArgument)
{
 base
.RaisePostBackEvent(source, eventArgument);  

 
if (source == RadGrid1 && eventArgument.IndexOf("RowClicked") != -1)
 {
   GridDataItem item
= RadGrid1.Items[int.Parse(eventArgument.Split(':')[1])];
   Response
.Write(String.Format("CustomerID:{0}", item.GetDataKeyValue("CustomerID")));  
 }
}


the event is raised and the 

Protected

 

Sub radgrid1_SelectedIndexChanged (ByVal sender As Object, ByVal e As System.EventArgs)

 

 ''' display the controls and perform operations.
end sub.
Martin
Telerik team
 answered on 20 Oct 2009
3 answers
178 views
I am using the Telerik Grid with a filter template, which I used the following example to create.
http://demos.telerik.com/aspnet-ajax/grid/examples/programming/filtertemplate/defaultcs.aspx


Everything is working great with the filter except for one condition. There are times in my application where I would like a filter to be applied when the page loads. I tried to accomplish this with the following code.

 

        protected override void SetCurrentFilterValueToControl(TableCell cell)  
        {  
            if (!(this.CurrentFilterValue == ""))  
            {  
                RadComboBox rcBox = ((RadComboBox)cell.Controls[0]);  
                rcBox.Items.FindItemByText(this.CurrentFilterValue).Selected = true;  
 
                if (HttpContext.Current.Session["SelectedClassName"] != null)  
                {  
                    HttpContext.Current.Session.Remove("SelectedClassName");  
                    ((GridFilteringItem)(((RadComboBox)rcBox).Parent.Parent)).FireCommandEvent("Filter", new Pair("EqualTo", this.CurrentFilterValue));  
                }  
            }  
        } 

The CurrentFilterValue is set and the filter event is fired, but when the page loads I get an error right after the grid tries to databind which says "There was a problem extracting DataKeyValues from the DataSource. Please ensure that DataKeyNames are specified correctly and all fields specified exist in the DataSource." Is there a way to implement this functionality with filtering?

Pavlina
Telerik team
 answered on 20 Oct 2009
Narrow your results
Selected tags
Tags
+? more
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?