Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
129 views
Hi,

I am trying to use RadEditor with a WebPart. While testing in IE8, all I am seeing is a blank box (screen below).

When testing same in FF3, I can see the tool icons, but all of them are posting back and textbox is not editable.

<telerik:RadEditor runat="server" ID="txtTestEditor" SkinID="BasicSetOfTools" Height="150px" Width="350px" Enabled="true">
</telerik:RadEditor>

Attached code above.

Here's the error I am getting...

Webpage error details

User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.0; WOW64; Trident/4.0; SLCC1; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; InfoPath.3; .NET4.0C; .NET4.0E)
Timestamp: Tue, 10 Aug 2010 17:18:37 UTC


Message: Sys.ArgumentUndefinedException: Value cannot be undefined.
Parameter name: type
Line: 2705
Char: 12
Code: 0
URI: http://usjhy1-wdaps057:55000/ScriptResource.axd?d=0iuGtd48Fueg_5Fq0EK1jWJz6wD9JYcEHMKodKfSJdMdu5tMu-1ccepsKk8RO9Fm-zAnXfScIlWrdksWOC25kUKTBqfRadex13QyNUaBrD41&t=46d5a07b


Message: Sys.ArgumentUndefinedException: Value cannot be undefined.
Parameter name: type
Line: 2705
Char: 12
Code: 0
URI: http://usjhy1-wdaps057:55000/ScriptResource.axd?d=0iuGtd48Fueg_5Fq0EK1jWJz6wD9JYcEHMKodKfSJdMdu5tMu-1ccepsKk8RO9Fm-zAnXfScIlWrdksWOC25kUKTBqfRadex13QyNUaBrD41&t=46d5a07b


Message: Sys.ArgumentUndefinedException: Value cannot be undefined.
Parameter name: type
Line: 2705
Char: 12
Code: 0
URI: http://usjhy1-wdaps057:55000/ScriptResource.axd?d=0iuGtd48Fueg_5Fq0EK1jWJz6wD9JYcEHMKodKfSJdMdu5tMu-1ccepsKk8RO9Fm-zAnXfScIlWrdksWOC25kUKTBqfRadex13QyNUaBrD41&t=46d5a07b


UPDATE: Here I realized control is working fine if I removed UpdatePanel from page. While a sample page with WebPart is working absolutely fine.

Let me know if need any more information.

Thanks.
spt3210
Top achievements
Rank 1
 answered on 16 Aug 2010
4 answers
114 views
Hi,

We are trying to migrate our application from .Net3.5 to .net4.0

After migrate the Comobox "Load On Demand" is not working correctly.  if i click on the comboxbox, our logs show that the call has been made to the DB and back but list of item does show up in the combobox. Its just shows "Loading...." and some times after a long time it does show up.

The second problem is, I make another service call to the fill another comboxbox based on the item selected in the first combobox and this is done through client script. At this point i get a javascript error "Items is null or not object".

Everything works fine in .Net 3.5.

The application is hosted in IIS 6 32 bit and the version of telerik is "Q1 2010". 

Thanks
abraham
Dev LIPIX
Top achievements
Rank 1
 answered on 16 Aug 2010
3 answers
275 views
In the recent past, I have implemented a treeview in a combobox template in numerous projects.Telerik's online example helped, but it certainly wan't easy, and a decent amount of custom javascript is necessary, just to get it to work..Also, there are quite a few hurdles that need to be crossed (usually through custom javascript) when working with the treeview and drop down, and getting their individual selection/clicking functionalities to play nice together, particularly in ajax scenarios.

I think it would be great if telerik could create a "hybrid" control called a "Dropdown Treeview", or something along those lines. I realize that one of the nice things about Telerik controls is their ability to integrate with eachother. However, in this case, while the treeview/combo integration seems obvious, the reality is that the resultant control really doesn't use most of the treeview's functionality, nor does it use most of the combo box's functionality. So, simply integrating the existing treeview and combobox controls creates a large amount of overkill, and as each of these separate controls becomes more and more functional over time, it will likely make the current treeview in combo box template integration more susceptible to bugs and javascript issues.

I would think the creation of this hybrid control, which only has the simplest features of the treeview and combo box (ie, the ability to display tree nodes in a combo box with dropdown), would not be as difficult and time-consuming as creating a brand new control from scratch, given that Telierk already has the code base for much of it in the two separate controls. Anyhow, I'd be intersted in getting others' opinions on this. I think the treeview in a combox is a really nice UI feature in many applications, and I feel the creation of a hybrid control would be a much better long-term solution over the current treeview in combo box template example.

IMO, this control would only have to have the following primary functionality...

1) The ability to populate tree "nodes" pretty much in the same fashion as the current treeview.
2) The ability to pesent the nodes in a drop down,
3) The ability to set, or get the selectedNode property, just like in a regular treeview. The SelectedNode would be displayed in the "Combo" portion of the control.

There are some more advanced features possible, such as auto-selection of nodes as you type in the combobox (similar to auto-complete in the current combo box), but these are certainly not necessary in most every-day implementations.

As you can see, there's no need for the node check, drag/drop, edit, etc. features of the existing treeview and there's no need for the templating, multi-column, etc. features of the existing combo box. I also think that most of the future development of either of these controls, except perhaps in the area of performance improvement, would also be outside the scope of functionlaity necessary in the hybrid implementation, so agan, my fear is that as time goes on, the current treeviewi in combo box template solution will become more and more fragile, requiring rework of existing applications where this is implemented.
Simon
Telerik team
 answered on 16 Aug 2010
3 answers
69 views
I have an RadAjax page. On this page I have several nested rad tab strips with some of the tab strips containing rad windows. Now, in one of these nested tab strips I have a RadEditor control but am unable to set it's skin to a custom skin. I can set the custom skin to all other rad controls on the page, but not this one. I have tried to set the skin on everyone of the page events and even the rad editor's events but the skin doesn't get set. Please help.

Thanks,


Steve Holdorf
Steve Holdorf
Top achievements
Rank 1
 answered on 16 Aug 2010
5 answers
402 views
Currently is doing full postback to server which is slow in reponse. A snippet of the code below:

%

@ Register Src="~/UserControls/ExecutionMktSeg.ascx" TagName="ExecutionMktSeg"

 

 

TagPrefix="ucKpi" %>

 

<%

--<%@ Register Src="~/UserControls/ExecutionMktSegMobile.ascx" TagName="ExecutionMktSegMobile"

 

TagPrefix="ucMktSeg" %>--

 

%>

 

<

 

asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">

 

 

<telerik:RadTabStrip ID="RadTabStrip1" runat="server"

 

 

MultiPageID="RadMultiPage1" SelectedIndex="0">

 

 

<tabs>

 

 

<telerik:RadTab runat="server" Text="Desktop" PageViewID="DesktopPageView"></telerik:RadTab>

 

 

<telerik:RadTab runat="server" Text="Mobile" PageViewID="MobilePageView" ></telerik:RadTab>

 

 

<telerik:RadTab runat="server" Text="Server" PageViewID="ServerPageView"

 

 

Selected="True" ></telerik:RadTab>

 

 

<telerik:RadTab runat="server" Text="GPG" PageViewID="GPGPageView" ></telerik:RadTab>

 

<%

-- <telerik:RadTab runat="server" Text="Misc" PageViewID="MiscPageView" ></telerik:RadTab>--%>

 

 

</tabs>

 

 

</telerik:RadTabStrip>

 

 

<telerik:RadMultiPage ID="RadMultiPage1" runat="server"

 

 

RenderSelectedPageOnly="false" SelectedIndex="0">

 

 

<telerik:RadPageView ID="DesktopPageView" runat="server">

 

 

<asp:Table ID="Table1" runat="server" Width="100%">

 

<%

-- <tr>

 

<td>

<label ID="commitpackowner" runat="server" text="PC (Tjone Irene)"></label>

</td>

</tr>--

 

%>

 

 

<asp:TableRow ID="TableRow1" runat="server">

 

 

<asp:TableCell ID="TableCell1" runat="server">

 

 

<asp:Button ID="btn_DesktopCommitPackTr" runat="server" CssClass="GridButton" Text="Commit & Pack (Hide)" OnClick="GridDisplayControl"></asp:Button>

 

 

</asp:TableCell>

 

 

</asp:TableRow>

 

 

<asp:TableRow ID="TableRow9" runat="server">

 

 

<asp:TableCell ID="DesktopCommitPackTr" runat="server">

 

 

<ucKpi:ExecutionMktSeg ID="DesktopCommitPack" runat="server" />

 

 

</asp:TableCell>

 

 

</asp:TableRow>

 

 

<asp:TableRow ID="TableRow2" runat="server">

 

 

<asp:TableCell ID="TableCell2" runat="server">

 

 

<asp:Button ID="btn_DesktopUTSTr" runat="server" CssClass="GridButton" Text="UTS Inventory (Hide)" OnClick="GridDisplayControl"></asp:Button>

 

 

</asp:TableCell>

 

 

</asp:TableRow>

 

 

</asp:Table>

 

 

 

 

 

</telerik:RadPageView>

 

 

 

 

<%

-- <telerik:RadPageView ID="MiscPageView" runat="server">

 

<ucKpi:ExecutionKpi ID="MiscMktSeg" runat="server" />

</telerik:RadPageView>--

 

%>

 

 

</telerik:RadMultiPage>

 

</

 

asp:Content>

 



 

protected void GridDisplayControl(object sender, EventArgs e)

 

{

 

string gridID = this.ToggleGridDisplay(sender, e);

 

 

Control executionGrid = (Control)DeepFindControl(this.Page, gridID);

 

 

if (executionGrid != null)

 

{

 

if (executionGrid.Visible == true)

 

{

executionGrid.Visible =

false;

 

((

Button)sender).Text = ((Button)sender).Text.Replace("Hide", "Show");

 

}

 

else

 

{

executionGrid.Visible =

true;

 

((

Button)sender).Text = ((Button)sender).Text.Replace("Show", "Hide");

 

}

}

}

 

private string ToggleGridDisplay(object sender, EventArgs e)

 

{

 

string buttonId = ((Button)sender).ID;

 

 

string gridID = buttonId.Split('_')[1];

 

 

return gridID;

 

}

 

private Control DeepFindControl(Control control, string id)

 

{

 

Control foundControl = null;

 

 

if (control.ID == id)

 

{

foundControl = control;

}

 

if (control.HasControls())

 

{

 

Control tempControl;

 

 

foreach (Control subcontrol in control.Controls)

 

{

tempControl = DeepFindControl(subcontrol, id);

 

if (tempControl != null)

 

{

foundControl = tempControl;

}

}

}

 

return foundControl;

 

}

Albert Shenker
Top achievements
Rank 1
Veteran
Iron
 answered on 16 Aug 2010
1 answer
89 views
Hi,

I have implemented a self-referencing hierarchy using the Q2 2010 RadGrid. Now I want to insert nodes using an interaction similar to that of the DevExpress TreeList control depicted in attached screenshot.

The New link in the header inserts a node at root.
The New link in the node row inserts a child node of node.

How do I set up RadGrid to do this?
Iana Tsolova
Telerik team
 answered on 16 Aug 2010
3 answers
662 views
If it rendered as the title attribute rather than the alt attribute then it may have some value as it would display as a ToolTip but as it stands it doesn't appear to be of much use.

-- 
Stuart
Stuart Hemming
Top achievements
Rank 2
 answered on 16 Aug 2010
6 answers
111 views
Hello team,

I have a Gridbound (label) column and a imagebutton in a template column of a radgrid.

How can I open up a new  page (like modal pop up, not exactly pop up) when clicked on imagebutton which takes an id and populates session variables of that page to display details?

Any pointers would be highly appreciated.



Maria Ilieva
Telerik team
 answered on 16 Aug 2010
3 answers
91 views
I believe I am using the latest version of Telerik.Web.UI (2010.1.415.35), but have come across a major issue for my use case.
It's essential to my application that when a user changes the text in the RadCombo that LoadOnDemand actions off a request to the server.

But, in IE I'm not getting the behaviour I expect, even though in FireFox I do. The problem is that when I have CustomText=True, LoadOnDemand=True, and I make a valid selection and then type a single character a request to the server is not made and it should be.

<asp:ScriptManager ID="ctlScriptManager" runat="server" />
<telerik:RadComboBox ID="ddlCombo" runat="server" AllowCustomText="true" EnableLoadOnDemand="true" />

Private Sub ddlCombo_ItemsRequested(ByVal o As Object, ByVal e As RadComboBoxItemsRequestedEventArgs) Handles ddlCombo.ItemsRequested
    ddlCombo.DataSource = GetData()
    ddlCombo.DataValueField = "Key"
    ddlCombo.DataTextField = "Value"
    ddlCombo.DataBind()
End Sub
 
Private Function GetData() As IDictionary(Of Integer, String)
    Dim items As New Dictionary(Of Integer, String)()
    items.Add(0, "-- None --")
    items.Add(1, "One")
    items.Add(2, "Two")
    items.Add(3, "Three")
    Return items
End Function

Please advise?

Cheers.
Simon
Telerik team
 answered on 16 Aug 2010
2 answers
171 views
I have a radgrid with AllowFilteringByColumn="True". Then i get filter visible for all columns. How can i set filter to not visible for a column programmatically?

Regards
daaland1972
øystein daaland
Top achievements
Rank 1
 answered on 16 Aug 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?