Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
201 views
Hello,

I postback MVC views using JQuery.  I have a RadComboBox control within this MVC view that posts back, and replaces the UI, with JQuery code.  The control works, but when I replace the content returned from JQuery, the RadComboBox stops working.  I'm assuming I need to call $create to make this work... any advice on that?

Thanks.
Georgi Krustev
Telerik team
 answered on 04 Dec 2009
1 answer
179 views
Hi,

I'm getting the folllowing error when adding a RadDock control to a RadDockZone in Page_Init.

What I'm doing:

Default.aspx
...uses LoadControl() to load -> Layout.ascx (contains a RadDockLayout with a RadDockZone)
......Layout.ascx then dynamically creates and adds a RadDock to the zone

The error only happens if I load the dock in Page_Init. If I load in Page_Load it works.

The markup from Default.aspx:
<%@ Page Language="C#" AutoEventWireup="true"  CodeFile="Default.aspx.cs" Inherits="_Default" %> 
<%@ Register assembly="Telerik.Web.UI" namespace="Telerik.Web.UI" tagprefix="telerik" %> 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 
<html xmlns="http://www.w3.org/1999/xhtml">  
<head runat="server">  
    <title></title>  
</head> 
<body> 
    <form id="form1" runat="server">  
    <div> 
        <telerik:RadScriptManager ID="RadScriptManager1" Runat="server">  
        </telerik:RadScriptManager> 
        <asp:PlaceHolder ID="PlaceHolder1" runat="server"></asp:PlaceHolder> 
    </div> 
    </form> 
</body> 
</html> 
 

The code behind from Default.aspx:
using System;  
using System.Web.UI;  
 
public partial class _Default : System.Web.UI.Page  
{  
    protected void Page_Init(object sender, EventArgs e)  
    {  
        Control layout = LoadControl("Layout.ascx");  
        if (layout != null)  
        {  
            PlaceHolder1.Controls.Add(layout);  
        }  
    }  
}  
 

The markup from Default.aspx:
<%@ Control Language="C#" AutoEventWireup="true" CodeFile="Layout.ascx.cs" Inherits="Layout" %> 
<%@ Register assembly="Telerik.Web.UI" namespace="Telerik.Web.UI" tagprefix="telerik" %> 
<telerik:RadDockLayout ID="DockLayout1" runat="server">  
    <table border="1" cellpadding="0" width="800">  
        <tr> 
            <td width="100%" valign="top">  
                <telerik:RadDockZone ID="DockZone1" runat="server" BorderStyle="None">  
                </telerik:RadDockZone> 
            </td> 
        </tr> 
    </table> 
</telerik:RadDockLayout> 
 

The code behind from Layout.ascx:
using System;  
using System.Web.UI;  
 
using Telerik.Web.UI;  
 
public partial class Layout : System.Web.UI.UserControl  
{  
    protected void Page_Init(object sender, EventArgs e)  
    {  
        //this causes error  
        RadDock dock = new RadDock();  
        RadDockZone zone = FindControl("DockZone1"as RadDockZone;  
        zone.Controls.Add(dock);  
    }  
 
    protected void Page_Load(object sender, EventArgs e)  
    {  
        //this works  
        //RadDock dock = new RadDock();  
        //RadDockZone zone = FindControl("DockZone1") as RadDockZone;  
        //zone.Controls.Add(dock);  
    }  
 
}  
 

The error I'm getting is:

Value cannot be null.
Parameter name: key

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.ArgumentNullException: Value cannot be null.
Parameter name: key

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace:

[ArgumentNullException: Value cannot be null.
Parameter name: key]
   System.ThrowHelper.ThrowArgumentNullException(ExceptionArgument argument) +44
   System.Collections.Generic.Dictionary`2.FindEntry(TKey key) +7455633
   System.Collections.Generic.Dictionary`2.ContainsKey(TKey key) +4
   Telerik.Web.UI.RadDockLayout.SetRegisteredDockParents(Dictionary`2 parents, Dictionary`2 indices) +317
   Telerik.Web.UI.RadDockLayout.Page_InitComplete(Object sender, EventArgs e) +169
   System.EventHandler.Invoke(Object sender, EventArgs e) +0
   System.Web.UI.Page.OnInitComplete(EventArgs e) +8698006
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +467

The problem seems to be internal to the RadDockLaout control. Any idea what is happening? 

I'll attach the actual files to a support ticket so you guys can try running them.

Thanks.

-Al
apb
Top achievements
Rank 1
 answered on 04 Dec 2009
3 answers
87 views
I use a radTree whose nodes have ExpandMode set to ServerSideCallBack.

At the client-side, I am able to fire _node.expand(); method to actually expand a given treeNode, but I am struggling to find a way for the notification of when the expand operation gets completed. That will help me in accessing the child nodes of a mode in Javascript.

Please let me know if there is any way.

Thanks,
Saurabh.
Yana
Telerik team
 answered on 04 Dec 2009
0 answers
101 views
2009.3.1103.35 w/IE8

<RadComboBox ID="cbo" runat="server" 
      Filter="Contains" MarkFirstMatch="true" AllowCustomText="false" NoWrap="true"
</RadComboBox> 

The list has about 500 items and there is NO lazy load involved.
The problem is that after I searched for a name (say 1 found), then I used the scroll bar to scroll down, it seems to go into search mode again and repopulates the display with the same name that was found.   (while sort of locking up the IE)

It seems I am hitting the same bug reported here:  

http://www.telerik.com/community/forums/aspnet-ajax/combobox/fix-items-loaded-on-demand-can-be-added-multiple-times-on-scroll-q3-2009-issue.aspx

Confirmed this issue is fixed in 2009.3.1201.35
Lenny_shp
Top achievements
Rank 2
 asked on 04 Dec 2009
3 answers
247 views

Hello,

I'm using IIS 7.0, I would like to ask the difference between the integrated mode pipeline and classic mode pipeline reated to the handlers for RadCaptcha (classic mode works without adding any handlers for RadCaptcha) in web.config? Any performance issue related? Or both just do the same thing?

Here's the handler that I should add in web.config for integrated mode:
<handlers>  
     
<add name="Telerik_Web_UI_WebResource_axd" verb="*" preCondition="integratedMode" path="Telerik.Web.UI.WebResource.axd" type="Telerik.Web.UI.CaptchaImageHandler" />  
</handlers>

And what the difference between the type's values below:
<add path="Telerik.Web.UI.WebResource.axd" type="Telerik.Web.UI.CaptchaImageHandler" verb="*" validate="false" />

 

<

 

add path="Telerik.Web.UI.WebResource.axd" verb="*" type="Telerik.Web.UI.WebResource, Telerik.Web.UI" validate="false"/>

Any answer or help for this would be appreciated.

Regards,

Omar Suria

 

 

Pero
Telerik team
 answered on 04 Dec 2009
12 answers
524 views
I can not get an AdvancedEditTemplate to open when modal="true" is set. Is there a limitation with this?
Peter
Telerik team
 answered on 04 Dec 2009
2 answers
87 views
I have installed / deployed the RAD Editor Lite to my sharepoint site and enabled it as a feature on a sub-site (I did this as the site collection administrator). The standard toolbar is now replaced with the Telerik version. All good so far!

I have been able to upload and add images to both normal list items and wiki pages (I created a picture library for the list item to populate). Having uploaded an image and added it to a page/list item, I am now trying to create a thumbnail.

Firstly, is the thumbnail just a smaller version of the image, or is it a thumbnail that when clicked pops up the larger version of the image?

Secondly, when I right-click an image and choose "set image properties", the "Create Thumbnail" tab is not available (it's greyed out). Am I doing something wrong?

Help on this feature would be most appreciated - perhaps I have missed the point, but I can't find any detailed help :(

Thanks,
Alex
Stanimir
Telerik team
 answered on 04 Dec 2009
1 answer
147 views
Hey Telerik!

The Version of the Telerik.Web.UI.dll I use is: 2008.03.1314.20

I am selecting a TreeNode like so:

function OpenTreeToSpecificNodeRecursion() {  
            var tree = $find('<%= rpbOperational.Items[0].Items[0].FindControl("rtGeographic").ClientID %>');  
            if (aIds2Node.length == 0) {  
                return;  
            }  
            if (tree.findNodeByValue(aIds2Node[0]) != null) {  
                nodeTree = tree.findNodeByValue(aIds2Node.shift());  
 
                if (aIds2Node.length == 0) {  
                    tree.unselectAllNodes();  
                    nodeTree.select();  
                    window.setTimeout(function() { nodeTree.scrollIntoView(); }, 400);  
                    return;  
                }  
                nodeTree.expand();  
            }  
            window.setTimeout("OpenTreeToSpecificNodeRecursion()", 10);  
        } 

If I put an alert(nodeTree.scrollIntoView()) in front of the functioncall the browser tells me "undefined" meaning the function is not defined. Any clue why this should happen?

I realize the tree scrolls and selects the node at the same time, but it should be able to utilize the scrollIntoView() function as this method is called on the Timeout and therefore later?

Thanks for any advice on this. Sincerely, Peter.
Yana
Telerik team
 answered on 04 Dec 2009
2 answers
94 views

Hello

I use RadGrid with

 

<

 

telerik:GridDateTimeColumn DataField="DT_REPORT"

 

 

HeaderText="Data Report" PickerType="DatePicker"

 

 

DataFormatString="{0:d}" EmptyDataText="30/09/2009" >

 

 

 

 

 

<FooterStyle Width="85" />

 

 

 

 

 

<HeaderStyle Width="85" />

 

 

 

 

 

<ItemStyle Width="85" />

 

 

 

 

 

</telerik:GridDateTimeColumn>

 

 

 

 

<

 

telerik:GridDateTimeColumn DataField="DT_INIZIO"

 

 

HeaderText="Data Inizio" PickerType="DatePicker" DataFormatString="{0:d}">

 

 

 

 

 

<FooterStyle Width="85" />

 

 

 

 

 

<HeaderStyle Width="85" />

 

 

 

 

 

<ItemStyle Width="85" />

 

 

 

 

 

</telerik:GridDateTimeColumn>

 

 

The issue is when I'm in edit mode, after pressing the first GridDateTimeColumn , the second one became in block state (calendar menu does't apper)

Can you explain this for me ?

There is also one of yours example and there is the same problem.

Is that a bug?

Thanks,
Silvia

SIlvia
Top achievements
Rank 1
 answered on 04 Dec 2009
4 answers
122 views
Hello

I use RadGrid with

<telerik:GridDateTimeColumn DataField="DateFrom" HeaderText="d_from" PickerType="DatePicker"  UniqueName="d_from" DataFormatString="{0:MM/dd/yyyy}">
</telerik:GridDateTimeColumn>

<telerik:GridDateTimeColumn DataField="DateTo" HeaderText="d_to" PickerType="DatePicker"  UniqueName="d_to" DataFormatString="{0:MM/dd/yyyy}">
</telerik:GridDateTimeColumn>

The issue is when I'm in edit mode, after pressing the first GridDateTimeColumn , the second one became in block state (calendar menu does't apper)

Can you explain this for me ?

SIlvia
Top achievements
Rank 1
 answered on 04 Dec 2009
Narrow your results
Selected tags
Tags
+? more
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?