Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
113 views
We have three fields in our layout that we are using the editor on... when we toggle full screen on the editor is not brought to the front. The editors not being toggled show on top of the other editor.

See screen shot for better explanation please.

Screen shot
Tervel
Telerik team
 answered on 07 Nov 2008
1 answer
164 views
HI,

I am using version 2008.2.1001.35 of the AJAX controls and I have an issue with the Treeview.
I initially populate the Treeview from a WCF Service Reference Call on the Selected Item Change of a DropDownList.
I populate the Node Child Items in the NodeExpand event.

This all worked fine until I implemented the NodeClick Event.
The Node Click Event Fires but after that I get an error "An unhandled exception of type 'System.StackOverflowException' occurred in Telerik.Web.UI.DLL". This is not consistant as sometmes I the dll is mscorlib.dll ("An unhandled exception of type 'System.StackOverflowException' occurred in mscorlib.dll").
I have tried using the ClientSide Click event and I get the same error.

I know there used to be bug that caused a Stack Overflow but that is said to be resolved a few versions ago.

Here is the basic layout of the page:
Master Page (containing the Script Manager) -> Content Page.
RadAjaxPanel contains: RadComboBox -> RadTreeView -> RadGrid
RadComboBox selected Item Change ppulates root Treview Items
RadTreeView node Expand Populates the Child Nodes (Custom Attribues are used in the nodes)
RadTreeView node Click populates the Grid

It is a very Simple setup but I can't get around the error.

Extra Info:
XP with VS 2008 SP1 and .NET 3.5 SP1

Please help.
Simon
Telerik team
 answered on 07 Nov 2008
21 answers
329 views
We are having trouble getting hyperlinks that link to pages in the Pages gallery to validate.  Each time we link to a page in the Pages gallery it comes back with the error popup message of "The content is invalid. Do you want to auto-correct it?  The offending content area has an error message of "You must specify a valid field value".  If we accept the popup message to auto-correct, the hyperlink is stripped and the page can be successfully published.

I have attempted to add a variety of properties to the component including: AllowHyperlinks="True" AllowExternalUrls="True" AllowTextMarkup="True".  None of these make a difference.

Can anyone else replicate this same issue?  What is the work around.
Tervel
Telerik team
 answered on 07 Nov 2008
1 answer
72 views
i would like to have an onclick menu and the items in the menu will expand on mouse scrolling instead of hovering  on the arrows up and down.
Thank you.
Yana
Telerik team
 answered on 07 Nov 2008
4 answers
176 views

Hi all,

I’m experiencing an problem with the radgrid on a formview insert template.

Situation:

I have a formview. The insert template contains a radgrid with paging and filtering on. Above the grid is an autopostback checkbox. Now, when I click a row, the datakey value is properly saved in the record. I can use filtering, sorting and can click the checkbox and a serverside event is raised.

The problem exists only when I click a paging item, then the formview switches back to “readonly” and inserting is gone..

Fist I thought that is was the postback, but postback from the checkbox, filtering the grid or sorting the grid does not generate this problem.

I have the application online so you can see for yourself: (testsite)
  http://emo.proovit.com/servicenet/
  Login with “telerik” and a password “tel1”
  In menu (left) choose “unloading”
  In the grid, choose a row (anyone will do)

Now, when you click “add ship” you can reproduce the problem.

Any ideas?

Iana Tsolova
Telerik team
 answered on 07 Nov 2008
7 answers
148 views
I'm using version 2008.2.820.35 and I've successfully add textboxex to each node and also a literal text there too, but I can't get it out there with findcontrol??

Dim nodeCollection As System.Collections.Generic.IList(Of RadTreeNode) = R1.CheckedNodes  
Dim node As RadTreeNode  
For Each node In nodeCollection  
    Dim testCount As Integer = node.Controls.Count  
    Dim boxBanner As TextBox = node.FindControl("boxBannerID" & node.Value)  
next node 

Any ideas why I don't get it from the node in the IList?

/Thanks
Simon
Telerik team
 answered on 07 Nov 2008
3 answers
167 views
I have set an RadComboxBox AJAX control's autopostback to true, so that when the selectedIndexChanges the page will change accordingly. But somehow the postback occurs even when I just pull down the drop list. So everytime I click on the arrow to list page, the entire page refreshses.

The comboxbox is defined as 

<

telerik:RadToolBarButton Text="combobox" Value="combobox" CssClass="toolboxitem" CausesValidation="false">

 

 

<ItemTemplate>

 

 

<div style="padding-left:30px">

 

 

<telerik:RadComboBox ID="si_display_combobox" runat="server" AutoPostBack="True" OnSelectedIndexChanged="display_combobox" CausesValidation="false" Width="190px" Height="300px"></telerik:RadComboBox>

 

 

</div>

 

 

</ItemTemplate>

 

 

</telerik:RadToolBarButton>

It is inside an toolbar.

 

jialiang_liu
Top achievements
Rank 1
 answered on 07 Nov 2008
5 answers
179 views
Hello,

I spent hours trying to find what is the good sample to use when you want to add a confirm script to button or anchors using RadWindow.

On buttons I use:
string js = string.Format("return radconfirm('{0}', event, null, null,null,'{1}');", msg, title);
if ( Btn.Attributes["onclick"] != null)
      Btn.Attributes["onclick"] = js;
else Btn.Attributes.Add("onclick",js);

I found a sample on forums which seems to be related to previous RadControls, not for AJX.NET and I got problems when the button is using call back.

This sample is based on following script.
function ConfirmLoadHandler()   
{  
var oldConfirm = radconfirm;     
 //We will change the radconfirm function so it takes all the original radconfirm attributes  
window.radconfirm = function(text, mozEvent, oWidth, oHeight, callerObj, oTitle)     
{     
    var ev = mozEvent ? mozEvent : window.event; //Moz support requires passing the event argument manually     
    //Cancel the event     
    ev.cancelBubble = true;     
    ev.returnValue = false;     
    if (ev.stopPropagation) ev.stopPropagation();     
    if (ev.preventDefault) ev.preventDefault();     
         
    //Determine who is the caller     
    var callerObj = ev.srcElement ? ev.srcElement : ev.target;     
 
    //Call the original radconfirm and pass it all necessary parameters     
    if (callerObj)      
    {     
        //Show the confirm, then when it is closing, if returned value was true, automatically call the caller's click method again.     
        var callBackFn = function (arg)     
        {                
            if (arg)     
            {                
                callerObj["onclick"] = "";               
                if (callerObj.click) callerObj.click(); //Works fine every time in IE, but does not work for links in Moz     
                else if (callerObj.tagName == "A"//We assume it is a link button!     
                {                                                            
                    try    
                    {     
                        eval(callerObj.href)     
                    }     
                    catch(e){}     
                }     
            }     
        }     
        //We will need to modify the oldconfirm as well ????????  
        oldConfirm(text, callBackFn, oWidth, oHeight, callerObj, oTitle);   
    }     
    return false;     
    }   
}  
 
I don't need this script on each page and I use a registerConfirm method in codebehind to insert it.
But this script should be called after RadWindowManager declaration, so I use following code to add it on the last instructions of the page:
string scrpt  =   "ConfirmLoadHandler();";
AjaxManager.ResponseScripts.Add(scrpt);

And I get problems on callback: I am fearing the radconfirm function is replaced many times ? How to control this.

Is there a more recent sample we could use with last 2.1001 version to have a safely confirm with radWindows.

Thanks for clarification.

CS
Georgi Tunev
Telerik team
 answered on 07 Nov 2008
3 answers
118 views
Hi,

I am using the customized PagerTemplate demonstrated here for all my grids. Is there a way to create a webusercontrol (ascx) or a class than can be shared instead of having to manually type the <PagerTemplate></PagerTemplate> for every grid that uses the special pager template? It makes the most sense to define the template once and then let multiple grids using it.
IE:
<PagerTemplate><uc1:CustomPager ID="CustomPager1" runat="server"></PagerTemplate>

or in codebeind
radGrid1.MasterTableView.PagerTemplate = myPagerClass();

Thank you!

Levi
Top achievements
Rank 1
 answered on 07 Nov 2008
1 answer
98 views
Hi,

I had a question about configuring the X-Axis when using auto scaling.

I have a set of production dates (looking something like 10/15/2007) which I use for my X-Axis values.

The problem I am having is that with autoscaling there are extra tick marks on the
X-Axis.

As an example, my data set might ONLY contain dates from 10/15/2007 - 10/15/2008 but the first tick mark on the X-Axis would be something like '8/15/2007' and the last tick mark would be something like '12/15/2008'.

So radChart is plotting my data points correctly, but there is this strange 'gap' at the beginning and end of my chart where there is no data.

I want to eliminate the gap and have the first actual Data Point value be the first tick mark on the X Axis.

Any help at all would be appreciated. Thanks!
Vladimir Milev
Telerik team
 answered on 07 Nov 2008
Narrow your results
Selected tags
Tags
+? more
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?